/* ==========================================================
   studio-theme.css — Studio Management Module Styles
   ========================================================== */

/* ── Studio & Schedule Section Colors ── */
:root {
  --studio-primary: #6366f1;
  --studio-primary-dark: #4f46e5;
  --studio-primary-light: #e0e7ff;
  --studio-accent: #f59e0b;
  --schedule-primary: #0ea5e9;
  --schedule-primary-dark: #0284c7;
  --schedule-primary-light: #e0f2fe;

  /* Status colors */
  --status-draft: #94a3b8;
  --status-confirmed: #3b82f6;
  --status-in-progress: #f59e0b;
  --status-done: #22c55e;
  --status-cancelled: #ef4444;
}

/* ── Studio Room Cards ── */
.room-card {
  border-radius: 16px;
  border: 1.5px solid #e5e7eb;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  overflow: hidden;
  background: #fff;
}
.room-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(99,102,241,.12);
  border-color: var(--studio-primary);
}
.room-card .room-cover {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
}
.room-cover-placeholder {
  width: 100%;
  height: 160px;
  background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--studio-primary);
}
.room-status-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.room-status-badge.available {
  background: #dcfce7;
  color: #15803d;
}
.room-status-badge.busy {
  background: #fef9c3;
  color: #854d0e;
}
.room-status-badge.inactive {
  background: #f1f5f9;
  color: #64748b;
}

/* ── Session / Booking Cards ── */
.session-card {
  border-radius: 12px;
  border-left: 4px solid var(--status-draft);
  background: #fff;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
  margin-bottom: 0.75rem;
  cursor: pointer;
}
.session-card:hover {
  box-shadow: 0 8px 22px rgba(0,0,0,.12);
  transform: translateY(-2px);
  border-color: #bdd9ee;
}
.session-card h6 {
  transition: color 0.2s;
}
.session-card:hover h6 {
  color: var(--bs-primary, #0d6efd);
}
.session-card.status-confirmed { border-left-color: var(--status-confirmed); }
.session-card.status-in_progress { border-left-color: var(--status-in-progress); }
.session-card.status-done { border-left-color: var(--status-done); }
.session-card.status-cancelled { border-left-color: var(--status-cancelled); }
.session-card.status-draft { border-left-color: var(--status-draft); }

.badge-type-collab,
.badge-type-casting {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.badge-type-collab {
  background: #dcfce7;
  color: #15803d;
}
.badge-type-casting {
  background: #f3e8ff;
  color: #7e22ce;
}

.session-time-badge {
  font-size: 0.78rem;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── Status Badge Pills ── */
/* ── Status Badge Pills ── */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 12px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border: 1px solid transparent;
}
.status-pill.draft { background: #f1f5f9; color: #475569; border-color: #cbd5e1; }
.status-pill.confirmed { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.status-pill.in_progress { background: #fffbeb; color: #b45309; border-color: #fde68a; }
.status-pill.done { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.status-pill.cancelled { background: #fff1f2; color: #be123c; border-color: #fecdd3; }

/* ── Summary Stats Bar ── */
.studio-stats-bar {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.studio-stat-card {
  flex: 1;
  min-width: 120px;
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  text-align: center;
  transition: border-color 0.2s;
}
.studio-stat-card:hover { border-color: var(--studio-primary); }
.studio-stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--studio-primary);
  line-height: 1;
}
.studio-stat-label {
  font-size: 0.78rem;
  color: #6b7280;
  margin-top: 4px;
}

/* ── Notification Bell ── */
.notif-bell-btn {
  position: relative;
  background: none;
  border: none;
  padding: 4px 8px;
  color: inherit;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.15s;
}
.notif-bell-btn:hover { background: rgba(99,102,241,.1); }
.notif-bell-badge {
  position: absolute;
  top: -2px;
  right: -4px;
  background: #ef4444;
  color: #fff;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  animation: pulse-badge 2s infinite;
}
@keyframes pulse-badge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

/* ── Notification Items ── */
.notif-item {
  display: block;
  text-decoration: none !important;
  color: inherit;
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid #edf2f7;
  transition: all 0.2s ease;
  position: relative;
}
.notif-item:last-child {
  border-bottom: none;
}
.notif-item-unread {
  background-color: #f0f7ff;
  border-left: 4px solid #0d6efd;
}
.notif-item-unread:hover {
  background-color: #e2effe;
}
.notif-item-read {
  background-color: #ffffff;
  border-left: 4px solid transparent;
}
.notif-item-read:hover {
  background-color: #f8fafc;
}
.notif-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.notif-item:hover .notif-icon-box {
  transform: scale(1.08);
}
.notif-item-unread .notif-icon-box {
  background-color: #dbeafe;
  color: #1d4ed8;
}
.notif-item-read .notif-icon-box {
  background-color: #f1f5f9;
  color: #64748b;
}

/* ── Conflict Warning ── */
.conflict-warning {
  background: #fff7ed;
  border: 1.5px solid #fb923c;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  color: #9a3412;
  font-size: 0.85rem;
  display: none;
}
.conflict-warning.show { display: block; }
.conflict-warning .conflict-item {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  padding: 4px 8px;
  background: #ffedd5;
  border-radius: 6px;
}

/* ── Color Palette Tags (Background Colors) ── */
.color-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  background: #f3f4f6;
  color: #374151;
  font-size: 0.75rem;
  border: 1px solid #e5e7eb;
  margin: 2px;
}

/* ── Calendar View ── */
.fc {
  font-family: inherit;
}
.fc a,
.fc a:hover,
.fc a:focus {
  text-decoration: none !important;
}
.fc-toolbar-title {
  font-size: 1.25rem !important;
  font-weight: 700;
}
.fc-event {
  border-radius: 6px !important;
  border: none !important;
  padding: 2px 6px;
  font-size: 0.78rem;
  cursor: pointer;
  text-decoration: none !important;
}
.fc-daygrid-event-dot { display: none; }

/* ── Location Cards ── */
.location-card {
  border-radius: 12px;
  border: 1.5px solid #e5e7eb;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
  background: #fff;
}
.location-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(14,165,233,.1);
  border-color: var(--schedule-primary);
}
.location-type-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--schedule-primary-light);
  color: var(--schedule-primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* ── Concept Template Cards ── */
.concept-card {
  border-radius: 12px;
  border: 1.5px solid #e5e7eb;
  transition: border-color 0.18s, box-shadow 0.18s;
  background: #fff;
}
.concept-card:hover {
  border-color: var(--studio-primary);
  box-shadow: 0 4px 16px rgba(99,102,241,.1);
}
.concept-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  background: var(--studio-primary-light);
  color: var(--studio-primary-dark);
  font-size: 0.72rem;
  font-weight: 600;
  margin: 2px;
}

/* ── Studio Detail Card ── */
.studio-info-card {
  border-radius: 16px;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #fff;
  padding: 1.5rem 2rem;
  margin-bottom: 1.5rem;
}
.studio-info-card .studio-logo {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: cover;
  background: rgba(255,255,255,.2);
  border: 2px solid rgba(255,255,255,.4);
}

/* ── Upcoming Sessions Sidebar ── */
.upcoming-session-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 0.6rem 0;
  border-bottom: 1px solid #f1f5f9;
}
.upcoming-session-item:last-child { border-bottom: none; }
.upcoming-date-badge {
  min-width: 44px;
  text-align: center;
  background: var(--schedule-primary-light);
  color: var(--schedule-primary-dark);
  border-radius: 8px;
  padding: 4px 6px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
}

/* ── Session Detail Page ── */
.session-detail-header {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 50%, #075985 100%);
  color: #fff;
  border-radius: 16px;
  padding: 1.5rem 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.18);
}
/* ── Unified Session Info Card ── */
.session-info-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  padding: 1.25rem 1.25rem;
  margin-bottom: 1.5rem;
}
.session-info-col {
  padding: 0.4rem 1rem;
}
@media (min-width: 992px) {
  .session-info-col:not(:last-child) {
    border-right: 1px solid #f1f5f9;
  }
}
@media (max-width: 991.98px) {
  .session-info-col:not(:last-child) {
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 1rem;
  }
}
.session-info-label {
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
}
.session-info-value {
  font-weight: 700;
  color: #0f172a;
  font-size: 0.95rem;
  line-height: 1.35;
}

/* ── Member Cards (Phase 3) ── */
.member-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid #f1f5f9;
}
.member-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08) !important;
}

/* ── Model Comp Cards (Phase 4) ── */
.model-comp-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid #f1f5f9;
}
.model-comp-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(225, 29, 72, 0.12) !important;
}
.backdrop-blur {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.text-truncate-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.whitespace-pre-wrap {
  white-space: pre-wrap;
}
