/* ==========================================================================
   TAGBA - Design System & Modern UI Stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  /* Colors */
  --bg-primary: #0a0f1d;
  --bg-secondary: #111827;
  --bg-card: rgba(17, 24, 39, 0.75);
  --bg-card-hover: rgba(31, 41, 55, 0.85);
  --bg-card-glass: rgba(17, 24, 39, 0.65);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-glow: rgba(16, 185, 129, 0.35);

  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;

  /* Brand Accents */
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --emerald-400: #34d399;
  --emerald-glow: rgba(16, 185, 129, 0.25);

  --gold-500: #f59e0b;
  --gold-400: #fbbf24;
  --gold-glow: rgba(245, 158, 11, 0.25);

  --blue-500: #3b82f6;
  --blue-400: #60a5fa;

  --purple-500: #8b5cf6;
  --rose-500: #f43f5e;
  --rose-glow: rgba(244, 63, 94, 0.25);

  /* Gradients */
  --grad-emerald: linear-gradient(135deg, #10b981 0%, #047857 100%);
  --grad-gold: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --grad-hero: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(59, 130, 246, 0.08) 50%, rgba(245, 158, 11, 0.1) 100%);
  --grad-card: linear-gradient(145deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);

  /* Radius & Shadows */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 30px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 25px var(--emerald-glow);

  --transition-fast: 0.18s ease;
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);

  --sidebar-width: 270px;
}

/* Light Theme Variables */
body.light-theme {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(241, 245, 249, 0.95);
  --bg-card-glass: rgba(255, 255, 255, 0.75);
  --border-color: rgba(0, 0, 0, 0.08);
  --border-color-glow: rgba(16, 185, 129, 0.4);

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #94a3b8;

  --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.09);
  --grad-hero: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(59, 130, 246, 0.05) 50%, rgba(245, 158, 11, 0.07) 100%);
  --grad-card: linear-gradient(145deg, rgba(0, 0, 0, 0.01) 0%, rgba(0, 0, 0, 0.03) 100%);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
  color: inherit;
  outline: none;
  border: none;
}

button {
  cursor: pointer;
  transition: all var(--transition-fast);
}

/* App Layout */
.app-container {
  display: flex;
  min-height: 100vh;
  position: relative;
}

/* Background Ambient Glows */
.bg-glow-orb-1 {
  position: fixed;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.bg-glow-orb-2 {
  position: fixed;
  bottom: -150px;
  left: 200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  backdrop-filter: blur(20px);
  transition: transform var(--transition-smooth);
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 10px 24px 10px;
  border-bottom: 1px solid var(--border-color);
}

.brand-logo-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--grad-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 18px var(--emerald-glow);
  font-weight: 800;
  font-size: 20px;
  color: white;
  flex-shrink: 0;
}

.brand-text h2 {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.1;
  background: linear-gradient(135deg, #ffffff 30%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.light-theme .brand-text h2 {
  background: linear-gradient(135deg, #0f172a 30%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-text p {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.nav-menu {
  list-style: none;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  overflow-y: auto;
}

.nav-item {
  width: 100%;
}

.nav-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  border: 1px solid transparent;
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  transform: translateX(3px);
}

.nav-btn.active {
  background: var(--emerald-glow);
  color: var(--emerald-400);
  border-color: rgba(16, 185, 129, 0.3);
  font-weight: 600;
}

body.light-theme .nav-btn.active {
  background: rgba(16, 185, 129, 0.12);
  color: var(--emerald-600);
}

.nav-btn .icon {
  font-size: 18px;
  width: 22px;
  display: flex;
  justify-content: center;
}

.nav-btn .badge-pill {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.nav-btn.active .badge-pill {
  background: var(--emerald-500);
  color: #fff;
}

/* Sidebar Footer */
.sidebar-footer {
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.user-quick-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.avatar-sm {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--grad-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  flex-shrink: 0;
}

.user-quick-info h4 {
  font-size: 13px;
  line-height: 1.2;
}

.user-quick-info span {
  font-size: 11px;
  color: var(--text-muted);
}

/* Main Content Area */
.main-wrapper {
  margin-left: var(--sidebar-width);
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 10;
}

/* Topbar Header */
.topbar {
  height: 74px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-card-glass);
  backdrop-filter: blur(16px);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 30;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.mobile-toggle-btn {
  display: none;
  background: transparent;
  font-size: 20px;
  color: var(--text-main);
  padding: 8px;
  border-radius: var(--radius-sm);
}

.page-title-box h1 {
  font-size: 22px;
  line-height: 1.2;
}

.page-title-box p {
  font-size: 12px;
  color: var(--text-muted);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.quick-pill-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--grad-emerald);
  color: white;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 4px 14px var(--emerald-glow);
}

.quick-pill-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px var(--emerald-glow);
}

.theme-toggle-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-main);
}

.theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Page Views Container */
.content-area {
  padding: 32px;
  flex: 1;
}

.tab-pane {
  display: none;
  animation: fadeIn 0.25s ease forwards;
}

.tab-pane.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Banner / Welcome Hero */
.welcome-hero {
  background: var(--grad-hero);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 28px 32px;
  margin-bottom: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.hero-text h2 {
  font-size: 26px;
  margin-bottom: 8px;
}

.hero-text p {
  color: var(--text-muted);
  font-size: 14px;
  max-width: 620px;
}

.hero-badges {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(8px);
}

.hero-badge.highlight {
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald-400);
  border-color: rgba(16, 185, 129, 0.3);
}

body.light-theme .hero-badge.highlight {
  color: var(--emerald-600);
}

/* Metric KPI Cards Grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px;
  backdrop-filter: blur(12px);
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.kpi-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow-md);
}

.kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-emerald);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.kpi-card:hover::before {
  opacity: 1;
}

.kpi-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.kpi-title {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.kpi-icon-box {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.icon-emerald { background: rgba(16, 185, 129, 0.15); color: var(--emerald-400); }
.icon-gold { background: rgba(245, 158, 11, 0.15); color: var(--gold-400); }
.icon-blue { background: rgba(59, 130, 246, 0.15); color: var(--blue-400); }
.icon-rose { background: rgba(244, 63, 94, 0.15); color: var(--rose-500); }

.kpi-value {
  font-size: 28px;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  margin-bottom: 6px;
  line-height: 1.1;
}

.kpi-trend {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text-muted);
}

.trend-up { color: var(--emerald-400); font-weight: 600; }
.trend-warning { color: var(--gold-400); font-weight: 600; }

/* Section Content Cards */
.section-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.col-8 { grid-column: span 8; }
.col-4 { grid-column: span 4; }
.col-6 { grid-column: span 6; }
.col-12 { grid-column: span 12; }

@media (max-width: 1024px) {
  .col-8, .col-4, .col-6 { grid-column: span 12; }
}

.card-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 24px;
  backdrop-filter: blur(14px);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.card-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.card-header-flex h3 {
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-header-flex .actions {
  display: flex;
  gap: 8px;
}

/* Button UI Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: var(--radius-sm);
}

.btn-primary {
  background: var(--grad-emerald);
  color: white;
  box-shadow: 0 3px 12px var(--emerald-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 16px var(--emerald-glow);
}

.btn-gold {
  background: var(--grad-gold);
  color: #1a1a1a;
  box-shadow: 0 3px 12px var(--gold-glow);
}
.btn-gold:hover {
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-main);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-outline-danger {
  background: rgba(244, 63, 94, 0.08);
  border: 1px solid rgba(244, 63, 94, 0.3);
  color: var(--rose-500);
}
.btn-outline-danger:hover {
  background: rgba(244, 63, 94, 0.2);
}

/* Filters & Search Toolbar */
.toolbar-bar {
  display: flex;
  gap: 14px;
  margin-bottom: 22px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.toolbar-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  min-width: 260px;
}

.search-box input {
  background: transparent;
  width: 100%;
  font-size: 13px;
  color: var(--text-main);
}

.search-box input::placeholder {
  color: var(--text-dim);
}

.filter-select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  font-size: 13px;
  color: var(--text-main);
  cursor: pointer;
}

.filter-select option {
  background: var(--bg-secondary);
  color: var(--text-main);
}

/* Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.modern-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.modern-table thead {
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-color);
}

.modern-table th {
  padding: 14px 18px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.06em;
}

.modern-table td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  vertical-align: middle;
}

.modern-table tbody tr {
  transition: background var(--transition-fast);
}

.modern-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

/* Status Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge-success {
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald-400);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.15);
  color: var(--gold-400);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-danger {
  background: rgba(244, 63, 94, 0.15);
  color: var(--rose-500);
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.badge-info {
  background: rgba(59, 130, 246, 0.15);
  color: var(--blue-400);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-purple {
  background: rgba(139, 92, 246, 0.15);
  color: var(--purple-500);
  border: 1px solid rgba(139, 92, 246, 0.3);
}

/* Bureau Executif Grid */
.bureau-org-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 20px;
}

.bureau-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-fast);
}

.bureau-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.bureau-card.leadership-pres {
  border-color: rgba(245, 158, 11, 0.3);
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.08) 0%, rgba(17, 24, 39, 0.8) 100%);
}

.bureau-card.leadership-tresor {
  border-color: rgba(16, 185, 129, 0.3);
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.08) 0%, rgba(17, 24, 39, 0.8) 100%);
}

.bureau-role-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold-400);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bureau-person {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.bureau-avatar {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  background: var(--grad-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.bureau-card.leadership-pres .bureau-avatar {
  background: var(--grad-gold);
}

.bureau-details h4 {
  font-size: 16px;
  margin-bottom: 2px;
}

.bureau-details p {
  font-size: 12px;
  color: var(--text-muted);
}

.bureau-meta {
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
}

/* Families & Members Cards */
.family-tree-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.family-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 22px;
  transition: all var(--transition-fast);
}

.family-card:hover {
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: var(--shadow-md);
}

.family-head-box {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 16px;
}

.family-badge-chip {
  background: rgba(59, 130, 246, 0.12);
  color: var(--blue-400);
  border: 1px solid rgba(59, 130, 246, 0.25);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.family-members-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.family-member-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.family-member-row:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   Vue Groupée par Chef de Famille
   ========================================================================== */

/* Segmented Control */
.segmented-control {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 3px;
  gap: 4px;
}

.segmented-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.segmented-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
}

.segmented-btn.active {
  background: var(--emerald-500);
  color: #ffffff;
  box-shadow: 0 2px 8px var(--emerald-glow);
}

/* Family Group Panel */
.family-group-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  margin-bottom: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.family-group-panel:hover {
  border-color: rgba(245, 158, 11, 0.35);
  box-shadow: var(--shadow-md);
}

.family-group-header {
  padding: 20px 24px;
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.06) 0%, rgba(255, 255, 255, 0.01) 100%);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.chef-identity-box {
  display: flex;
  align-items: center;
  gap: 16px;
}

.chef-avatar {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-full);
  background: var(--grad-gold);
  color: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  box-shadow: 0 0 16px var(--gold-glow);
  position: relative;
  flex-shrink: 0;
}

.chef-avatar::after {
  content: '👑';
  position: absolute;
  top: -6px;
  right: -6px;
  font-size: 14px;
}

.chef-info-texts h3 {
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.chef-badge {
  background: rgba(245, 158, 11, 0.15);
  color: var(--gold-400);
  border: 1px solid rgba(245, 158, 11, 0.3);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.chef-meta-sub {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.family-kpis-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.family-stat-tag {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: var(--radius-md);
  font-size: 12px;
  display: flex;
  flex-direction: column;
  text-align: right;
}

.family-stat-tag span {
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 600;
}

.family-stat-tag strong {
  font-size: 14px;
  color: var(--text-main);
}

.family-group-body {
  padding: 16px 24px;
}

/* Relation to Chef Badges */
.relation-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
}

.relation-chef {
  background: rgba(245, 158, 11, 0.15);
  color: var(--gold-400);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.relation-epouse {
  background: rgba(244, 63, 94, 0.15);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.relation-enfant {
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald-400);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.relation-frere {
  background: rgba(59, 130, 246, 0.15);
  color: var(--blue-400);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.relation-autre {
  background: rgba(139, 92, 246, 0.15);
  color: var(--purple-500);
  border: 1px solid rgba(139, 92, 246, 0.3);
}

/* ==========================================================================
   Versement Groupé Foyer / Chef de Famille dans la Modale
   ========================================================================== */
.family-group-payment-box {
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 18px;
  animation: fadeIn 0.2s ease forwards;
}

.family-group-payment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.family-members-checklist {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 190px;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px;
}

.family-member-check-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.family-member-check-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.family-member-check-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  cursor: pointer;
  flex: 1;
}

.family-member-check-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--emerald-500);
  cursor: pointer;
}

.member-check-amount {
  font-size: 12px;
  font-weight: 700;
  color: var(--emerald-400);
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: modalFadeIn 0.2s ease forwards;
}

.modal-overlay.active {
  display: flex;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  padding: 28px;
  position: relative;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
  font-size: 20px;
}

.modal-close-btn {
  background: transparent;
  color: var(--text-muted);
  font-size: 22px;
  line-height: 1;
}

.modal-close-btn:hover {
  color: var(--rose-500);
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text-main);
  transition: border-color var(--transition-fast);
}

.form-control:focus {
  border-color: var(--emerald-400);
  box-shadow: 0 0 10px var(--emerald-glow);
}

.form-control option {
  background: var(--bg-secondary);
  color: var(--text-main);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border-color);
}

/* Toast Notification */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 150;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--emerald-500);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  animation: slideToast 0.3s ease forwards;
}

@keyframes slideToast {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Reçu & Printable Document */
.receipt-paper {
  background: white;
  color: #111827;
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  max-width: 650px;
  margin: 0 auto;
}

.receipt-header {
  text-align: center;
  border-bottom: 2px dashed #e5e7eb;
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.receipt-header h2 {
  color: #047857;
  font-size: 24px;
}

.receipt-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  font-size: 13px;
  margin-bottom: 20px;
}

.receipt-amount-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 18px;
  text-align: center;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

.receipt-amount-box h3 {
  color: #065f46;
  font-size: 30px;
}

/* Statuts Page Typography */
.statuts-doc {
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.8;
  font-size: 15px;
}

.statuts-doc h2 {
  font-size: 22px;
  color: var(--emerald-400);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
  margin: 32px 0 16px 0;
}

body.light-theme .statuts-doc h2 {
  color: var(--emerald-600);
}

.statuts-doc h3 {
  font-size: 18px;
  margin: 20px 0 8px 0;
  color: var(--gold-400);
}

.statuts-doc p, .statuts-doc li {
  color: var(--text-muted);
  margin-bottom: 12px;
}

.statuts-doc ul {
  padding-left: 24px;
  margin-bottom: 16px;
}

/* Responsive adjustments */
@media (max-width: 860px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .main-wrapper {
    margin-left: 0;
  }
  .mobile-toggle-btn {
    display: block;
  }
  .content-area {
    padding: 20px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .topbar {
    padding: 0 16px;
  }
}

/* Authentification & Contrôle d'Accès (RBAC) */
.auth-topbar-widget {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.auth-topbar-widget:hover {
  border-color: var(--emerald-400);
  background: rgba(16, 185, 129, 0.08);
}

body.light-theme .auth-topbar-widget {
  background: white;
  border-color: #e2e8f0;
}

body.light-theme .auth-topbar-widget:hover {
  background: #f0fdf4;
  border-color: #86efac;
}

.auth-role-card {
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.auth-role-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.auth-role-card.active-role {
  outline: 2px solid var(--emerald-500);
}

.action-locked-btn {
  opacity: 0.55 !important;
  cursor: not-allowed !important;
  position: relative;
}

.action-locked-btn::after {
  content: ' 🔒';
  font-size: 11px;
}

/* Modal large pour la Plage de Versement */
.modal-content.modal-content-wide {
  max-width: 860px;
  transition: max-width 0.25s ease;
}

/* Panneau & Plage de Versement Familial dans le Modal */
.family-group-payment-box,
.family-plage-box {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-xl);
  padding: 18px 20px;
  margin-bottom: 20px;
  animation: modalFadeIn 0.25s ease-out;
}

body.light-theme .family-group-payment-box,
body.light-theme .family-plage-box {
  background: #f0fdf4;
  border-color: #86efac;
}

.family-plage-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background: rgba(0, 0, 0, 0.22);
  padding: 10px 14px;
  border-radius: var(--radius-lg);
  margin-bottom: 12px;
  border: 1px solid var(--border-color);
}

body.light-theme .family-plage-toolbar {
  background: #e2e8f0;
}

.plage-duration-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.plage-pill-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

body.light-theme .plage-pill-btn {
  background: white;
}

.plage-pill-btn:hover {
  border-color: var(--emerald-400);
  color: var(--text-main);
}

.plage-pill-btn.active {
  background: var(--emerald-500);
  border-color: var(--emerald-500);
  color: white;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

.plage-table-wrapper {
  max-height: 290px;
  overflow-y: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  margin-bottom: 14px;
  background: rgba(0, 0, 0, 0.15);
}

body.light-theme .plage-table-wrapper {
  background: white;
}

.family-plage-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.family-plage-table th {
  background: rgba(255, 255, 255, 0.05);
  padding: 9px 12px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  position: sticky;
  top: 0;
  z-index: 2;
  border-bottom: 1px solid var(--border-color);
}

body.light-theme .family-plage-table th {
  background: #f1f5f9;
}

.family-plage-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
}

body.light-theme .family-plage-table td {
  border-bottom-color: #f1f5f9;
}

.family-plage-table tr.row-checked {
  background: rgba(16, 185, 129, 0.09);
}

body.light-theme .family-plage-table tr.row-checked {
  background: #f0fdf4;
}

.plage-months-select {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 600;
}

body.light-theme .plage-months-select {
  background: white;
}

.family-group-payment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(16, 185, 129, 0.2);
}

.family-group-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--emerald-400);
}

body.light-theme .family-group-title {
  color: var(--emerald-700);
}

.group-mode-toggle {
  display: flex;
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-full);
  padding: 3px;
  gap: 4px;
}

body.light-theme .group-mode-toggle {
  background: #e2e8f0;
}

.group-mode-btn {
  background: transparent;
  border: none;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.group-mode-btn.active {
  background: var(--emerald-500);
  color: white;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

.family-members-checklist {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 4px;
  margin: 12px 0;
}

.family-member-check-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  cursor: pointer;
}

body.light-theme .family-member-check-item {
  background: white;
}

.family-member-check-item:hover {
  border-color: var(--emerald-400);
  background: rgba(16, 185, 129, 0.08);
}

.family-member-check-item.checked {
  border-color: var(--emerald-500);
  background: rgba(16, 185, 129, 0.12);
}

body.light-theme .family-member-check-item.checked {
  background: #ecfdf5;
  border-color: #10b981;
}

.family-member-check-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  cursor: pointer;
  flex: 1;
}

.family-member-check-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--emerald-500);
  cursor: pointer;
}

.member-check-name {
  font-weight: 600;
  color: var(--text-main);
}

body.light-theme .member-check-name {
  color: #1e293b;
}

.member-check-badge {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

body.light-theme .member-check-badge {
  background: #f1f5f9;
  color: #64748b;
}

.member-check-amount {
  font-size: 13px;
  font-weight: 700;
  color: var(--emerald-400);
  white-space: nowrap;
}

body.light-theme .member-check-amount {
  color: var(--emerald-600);
}

.family-group-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 13px;
  border: 1px dashed rgba(16, 185, 129, 0.35);
}

body.light-theme .family-group-summary {
  background: #f0fdf4;
  border-color: #86efac;
}

.family-group-summary .total-val {
  font-size: 15px;
  font-weight: 800;
  color: var(--emerald-400);
}

body.light-theme .family-group-summary .total-val {
  color: var(--emerald-700);
}

/* ==========================================================================
   Full-Screen Authentication Screen (Login & Password)
   ========================================================================== */
/* ==========================================================================
   Full-Screen Authentication Screen (Split Design inspired by Model)
   ========================================================================== */
.auth-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(10, 15, 29, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

body.light-theme .auth-fullscreen {
  background: rgba(240, 243, 246, 0.88);
}

.auth-fullscreen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Split Card Layout */
.auth-split-card {
  display: flex;
  width: 100%;
  max-width: 1020px;
  min-height: 580px;
  background: #ffffff;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 40px rgba(16, 185, 129, 0.15);
  animation: authCardEnter 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

:not(.light-theme) .auth-split-card {
  background: #111827;
  border-color: rgba(255, 255, 255, 0.08);
}

@keyframes authCardEnter {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Left Hero Column */
.auth-split-left {
  flex: 0 0 42%;
  background: linear-gradient(150deg, #10b981 0%, #059669 60%, #047857 100%);
  padding: 44px 38px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.auth-split-left::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.auth-split-left::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -60px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.auth-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  width: fit-content;
  margin-bottom: 36px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  position: relative;
  z-index: 2;
}

.auth-hero-title {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 2;
}

.auth-hero-desc {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
  max-width: 340px;
  position: relative;
  z-index: 2;
}

/* Right Form Column */
.auth-split-right {
  flex: 1;
  padding: 40px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-top-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(16, 185, 129, 0.12);
  border: 1.5px solid rgba(16, 185, 129, 0.3);
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  color: #059669;
  width: fit-content;
  margin-bottom: 18px;
}

:not(.light-theme) .auth-top-badge {
  color: var(--emerald-400);
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.35);
}

.auth-form-title {
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

:not(.light-theme) .auth-form-title {
  color: #f8fafc;
}

.auth-form-subtitle {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 18px;
}

:not(.light-theme) .auth-form-subtitle {
  color: #94a3b8;
}

/* Role Selector Grid */
.auth-roles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.auth-role-item {
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 16px;
  padding: 12px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

:not(.light-theme) .auth-role-item {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.auth-role-item:hover {
  transform: translateY(-2px);
  border-color: #10b981;
}

.auth-role-item.active {
  border: 2px solid #10b981;
  background: rgba(16, 185, 129, 0.08);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.18);
}

.auth-role-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 8px;
}

.icon-box-admin {
  background: rgba(244, 63, 94, 0.12);
}
.icon-box-speaker {
  background: rgba(6, 182, 212, 0.12);
}
.icon-box-pres {
  background: rgba(59, 130, 246, 0.12);
}
.icon-box-member {
  background: rgba(245, 158, 11, 0.12);
}

.auth-role-label {
  font-size: 11px;
  font-weight: 700;
  color: #334155;
}

:not(.light-theme) .auth-role-label {
  color: #e2e8f0;
}

.auth-section-title {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 2px;
  letter-spacing: -0.01em;
}

:not(.light-theme) .auth-section-title {
  color: #f8fafc;
}

.auth-section-desc {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 16px;
}

:not(.light-theme) .auth-section-desc {
  color: #94a3b8;
}

.auth-field-label {
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 6px;
  display: block;
}

:not(.light-theme) .auth-field-label {
  color: #94a3b8;
}

.auth-custom-input-box {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}

.auth-custom-input {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  background: #f0fdf4;
  border: 1.5px solid #bbf7d0;
  padding: 0 16px;
  font-size: 14px;
  color: #0f172a;
  outline: none;
  transition: all 0.2s ease;
}

:not(.light-theme) .auth-custom-input {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  color: #f8fafc;
}

.auth-custom-input:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.auth-toggle-pwd-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  opacity: 0.7;
  padding: 4px;
  transition: opacity 0.2s;
  color: #64748b;
}

.auth-toggle-pwd-btn:hover {
  opacity: 1;
}

.auth-submit-green {
  width: 100%;
  height: 48px;
  background: #10b981;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 14px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.auth-submit-green:hover {
  background: #059669;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}

.auth-error-alert {
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid var(--rose-500);
  color: var(--rose-400);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: authShake 0.3s ease;
}

@keyframes authShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

@media (max-width: 860px) {
  .auth-split-card {
    flex-direction: column;
    max-width: 480px;
  }
  .auth-split-left {
    padding: 32px 24px;
  }
  .auth-split-right {
    padding: 32px 24px;
  }
  .auth-roles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* Logout Button */
.logout-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(244, 63, 94, 0.08);
  border: 1px solid rgba(244, 63, 94, 0.25);
  color: var(--rose-400);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.logout-btn:hover {
  background: rgba(244, 63, 94, 0.2);
  border-color: var(--rose-500);
  transform: translateY(-1px);
}

/* Print Style */
@media print {
  .sidebar, .topbar, .btn, .toolbar-bar, .modal-close-btn, .theme-toggle-btn, .auth-fullscreen {
    display: none !important;
  }
  .main-wrapper {
    margin: 0 !important;
    padding: 0 !important;
  }
  .content-area {
    padding: 0 !important;
  }
  body {
    background: white !important;
    color: black !important;
  }
}

