:root {
  --bg-color: #0b0c10;
  --surface-color: #1f2833;
  --surface-glass: rgba(31, 40, 51, 0.7);
  --primary-color: #66fcf1;
  --secondary-color: #45a29e;
  --text-main: #c5c6c7;
  --text-light: #ffffff;
  --border-radius: 16px;
  --transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, .subtitle {
  font-family: 'Ailerons', sans-serif;
  color: var(--text-light);
}

.app-container {
  max-width: 100%;
  margin: 0;
  padding: 0;
}

.main-header {
  text-align: left;
  margin-bottom: 3rem;
  animation: fadeInDown 0.8s ease-out;
}

.main-header h1 {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -1px;
  background: linear-gradient(90deg, var(--text-light), var(--primary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.main-header .subtitle {
  font-size: 1.2rem;
  color: var(--secondary-color);
  font-weight: 300;
}

.view {
  display: none;
  animation: fadeIn 0.4s ease-out;
}

.view.active {
  display: block;
}

.section-title {
  font-size: 3.5rem;
  margin-bottom: 2rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-light);
}

/* Masonry Grid */
.masonry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.costume-card {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  background: var(--surface-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transform: translateY(0);
}

.costume-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(102, 252, 241, 0.2);
}

.costume-card img {
  width: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 3/4;
  transition: transform 0.5s ease;
}

.costume-card:hover img {
  transform: scale(1.05);
}

.card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 1.2rem 1.2rem;
  background: linear-gradient(to top, rgba(11, 12, 16, 0.95) 0%, rgba(11, 12, 16, 0) 100%);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.card-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.status-badge {
  align-self: flex-start;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  backdrop-filter: blur(4px);
  /* Colors are now applied dynamically via inline styles */
}

.costume-card .status-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 10;
}

/* Detail View */
.glass-btn {
  background: var(--surface-glass);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  font-family: 'Ailerons', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.glass-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 15px rgba(102, 252, 241, 0.2);
}

.detail-hero {
  position: relative;
  height: 400px;
  border-radius: var(--border-radius);
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 3rem 2rem 2rem;
  background: linear-gradient(to top, rgba(11, 12, 16, 1) 0%, rgba(11, 12, 16, 0) 100%);
}

.detail-title {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 768px) {
  .detail-grid {
    grid-template-columns: 1fr;
  }
}

.glass-panel {
  background: var(--surface-glass);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  padding: 2rem;
}

.panel-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.panel-title::before {
  content: '';
  display: block;
  width: 4px;
  height: 1.5rem;
  background: var(--primary-color);
  border-radius: 2px;
}

/* Progress Bar */
.progress-container {
  margin-bottom: 2rem;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.8rem;
  font-weight: 600;
  color: var(--text-light);
}

.progress-track {
  width: 100%;
  height: 12px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
  border-radius: 6px;
  width: 0;
  transition: width 1s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 2s infinite;
}

/* Task List */
.task-list {
  list-style: none;
}

.task-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

.task-item:last-child {
  border-bottom: none;
}

.task-item:hover {
  background: rgba(255, 255, 255, 0.02);
}

.task-checkbox {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.task-item.completed .task-checkbox {
  background: var(--secondary-color);
}

.task-item.completed .task-checkbox::after {
  content: '✓';
  color: var(--bg-color);
  font-size: 14px;
  font-weight: bold;
}

.task-item.completed .task-text {
  text-decoration: line-through;
  opacity: 0.5;
}

.task-text {
  font-size: 1rem;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.gallery-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.gallery-img:hover {
  transform: scale(1.05);
  border-color: var(--primary-color);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Edit Mode Styles */
.delete-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 0, 0, 0.7);
  color: white;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.delete-btn:hover {
  background: rgba(255, 0, 0, 1);
  transform: scale(1.1);
}

.add-costume-card {
  border: 2px dashed rgba(255, 255, 255, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent;
  box-shadow: none;
  aspect-ratio: 3/4;
}

.add-costume-card:hover {
  border-color: var(--primary-color);
  background: rgba(102, 252, 241, 0.05);
}

.add-icon {
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.5);
  transition: var(--transition);
}

.add-costume-card:hover .add-icon {
  color: var(--primary-color);
  transform: scale(1.1);
}

.edit-input, .edit-textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-main);
  padding: 0.8rem;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.edit-textarea {
  resize: vertical;
  min-height: 100px;
}

.edit-input:focus, .edit-textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.upload-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  color: white;
  font-weight: bold;
  cursor: pointer;
}

.detail-hero:hover .upload-overlay,
.gallery-img-container:hover .upload-overlay {
  opacity: 1;
}

.hidden-file-input {
  display: none;
}

.gallery-img-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
}

.gallery-img-container .gallery-img {
  width: 100%;
  height: 100%;
}

.add-job-container {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.btn-small {
  background: var(--primary-color);
  color: var(--bg-color);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
}

.btn-small:hover {
  background: var(--secondary-color);
}

.drag-over {
  border: 2px dashed var(--primary-color) !important;
  background: rgba(102, 252, 241, 0.2) !important;
  box-shadow: 0 0 15px rgba(102, 252, 241, 0.3) !important;
}

/* Sidebar Layout */
.page-layout {
  display: flex;
  align-items: flex-start;
  min-height: 100vh;
}

.sidebar-menu {
  position: sticky;
  top: 0;
  width: 250px;
  height: 100vh;
  background: var(--surface-glass);
  backdrop-filter: blur(10px);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  padding: 2rem 1.5rem;
  overflow-y: auto;
  flex-shrink: 0;
}

.content-area {
  flex-grow: 1;
  padding: 3rem;
  max-width: calc(100% - 250px);
}

@media (max-width: 768px) {
  .page-layout {
    flex-direction: column;
  }
  .sidebar-menu {
    position: relative;
    top: 0;
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
  }
  .content-area {
    padding: 1.5rem;
    max-width: 100%;
  }
}

.sidebar-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-light);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.5rem;
  white-space: normal;
}

.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: block;
}

.sidebar-list li {
  padding: 0.5rem 1rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
  border-radius: 8px;
  transition: var(--transition);
  color: var(--text-main);
  white-space: normal;
  font-family: 'Ailerons', sans-serif;
  font-size: 1.2rem;
  letter-spacing: 1px;
}

.sidebar-list li:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-light);
}

.sidebar-list li.active {
  background: var(--primary-color);
  color: var(--bg-color);
  font-weight: 600;
}
