/* ═══════════════════════════════════════════════════════════════════════════
   CallYourKid — Luxury Override v2
   Drop this after dashboard.css to instantly upgrade any page.
   Does NOT change HTML structure or JavaScript — pure visual layer.
═══════════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;1,600&family=Nunito:wght@400;600;700;800;900&display=swap');

/* ── Root overrides ───────────────────────────────────────────────────── */
:root {
  --bg-base:       #080f1a;
  --bg-sidebar:    #060c17;
  --bg-card:       rgba(255,255,255,0.04);
  --bg-elevated:   rgba(255,255,255,0.07);
  --bg-input:      rgba(255,255,255,0.05);
  --border:        rgba(255,255,255,0.08);
  --border-light:  rgba(255,255,255,0.12);
  --orange:        #c9a84c;
  --orange-dim:    rgba(201,168,76,0.12);
  --text-primary:  #f0f4f8;
  --text-secondary:#94a3b8;
  --text-muted:    #64748b;
}

/* ── Body & layout ────────────────────────────────────────────────────── */
body {
  background: var(--bg-base);
  font-family: 'Nunito', sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Subtle ambient glow in top-left */
body::before {
  content: '';
  position: fixed;
  top: -15%;
  left: -5%;
  width: 50%;
  height: 50%;
  background: radial-gradient(ellipse, rgba(201,168,76,0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── Sidebar ──────────────────────────────────────────────────────────── */
.sidebar {
  background: linear-gradient(180deg, #060c17 0%, #080f1a 100%);
  border-right: 1px solid rgba(201,168,76,0.1);
}

.sidebar-header {
  border-bottom: 1px solid rgba(201,168,76,0.1);
  padding: 24px 20px 20px;
}

.sidebar-header .logo {
  font-family: 'Playfair Display', serif !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  color: #fff !important;
  text-transform: none !important;
  letter-spacing: 0.3px !important;
}
.sidebar-header .logo span {
  color: var(--orange) !important;
}

/* Nav items */
.nav-item {
  border-radius: 10px;
  margin: 2px 10px;
  color: var(--text-secondary);
  font-weight: 700;
  transition: all 0.2s cubic-bezier(0.4,0,0.2,1);
}
.nav-item:hover {
  background: rgba(201,168,76,0.08);
  color: #fff;
}
.nav-item.active {
  background: rgba(201,168,76,0.12);
  color: var(--orange);
  border: 1px solid rgba(201,168,76,0.2);
}
.nav-item.active .nav-icon { color: var(--orange); }

.nav-section-label {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: rgba(201,168,76,0.5);
  padding: 12px 20px 4px;
}

/* User profile in sidebar */
.user-profile {
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
}
.user-avatar {
  background: linear-gradient(135deg, #c9a84c, #e0c068);
  color: #080f1a;
  font-weight: 900;
  border-radius: 10px;
}

/* ── Top bar ──────────────────────────────────────────────────────────── */
.topbar {
  background: rgba(8,15,26,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.page-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.2px;
}

.date-display {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
}

/* ── Book a Call button ───────────────────────────────────────────────── */
.btn-primary,
button.btn-primary {
  background: linear-gradient(135deg, #c9a84c, #e0c068) !important;
  color: #080f1a !important;
  font-weight: 900 !important;
  border: none !important;
  border-radius: 50px !important;
  box-shadow: none !important;
  transition: all 0.22s cubic-bezier(0.4,0,0.2,1) !important;
}
.btn-primary:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(201,168,76,0.3) !important;
}

/* ── Bell ─────────────────────────────────────────────────────────────── */
.notification-bell {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 50%;
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  cursor: pointer;
}
.notification-bell:hover {
  border-color: rgba(201,168,76,0.3);
  background: rgba(201,168,76,0.08);
  color: var(--orange);
}
.notification-badge {
  background: linear-gradient(135deg, #c9a84c, #e0c068);
  color: #080f1a;
  font-weight: 900;
  border-radius: 50%;
}

/* ── Panels / Cards ───────────────────────────────────────────────────── */
.panel,
.call-request-panel,
.stat-card,
.info-card,
.session-card,
.request-item,
.notification-item {
  background: rgba(255,255,255,0.04) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 16px !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  transition: all 0.22s cubic-bezier(0.4,0,0.2,1);
}

.panel::before,
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  border-radius: 16px 16px 0 0;
  pointer-events: none;
}

.panel:hover,
.stat-card:hover {
  border-color: rgba(201,168,76,0.2) !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.panel-header {
  border-bottom: 1px solid rgba(255,255,255,0.06) !important;
  padding-bottom: 14px;
}

.panel-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

/* ── Stat cards ───────────────────────────────────────────────────────── */
.stat-value {
  font-family: 'Playfair Display', serif !important;
  font-size: 36px !important;
  font-weight: 700 !important;
  color: var(--orange) !important;
}
.stat-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted) !important;
}

/* ── Section labels ───────────────────────────────────────────────────── */
.section-label,
.nav-section-label,
.panel-subtitle,
.notification-count,
.incoming-count {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--orange) !important;
}

/* ── Status badges ────────────────────────────────────────────────────── */
.request-status.pending,
.request-status.booked {
  background: rgba(52,211,153,0.1) !important;
  color: #34d399 !important;
  border: 1px solid rgba(52,211,153,0.2) !important;
  border-radius: 20px !important;
  padding: 3px 10px !important;
  font-size: 11px !important;
  font-weight: 800 !important;
}
.request-status.objected {
  background: rgba(251,191,36,0.1) !important;
  color: #fbbf24 !important;
  border: 1px solid rgba(251,191,36,0.2) !important;
  border-radius: 20px !important;
  padding: 3px 10px !important;
  font-size: 11px !important;
  font-weight: 800 !important;
}
.request-status.scheduled {
  background: rgba(96,165,250,0.1) !important;
  color: #60a5fa !important;
  border: 1px solid rgba(96,165,250,0.2) !important;
  border-radius: 20px !important;
  padding: 3px 10px !important;
  font-size: 11px !important;
  font-weight: 800 !important;
}

/* ── Inputs ───────────────────────────────────────────────────────────── */
input, select, textarea {
  background: rgba(255,255,255,0.05) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  border-radius: 10px !important;
  color: var(--text-primary) !important;
  font-family: 'Nunito', sans-serif !important;
  transition: all 0.2s !important;
}
input:focus, select:focus, textarea:focus {
  border-color: rgba(201,168,76,0.5) !important;
  background: rgba(201,168,76,0.04) !important;
  box-shadow: 0 0 0 3px rgba(201,168,76,0.08) !important;
  outline: none !important;
}

/* ── Scrollbar ────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(201,168,76,0.4); }

/* ── Notification panel items ─────────────────────────────────────────── */
.notification-item {
  padding: 12px !important;
  margin-bottom: 8px !important;
}
.notification-item:last-child { margin-bottom: 0 !important; }

/* ── Empty states ─────────────────────────────────────────────────────── */
.empty-state p {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
}

/* ── Modals ───────────────────────────────────────────────────────────── */
.modal-overlay,
#reschedule-modal {
  background: rgba(8,15,26,0.85) !important;
  backdrop-filter: blur(12px) !important;
}
.modal,
#reschedule-modal > div {
  background: #0d1b2e !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 20px !important;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6) !important;
}

/* ── Toasts ───────────────────────────────────────────────────────────── */
.dashboard-toast {
  border-radius: 12px !important;
  backdrop-filter: blur(16px) !important;
  font-weight: 700 !important;
}
.dashboard-toast.success {
  background: rgba(52,211,153,0.12) !important;
  border: 1px solid rgba(52,211,153,0.25) !important;
  color: #34d399 !important;
}
.dashboard-toast.error {
  background: rgba(248,113,113,0.12) !important;
  border: 1px solid rgba(248,113,113,0.25) !important;
  color: #f87171 !important;
}

/* ── Main content area ────────────────────────────────────────────────── */
.main-content {
  background: transparent;
}
.content-grid,
.dashboard-grid {
  position: relative;
  z-index: 1;
}

/* ── User dropdown ────────────────────────────────────────────────────── */
.user-dropdown-menu {
  background: #0d1b2e !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 14px !important;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5) !important;
  backdrop-filter: blur(20px) !important;
}
.dropdown-item:hover {
  background: rgba(201,168,76,0.08) !important;
  color: var(--orange) !important;
}

/* ── Link to Case button ──────────────────────────────────────────────── */
.link-to-case-btn {
  background: rgba(201,168,76,0.08) !important;
  border: 1px solid rgba(201,168,76,0.2) !important;
  color: var(--orange) !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
}
.link-to-case-btn:hover {
  background: rgba(201,168,76,0.15) !important;
}

/* ── Booking modal ────────────────────────────────────────────────────── */
.request-modal,
#request-form-wrapper {
  background: #0d1b2e !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 20px !important;
}

/* ── Report objection callout ─────────────────────────────────────────── */
.request-objection {
  background: rgba(251,191,36,0.08) !important;
  border: 1px solid rgba(251,191,36,0.2) !important;
  border-radius: 8px !important;
  color: #fbbf24 !important;
  padding: 8px 12px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

/* ── Court report link in nav ─────────────────────────────────────────── */
.nav-item[href="court-report.html"] {
  color: var(--orange) !important;
}

/* ── Animations for panel load ────────────────────────────────────────── */
.panel {
  animation: luxPanelIn 0.35s cubic-bezier(0.4,0,0.2,1) both;
}
@keyframes luxPanelIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.panel:nth-child(1) { animation-delay: 0.05s; }
.panel:nth-child(2) { animation-delay: 0.10s; }
.panel:nth-child(3) { animation-delay: 0.15s; }
.panel:nth-child(4) { animation-delay: 0.20s; }

/* ── Payment / profile banners ────────────────────────────────────────── */
.profile-completion-banner,
.payment-banner {
  background: linear-gradient(135deg, rgba(201,168,76,0.12), rgba(201,168,76,0.06)) !important;
  border-bottom: 1px solid rgba(201,168,76,0.2) !important;
}
.banner-action {
  background: var(--orange) !important;
  color: #080f1a !important;
  font-weight: 800 !important;
  border-radius: 20px !important;
}
