/* =========================================================
   Bigman Empire — Premium Management System Stylesheet
   Designed by Bigman Empire
   ========================================================= */

/* -------- Google Fonts -------- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Montserrat:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

/* -------- Theme tokens — DARK (Default) -------- */
:root[data-theme="dark"] {
  --bg-0:        #0a0a0a;
  --bg-1:        #111111;
  --bg-2:        #1a1a1a;
  --surface:     rgba(20, 20, 20, 0.88);
  --surface-2:   rgba(255,255,255,0.04);
  --surface-3:   rgba(255,255,255,0.07);
  --border:      rgba(255,255,255,0.08);
  --border-2:    rgba(255,255,255,0.14);
  --border-gold: rgba(197,152,46,0.25);
  --text:        #f5f5f5;
  --text-muted:  #a0a0a0;
  --text-dim:    #666666;
  --gold:        #C5982E;
  --gold-light:  #D4A844;
  --gold-dark:   #A67C1A;
  --gold-2:      #E8B93A;
  --primary:     #C5982E;
  --primary-2:   #D4A844;
  --success:     #2ECC71;
  --warning:     #E8B93A;
  --danger:      #E74C3C;
  --info:        #C5982E;
  --purple:      #D4A844;
  --glow:        0 0 30px rgba(197,152,46,0.25);
  --glow-sm:     0 0 15px rgba(197,152,46,0.15);
  --shadow-lg:   0 25px 60px -12px rgba(0,0,0,0.7);
  --shadow-sm:   0 4px 24px rgba(0,0,0,0.35);
  --shadow-card: 0 8px 32px rgba(0,0,0,0.3);
  --grad-brand:  linear-gradient(135deg, #C5982E 0%, #D4A844 40%, #E8B93A 100%);
  --grad-gold:   linear-gradient(135deg, #A67C1A 0%, #C5982E 40%, #E8B93A 100%);
  --grad-dark:   linear-gradient(135deg, #1a1a1a 0%, #111111 100%);
  --bg-gradient: radial-gradient(ellipse 1200px 900px at 10% 0%, rgba(197,152,46,0.06), transparent 60%),
                 radial-gradient(ellipse 1000px 700px at 90% 100%, rgba(197,152,46,0.04), transparent 60%),
                 linear-gradient(180deg, #0a0a0a 0%, #0d0d0d 100%);
  --navbar-bg:   rgba(10, 10, 10, 0.92);
  --input-bg:    rgba(255,255,255,0.04);
  --toggle-bg:   #222222;
  --toggle-knob: #C5982E;
  --dropdown-bg: rgba(18, 18, 18, 0.98);
  --dropdown-hover: rgba(255,255,255,0.06);
}

/* -------- Theme tokens — LIGHT -------- */
:root[data-theme="light"] {
  --bg-0:        #fafafa;
  --bg-1:        #f2f2f2;
  --bg-2:        #ffffff;
  --surface:     rgba(255, 255, 255, 0.92);
  --surface-2:   rgba(0,0,0,0.025);
  --surface-3:   rgba(0,0,0,0.05);
  --border:      rgba(0,0,0,0.07);
  --border-2:    rgba(0,0,0,0.12);
  --border-gold: rgba(197,152,46,0.2);
  --text:        #1a1a1a;
  --text-muted:  #666666;
  --text-dim:    #999999;
  --gold:        #A67C1A;
  --gold-light:  #C5982E;
  --gold-dark:   #8B6914;
  --gold-2:      #D4A844;
  --primary:     #A67C1A;
  --primary-2:   #C5982E;
  --success:     #27AE60;
  --warning:     #C5982E;
  --danger:      #C0392B;
  --info:        #A67C1A;
  --purple:      #C5982E;
  --glow:        0 0 30px rgba(197,152,46,0.18);
  --glow-sm:     0 0 15px rgba(197,152,46,0.1);
  --shadow-lg:   0 25px 60px -12px rgba(0,0,0,0.12);
  --shadow-sm:   0 4px 24px rgba(0,0,0,0.06);
  --shadow-card: 0 8px 32px rgba(0,0,0,0.06);
  --grad-brand:  linear-gradient(135deg, #A67C1A 0%, #C5982E 40%, #D4A844 100%);
  --grad-gold:   linear-gradient(135deg, #8B6914 0%, #A67C1A 40%, #C5982E 100%);
  --grad-dark:   linear-gradient(135deg, #ffffff 0%, #f9f9f9 100%);
  --bg-gradient: radial-gradient(ellipse 1200px 900px at 10% 0%, rgba(197,152,46,0.04), transparent 55%),
                 radial-gradient(ellipse 1000px 700px at 100% 100%, rgba(197,152,46,0.03), transparent 55%),
                 linear-gradient(180deg, #fafafa 0%, #f5f5f5 100%);
  --navbar-bg:   rgba(255, 255, 255, 0.95);
  --input-bg:    rgba(0,0,0,0.025);
  --toggle-bg:   #e0e0e0;
  --toggle-knob: #C5982E;
  --dropdown-bg: rgba(255, 255, 255, 0.98);
  --dropdown-hover: rgba(0,0,0,0.04);
}

/* -------- Reset & base -------- */
*,*::before,*::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-0);
  background-image: var(--bg-gradient);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0.01em;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
h1,h2,h3,h4,h5 {
  margin: 0 0 .35em;
  font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  font-weight: 600;
  letter-spacing: 0.01em;
}
h1 { font-size: 1.75rem; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.1rem; }

/* -------- App shell (no sidebar, full width) -------- */
.app-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* -------- Hide old sidebar completely -------- */
.sidebar { display: none !important; }

/* -------- TOP NAVBAR -------- */
.top-navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navbar-bg);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 20px rgba(0,0,0,0.08);
  width: 100%;
  overflow: visible;
}
.navbar-inner {
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 0 clamp(12px, 1.5vw, 24px);
  height: 64px;
  gap: 4px;
  overflow: visible;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 8px;
}
.navbar-brand img {
  height: 38px;
  width: auto;
}
.navbar-brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.navbar-brand-name {
  font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  line-height: 1.2;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.navbar-brand-tag {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Nav links */
.navbar-nav {
  display: flex;
  align-items: center;
  gap: 1px;
  flex: 1;
  min-width: 0;
  overflow: visible;
  flex-wrap: nowrap;
}
.navbar-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 9px;
  border-radius: 8px;
  color: var(--text-muted);
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  transition: all 0.25s ease;
  white-space: nowrap;
  position: relative;
  flex-shrink: 1;
  min-width: 0;
}
.navbar-nav .nav-link i {
  font-size: 0.82rem;
  width: 14px;
  text-align: center;
  flex-shrink: 0;
}
.navbar-nav .nav-link:hover {
  color: var(--gold);
  background: var(--surface-2);
}
.navbar-nav .nav-link.active {
  color: var(--gold);
  background: rgba(197,152,46,0.08);
}
.navbar-nav .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--grad-gold);
  border-radius: 2px 2px 0 0;
}

/* Navbar separator */
.nav-sep {
  width: 1px;
  height: 20px;
  background: var(--border);
  margin: 0 2px;
  flex-shrink: 0;
}

/* Navbar right actions */
.navbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex-shrink: 0;
}

/* -------- Elegant Theme Toggle Switch -------- */
.theme-toggle {
  position: relative;
  width: 52px;
  height: 28px;
  border-radius: 14px;
  background: var(--toggle-bg);
  border: 1px solid var(--border-2);
  cursor: pointer;
  transition: all 0.35s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
  flex-shrink: 0;
}
.theme-toggle:hover {
  border-color: var(--gold);
  box-shadow: var(--glow-sm);
}
.theme-toggle .toggle-icon {
  font-size: 0.7rem;
  z-index: 1;
  transition: opacity 0.3s, color 0.3s;
}
.theme-toggle .toggle-icon.moon {
  color: var(--gold);
}
.theme-toggle .toggle-icon.sun {
  color: #ffd700;
}
.theme-toggle .toggle-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--toggle-knob);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
:root[data-theme="light"] .theme-toggle .toggle-knob {
  transform: translateX(24px);
}
:root[data-theme="dark"] .theme-toggle .toggle-icon.sun { opacity: 0.4; }
:root[data-theme="light"] .theme-toggle .toggle-icon.moon { opacity: 0.4; }

/* ============================================================
   USER DROPDOWN (replaces old user link + logout button)
   ============================================================ */
.user-dropdown-wrap {
  position: relative;
}

.navbar-user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px 5px 6px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  font-family: inherit;
  flex-shrink: 0;
  max-width: 220px;
}
.navbar-user:hover {
  background: var(--surface-2);
  border-color: var(--border);
}
.navbar-user .user-meta-text {
  min-width: 0;
  overflow: hidden;
}
.navbar-user .user-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.navbar-user .user-role {
  font-size: 0.65rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Dropdown menu */
.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 260px;
  background: var(--dropdown-bg);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border: 1px solid var(--border-2);
  border-radius: 14px;
  box-shadow: 0 20px 60px -10px rgba(0,0,0,0.45), 0 0 0 1px rgba(197,152,46,0.06);
  padding: 8px 0;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.97);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.user-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.user-dropdown-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px 12px;
}

.user-dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 6px 14px;
}

.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.18s;
  cursor: pointer;
  text-decoration: none;
}
.user-dropdown-item i {
  width: 18px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--gold);
  transition: color 0.18s;
}
.user-dropdown-item:hover {
  background: var(--dropdown-hover);
  color: var(--text);
}
.user-dropdown-item:hover i {
  color: var(--gold-light);
}
.user-dropdown-danger {
  color: var(--danger) !important;
}
.user-dropdown-danger i {
  color: var(--danger) !important;
}
.user-dropdown-danger:hover {
  background: rgba(231,76,60,0.06) !important;
}

/* Chevron rotation when open */
.user-dropdown-wrap.open .navbar-user .fa-chevron-down {
  transform: rotate(180deg);
}

/* Mobile hamburger */
.hamburger {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--gold);
  cursor: pointer;
  place-items: center;
  font-size: 1.1rem;
  transition: all 0.2s;
}
.hamburger:hover { background: var(--surface-2); border-color: var(--gold); }

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--navbar-bg);
  backdrop-filter: blur(24px);
  z-index: 99;
  padding: 16px;
  overflow-y: auto;
  animation: slideDown 0.3s ease;
}
.mobile-nav.open { display: block; }
.mobile-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 10px;
  color: var(--text-muted);
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s;
  margin-bottom: 4px;
}
.mobile-nav .nav-link i { width: 20px; text-align: center; color: var(--gold); }
.mobile-nav .nav-link:hover,
.mobile-nav .nav-link.active { background: rgba(197,152,46,0.08); color: var(--gold); }

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

/* -------- Main area (full width, no sidebar) -------- */
.main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* -------- Page header (below navbar) -------- */
.page-header {
  padding: 28px 32px 24px;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}
.page-header h1 {
  font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  font-size: 1.8rem;
  font-weight: 600;
  margin: 0;
  color: var(--text);
}
.page-header p {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
}

/* Remove old topbar */
.topbar { display: none !important; }

/* Content area */
.content-area {
  flex: 1;
  padding: 0 32px 40px;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}

/* -------- Footer -------- */
.app-footer {
  padding: 24px 32px;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.03em;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}
.app-footer .footer-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.app-footer .footer-left img {
  height: 22px;
  width: auto;
  opacity: 0.6;
}
.app-footer .footer-designed {
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.7rem;
}
.app-footer .sep { opacity: 0.3; margin: 0 4px; }

/* -------- Cards & glass -------- */
.glass, .card {
  background: var(--surface);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  padding: 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.card.hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--border-gold);
  border-color: var(--border-gold);
}
.card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.card-title h2 {
  margin: 0;
  font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
}
.card-title .subtle {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* -------- Buttons — REFINED -------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, transparent 60%);
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.btn:hover::after { opacity: 1; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--grad-brand);
  color: #000;
  box-shadow: 0 8px 28px -8px rgba(197,152,46,0.5), inset 0 1px 0 rgba(255,255,255,0.15);
}
.btn-primary:hover {
  box-shadow: 0 14px 36px -8px rgba(197,152,46,0.65), inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn-gold {
  background: var(--grad-gold);
  color: #000;
  box-shadow: 0 8px 28px -8px rgba(197,152,46,0.5), inset 0 1px 0 rgba(255,255,255,0.15);
}
.btn-ghost {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover {
  background: var(--surface-3);
  border-color: var(--border-gold);
  color: var(--gold);
  box-shadow: 0 4px 16px -4px rgba(197,152,46,0.15);
}
.btn-danger {
  background: linear-gradient(135deg, #C0392B 0%, #E74C3C 100%);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(231,76,60,0.4);
}
.btn-danger:hover { box-shadow: 0 12px 32px -8px rgba(231,76,60,0.55); }
.btn-success {
  background: linear-gradient(135deg, #27AE60 0%, #2ECC71 100%);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(46,204,113,0.4);
}
.btn-success:hover { box-shadow: 0 12px 32px -8px rgba(46,204,113,0.55); }
.btn-sm { padding: 7px 14px; font-size: 0.78rem; border-radius: 8px; }
.btn-lg { padding: 14px 26px; font-size: 0.92rem; border-radius: 12px; }
.btn-block { width: 100%; justify-content: center; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ============================================================
   QUICK ACTIONS GRID — Premium Dashboard Buttons
   ============================================================ */
.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
}
.quick-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.quick-action-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle 120px at 50% 30%, rgba(197,152,46,0.06), transparent 80%);
  opacity: 0;
  transition: opacity 0.3s;
}
.quick-action-btn:hover::before { opacity: 1; }
.quick-action-btn:hover {
  border-color: var(--border-gold);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px -8px rgba(0,0,0,0.3), 0 0 0 1px var(--border-gold);
}
.quick-action-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  transition: transform 0.3s;
  position: relative;
  z-index: 1;
}
.quick-action-btn:hover .quick-action-icon {
  transform: scale(1.1);
}

/* -------- Task Status Tiles -------- */
.task-status-tile {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-2);
  transition: all 0.25s;
}
.task-status-tile:hover {
  border-color: var(--border-gold);
  background: var(--surface-3);
}

/* -------- Forms -------- */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 18px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.input, .select, .textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.textarea { resize: vertical; min-height: 90px; }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(197,152,46,0.12);
}
.select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23C5982E' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.select[multiple] { background-image: none; padding-right: 14px; min-height: 120px; }
.checkbox-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
  max-height: 220px; overflow-y: auto;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--input-bg);
}
.checkbox-list label {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px; border-radius: 8px;
  font-size: 0.88rem; color: var(--text);
  cursor: pointer;
  text-transform: none; letter-spacing: 0;
}
.checkbox-list label:hover { background: var(--surface-3); }
.checkbox-list input { accent-color: var(--gold); }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 24px; }
.form-hint { font-size: 0.78rem; color: var(--text-dim); font-family: 'Montserrat', sans-serif; }

/* -------- Tables -------- */
.table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card);
}
.table {
  width: 100%;
  border-collapse: collapse;
}
.table th, .table td {
  padding: 14px 18px;
  text-align: left;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--border);
}
.table th {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  background: var(--surface-2);
}
.table tbody tr { transition: background 0.15s; }
.table tbody tr:hover { background: var(--surface-2); }
.table tbody tr:last-child td { border-bottom: none; }
.table .actions { text-align: right; white-space: nowrap; }
.table .actions .btn { margin-left: 4px; }
.table-scroll { overflow-x: auto; }

/* -------- Badges -------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid transparent;
}
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-success { color: var(--success); background: rgba(46,204,113,0.1); border-color: rgba(46,204,113,0.25); }
.badge-warning { color: var(--warning); background: rgba(232,185,58,0.1); border-color: rgba(232,185,58,0.25); }
.badge-danger  { color: var(--danger);  background: rgba(231,76,60,0.1);  border-color: rgba(231,76,60,0.25); }
.badge-info    { color: var(--gold);    background: rgba(197,152,46,0.1); border-color: rgba(197,152,46,0.25); }
.badge-primary { color: var(--gold);    background: rgba(197,152,46,0.1); border-color: rgba(197,152,46,0.25); }
.badge-purple  { color: var(--gold-light); background: rgba(212,168,68,0.1); border-color: rgba(212,168,68,0.25); }
.badge-muted   { color: var(--text-muted); background: var(--surface-2); border-color: var(--border); }

/* -------- Alerts -------- */
.alert {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 12px;
  margin-bottom: 18px;
  border: 1px solid;
  font-size: 0.88rem;
  font-family: 'Montserrat', sans-serif;
  animation: slide-in 0.3s ease;
}
.alert i { font-size: 1rem; }
.alert span { flex: 1; }
.alert-close {
  background: none; border: none; color: inherit;
  font-size: 1.2rem; cursor: pointer; padding: 0 4px;
  opacity: 0.6;
}
.alert-close:hover { opacity: 1; }
.alert-success { background: rgba(46,204,113,0.08); border-color: rgba(46,204,113,0.25); color: var(--success); }
.alert-error   { background: rgba(231,76,60,0.08); border-color: rgba(231,76,60,0.25); color: var(--danger); }
.alert-info    { background: rgba(197,152,46,0.08); border-color: rgba(197,152,46,0.25); color: var(--gold); }
.alert-warning { background: rgba(232,185,58,0.08); border-color: rgba(232,185,58,0.25); color: var(--warning); }

/* -------- Stat cards -------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  margin-bottom: 26px;
}
.stat-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-card);
}
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--border-gold);
  border-color: var(--border-gold);
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-gold);
  opacity: 0.8;
}
.stat-card.gold::before { background: var(--grad-gold); }
.stat-card.green::before { background: linear-gradient(90deg,#27AE60,#2ECC71); }
.stat-card.red::before { background: linear-gradient(90deg,#C0392B,#E74C3C); }
.stat-card.purple::before { background: var(--grad-gold); }
.stat-head { display: flex; justify-content: space-between; align-items: flex-start; }
.stat-icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center;
  background: rgba(197,152,46,0.08);
  color: var(--gold);
  font-size: 1.15rem;
  border: 1px solid var(--border-gold);
  transition: transform 0.3s;
}
.stat-card:hover .stat-icon { transform: scale(1.05); }
.stat-label {
  font-family: 'Montserrat', sans-serif;
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}
.stat-value {
  font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.1;
  margin-top: 10px;
  background: var(--grad-gold);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-card.gold .stat-value { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat-card.green .stat-value { background: linear-gradient(135deg,#27AE60,#2ECC71); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 6px;
  font-family: 'Montserrat', sans-serif;
}

/* -------- Toolbar -------- */
.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.toolbar .search { flex: 1; min-width: 220px; position: relative; }
.toolbar .search input { padding-left: 42px; }
.toolbar .search i {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--gold);
}
.toolbar .filters { display: flex; gap: 8px; flex-wrap: wrap; }
.toolbar .filters .select { min-width: 140px; padding: 9px 32px 9px 12px; font-size: 0.85rem; }

/* Toolbar action buttons — ensure icon+text are properly centered */
.toolbar .btn {
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 10px 22px;
}

/* -------- Empty state -------- */
.empty {
  text-align: center; padding: 48px 20px; color: var(--text-muted);
}
.empty i { font-size: 2.5rem; margin-bottom: 12px; color: var(--gold); opacity: 0.4; }
.empty h3 {
  color: var(--text);
  margin-bottom: 6px;
  font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
}

/* -------- Empty-state CTA — premium call-to-action button -------- */
.empty-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 36px 16px 20px;
  border-radius: 14px;
  background: var(--surface);
  border: 1.5px solid var(--border-gold);
  color: var(--text);
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 24px -6px rgba(197,152,46,0.18),
              0 0 0 0 rgba(197,152,46,0);
}
.empty-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(197,152,46,0.06) 0%, transparent 50%, rgba(197,152,46,0.04) 100%);
  border-radius: inherit;
  pointer-events: none;
  transition: opacity 0.35s;
  opacity: 1;
}
.empty-cta::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(197,152,46,0.1), transparent);
  transition: left 0.6s ease;
  pointer-events: none;
}
.empty-cta:hover::after {
  left: 120%;
}
.empty-cta:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 12px 36px -8px rgba(197,152,46,0.35),
              0 0 0 3px rgba(197,152,46,0.08);
  color: var(--gold-light);
}
.empty-cta:hover::before {
  opacity: 0;
}
.empty-cta:active {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px -6px rgba(197,152,46,0.25);
}
.empty-cta-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--grad-gold);
  color: #000;
  font-size: 1rem;
  flex-shrink: 0;
  box-shadow: 0 4px 16px -4px rgba(197,152,46,0.45);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s;
}
.empty-cta:hover .empty-cta-icon {
  transform: scale(1.1) rotate(-3deg);
  box-shadow: 0 6px 20px -4px rgba(197,152,46,0.6);
}
.empty-cta-label {
  position: relative;
  z-index: 1;
}

/* -------- Detail view -------- */
.detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 18px;
}
.detail-grid .full { grid-column: 1 / -1; }
.info-row {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 12px 0; border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.info-row:last-child { border-bottom: none; }
.info-row .label {
  color: var(--text-muted);
  font-weight: 500;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
}
.info-row .value { color: var(--text); text-align: right; }

/* Activity feed */
.activity-list { list-style: none; padding: 0; margin: 0; }
.activity-item {
  display: flex; gap: 14px; padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.activity-item:last-child { border-bottom: none; }
.activity-dot {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(197,152,46,0.08);
  color: var(--gold);
  flex-shrink: 0;
  border: 1px solid var(--border-gold);
}
.activity-body { flex: 1; }
.activity-text { font-size: 0.88rem; }
.activity-time { font-size: 0.75rem; color: var(--text-muted); font-family: 'Montserrat', sans-serif; }

/* -------- Auth / Login page -------- */
.auth-shell {
  min-height: 100vh;
  display: flex;
  background: var(--bg-0);
  background-image: var(--bg-gradient);
  background-attachment: fixed;
}
.auth-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  position: relative;
  overflow: hidden;
}
.auth-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 800px 600px at 50% 40%, rgba(197,152,46,0.06), transparent 70%);
}
.auth-card {
  width: 100%;
  max-width: 440px;
  padding: 48px 40px;
  background: var(--surface);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
  animation: pop-in 0.5s ease;
}
.auth-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 18px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(197,152,46,0.4), transparent 40%, rgba(197,152,46,0.2));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.auth-brand {
  text-align: center;
  margin-bottom: 32px;
}
.auth-brand img {
  height: 80px;
  width: auto;
  margin: 0 auto 18px;
}
.auth-brand h1 {
  font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.auth-brand p {
  color: var(--text-muted);
  margin: 6px 0 0;
  font-size: 0.85rem;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
}
.auth-footer-text {
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 20px;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.06em;
}
.auth-footer-text .designed-by {
  color: var(--gold);
  font-weight: 600;
}
.auth-right {
  width: 480px;
  flex-shrink: 0;
  background: #0a0a0a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px;
  position: relative;
  overflow: hidden;
}
.auth-right::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 600px 500px at 50% 50%, rgba(197,152,46,0.08), transparent 70%);
}
.auth-right img {
  height: 120px;
  width: auto;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 8px 32px rgba(197,152,46,0.25));
}
.auth-right h2 {
  font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
  position: relative;
  z-index: 1;
  margin-bottom: 12px;
}
.auth-right p {
  color: rgba(255,255,255,0.5);
  text-align: center;
  position: relative;
  z-index: 1;
  font-size: 0.85rem;
  max-width: 300px;
  line-height: 1.7;
}
.auth-right .gold-line {
  width: 60px;
  height: 2px;
  background: var(--grad-gold);
  margin: 20px auto 0;
  position: relative;
  z-index: 1;
}

/* -------- Two-column / grid helpers -------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }

/* -------- Animations -------- */
@keyframes slide-in {
  from { transform: translateY(-6px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
@keyframes pop-in {
  from { transform: scale(0.97); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
@keyframes fade-up {
  from { transform: translateY(10px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.content-area > * { animation: fade-up 0.35s ease; }

/* -------- Utilities -------- */
.mt-0{margin-top:0}.mt-2{margin-top:8px}.mt-3{margin-top:14px}.mt-4{margin-top:22px}
.mb-0{margin-bottom:0}.mb-2{margin-bottom:8px}.mb-3{margin-bottom:14px}.mb-4{margin-bottom:22px}
.text-muted{color:var(--text-muted)}.text-dim{color:var(--text-dim)}
.text-center{text-align:center}.text-right{text-align:right}
.text-gold{color:var(--gold)}
.flex{display:flex}.flex-1{flex:1}.gap-2{gap:8px}.gap-3{gap:14px}
.between{display:flex;justify-content:space-between;align-items:center}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 0.75rem;
  font-family: 'Montserrat', sans-serif;
}
.divider { height: 1px; background: var(--border); margin: 16px 0; border: 0; }
.mono { font-family: 'Montserrat', monospace; font-size: 0.85em; }

/* User chip */
.user-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 8px; border-radius: 10px;
  background: var(--surface-2);
}
.avatar {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 0.85rem;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
  font-family: 'Cormorant Garamond', serif;
}
.avatar.lg { width: 56px; height: 56px; font-size: 1.1rem; }
.avatar.sm { width: 28px; height: 28px; font-size: 0.72rem; }
.user-meta { min-width: 0; }
.user-name {
  font-weight: 600;
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-role { font-size: 0.72rem; color: var(--gold); font-weight: 500; }

/* -------- Responsive -------- */

/* Large screens: slightly reduce padding to fit all items */
@media (max-width: 1440px) and (min-width: 1201px) {
  .navbar-nav .nav-link { padding: 7px 7px; font-size: 0.76rem; }
  .navbar-nav .nav-link i { font-size: 0.8rem; }
  .navbar-nav { gap: 0; }
}

/* Mid-range screens: collapse nav text to icons only */
@media (max-width: 1200px) and (min-width: 901px) {
  .navbar-nav .nav-link span { display: none; }
  .navbar-nav .nav-link { padding: 8px 10px; gap: 0; }
  .navbar-nav .nav-link i { width: auto; font-size: 0.95rem; }
  .navbar-brand-text { display: none; }
  .navbar-brand { margin-right: 8px; }
  .navbar-user .user-meta-text { display: none; }
  .navbar-user .fa-chevron-down { display: none !important; }
}

@media (max-width: 960px) {
  .form-grid, .grid-2, .grid-3, .detail-grid { grid-template-columns: 1fr; }
  .auth-right { display: none; }
}
@media (max-width: 900px) {
  .hamburger { display: grid; }
  .navbar-nav { display: none; }
  .nav-sep { display: none; }
  .navbar-user .user-meta-text { display: none; }
  .navbar-user .fa-chevron-down { display: none !important; }
  .user-dropdown { right: -40px; min-width: 240px; }
  .content-area { padding: 0 16px 32px; }
  .page-header { padding: 20px 16px 16px; }
  .navbar-inner { padding: 0 16px; height: 58px; }
  .navbar-brand img { height: 32px; }
  .quick-actions-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }
  .quick-action-btn { padding: 14px 8px; }
  .quick-action-icon { width: 40px; height: 40px; font-size: 1rem; }
}
@media (max-width: 520px) {
  .stat-value { font-size: 1.7rem; }
  .btn-sm { padding: 5px 10px; }
  .table th, .table td { padding: 10px 12px; font-size: 0.85rem; }
  .auth-card { padding: 32px 22px; }
}

/* Backdrop when mobile nav open */
.backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  z-index: 98; opacity: 0; pointer-events: none;
  transition: opacity 0.2s;
}
.backdrop.show { opacity: 1; pointer-events: auto; }

/* Scrollbar styling */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* -------- Extra helpers -------- */
.card-hover-row:hover { background: var(--surface-3) !important; border-color: var(--border-gold) !important; }
select.flash-ok { outline: 2px solid var(--success) !important; }
.avatar-swatch-selected { border-color: var(--gold) !important; box-shadow: 0 0 0 3px var(--gold) !important; }

/* Progress bar */
.progress-mini {
  height: 4px; background: var(--surface-2); border-radius: 2px; overflow: hidden; margin-top: 6px;
}
.progress-mini-bar {
  height: 100%; background: var(--grad-gold); border-radius: 2px;
  transition: width 0.4s ease;
}

/* Table actions hover */
.table tbody tr .actions { opacity: 0.45; transition: opacity 0.15s; }
.table tbody tr:hover .actions { opacity: 1; }

/* Task status select */
select[data-task-status] { cursor: pointer; }

/* Skill tag */
.skill-tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 6px; font-size: 0.78rem; font-weight: 500;
  background: rgba(197,152,46,0.08); color: var(--gold);
  border: 1px solid rgba(197,152,46,0.2);
  font-family: 'Montserrat', sans-serif;
}

/* Stat card in detail pages */
.stat-card .stat-value { font-size: 1.7rem; }

/* -------- Elegant Toggle Switch (general purpose) -------- */
.elegant-toggle {
  position: relative;
  width: 48px;
  height: 26px;
  border-radius: 13px;
  background: var(--toggle-bg);
  border: 1px solid var(--border-2);
  cursor: pointer;
  transition: all 0.35s ease;
  flex-shrink: 0;
}
.elegant-toggle:hover { border-color: var(--gold); }
.elegant-toggle input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 2;
  margin: 0;
}
.elegant-toggle .toggle-track {
  position: absolute;
  inset: 0;
  border-radius: 13px;
  transition: background 0.3s;
}
.elegant-toggle .toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.elegant-toggle input:checked ~ .toggle-thumb {
  transform: translateX(22px);
}
.elegant-toggle input:checked ~ .toggle-track {
  background: rgba(197,152,46,0.15);
}

/* -------- Gold accent line -------- */
.gold-line {
  width: 60px;
  height: 2px;
  background: var(--grad-gold);
  border-radius: 1px;
}

/* -------- New Feature: Reports page card -------- */
.report-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  display: block;
  color: var(--text);
}
.report-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.report-card i {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 12px;
}
.report-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  margin-bottom: 6px;
}
.report-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* -------- New Feature: Notes styling -------- */
.note-card {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  transition: all 0.2s;
  border-left: 3px solid var(--gold);
}
.note-card:hover { border-color: var(--border-gold); }
.note-card .note-date {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-family: 'Montserrat', sans-serif;
}
.note-card .note-text {
  margin-top: 8px;
  font-size: 0.9rem;
  line-height: 1.7;
}

/* -------- New Feature: Calendar mini -------- */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.calendar-day {
  text-align: center;
  padding: 10px 4px;
  font-size: 0.82rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Montserrat', sans-serif;
}
.calendar-day:hover { background: var(--surface-3); }
.calendar-day.today {
  background: rgba(197,152,46,0.12);
  color: var(--gold);
  font-weight: 700;
  border: 1px solid var(--border-gold);
}
.calendar-day.has-event::after {
  content: '';
  display: block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
  margin: 4px auto 0;
}
.calendar-header {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  font-weight: 600;
  text-align: center;
  padding: 8px 0;
}

/* -------- New Feature: Settings page -------- */
.settings-section {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.settings-section:last-child { border-bottom: none; }
.settings-section h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: var(--text);
}
.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
}
.settings-row .settings-info { flex: 1; }
.settings-row .settings-label {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 2px;
}
.settings-row .settings-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Auth page responsive */
@media (max-width: 480px) {
  .auth-card { padding: 28px 18px; }
}

/* -------- Favicon link tag helper -------- */
.icon-btn {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text); cursor: pointer;
  display: grid; place-items: center;
  transition: all 0.2s;
}
.icon-btn:hover { background: var(--surface-3); border-color: var(--border-gold); color: var(--gold); transform: translateY(-1px); }

/* -------- Weekly Reports -------- */
.weekly-report-card {
  transition: all 0.25s ease;
}
.weekly-report-card:hover {
  border-color: var(--border-gold) !important;
}
.weekly-report-sections {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.weekly-report-section {
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.weekly-report-section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.weekly-report-section-title i {
  font-size: 0.82rem;
}
.weekly-report-section-body {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--text);
}
.weekly-report-feedback {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(46,204,113,0.06);
  border: 1px solid rgba(46,204,113,0.2);
}
.weekly-report-review-form {
  padding: 16px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  animation: fade-up 0.25s ease;
}

.hide-sm { }
@media (max-width: 900px) {
  .hide-sm { display: none !important; }
}
