/* ===== BlackCustomer – Global Styles ===== */

:root {
  --bc-dark:        #0a1628;
  --bc-navy:        #0d2144;
  --bc-primary:     #1a56db;
  --bc-blue:        #2563eb;
  --bc-light:       #3b82f6;
  --bc-lighter:     #60a5fa;
  --bc-accent:      #93c5fd;
  --bc-white:       #ffffff;
  --bc-gray-100:    #f1f5f9;
  --bc-gray-200:    #e2e8f0;
  --bc-gray-400:    #94a3b8;
  --bc-gray-600:    #475569;
  --bc-gray-800:    #1e293b;
  --bc-success:     #10b981;
  --bc-warning:     #f59e0b;
  --bc-danger:      #ef4444;
  --bc-sidebar-w:   260px;
  --bc-grad: linear-gradient(135deg, #0a1628 0%, #0d2144 35%, #1a56db 70%, #3b82f6 100%);
  --bc-grad-soft: linear-gradient(135deg, #1e3a5f 0%, #1a56db 100%);
}

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

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 14px;
  background: var(--bc-gray-100);
  color: var(--bc-gray-800);
  line-height: 1.5;
}

/* ===== LOGIN PAGE ===== */
.login-page {
  min-height: 100vh;
  background: var(--bc-grad);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.login-page::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(59,130,246,0.15) 0%, transparent 60%);
  animation: pulse-bg 8s ease-in-out infinite;
}

@keyframes pulse-bg {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.7; }
}

.login-card {
  background: rgba(255,255,255,0.97);
  border-radius: 20px;
  padding: 48px 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.1);
  position: relative;
  z-index: 1;
}

.login-logo {
  text-align: center;
  margin-bottom: 32px;
}

.login-logo .logo-icon {
  width: 64px;
  height: 64px;
  background: var(--bc-grad-soft);
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  box-shadow: 0 8px 24px rgba(26,86,219,0.4);
}

.login-logo .logo-icon svg {
  width: 36px;
  height: 36px;
  fill: white;
}

.login-logo h1 {
  font-size: 26px;
  font-weight: 800;
  background: var(--bc-grad-soft);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.login-logo p {
  color: var(--bc-gray-400);
  font-size: 13px;
  margin-top: 4px;
}

/* Form elements */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-weight: 600;
  color: var(--bc-gray-600);
  margin-bottom: 6px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.input-wrapper {
  position: relative;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--bc-gray-200);
  border-radius: 10px;
  font-size: 14px;
  transition: all 0.2s;
  outline: none;
  background: var(--bc-gray-100);
  color: var(--bc-gray-800);
}

.form-control:focus {
  border-color: var(--bc-primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(26,86,219,0.1);
}

.input-wrapper .form-control {
  padding-right: 44px;
}

.btn-eye {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--bc-gray-400);
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.btn-eye:hover { color: var(--bc-primary); }
.btn-eye svg { width: 20px; height: 20px; }

.remember-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.remember-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--bc-primary);
  cursor: pointer;
}

.remember-row label {
  font-size: 13px;
  color: var(--bc-gray-600);
  cursor: pointer;
}

.btn-primary {
  width: 100%;
  padding: 13px;
  background: var(--bc-grad-soft);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 15px rgba(26,86,219,0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(26,86,219,0.5);
}

.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

.divider {
  text-align: center;
  margin: 20px 0;
  position: relative;
}

.divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--bc-gray-200);
}

.divider span {
  background: white;
  padding: 0 12px;
  color: var(--bc-gray-400);
  font-size: 12px;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-github {
  width: 100%;
  padding: 12px;
  background: #24292f;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-github:hover { background: #444; transform: translateY(-1px); }
.btn-github:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-github svg { width: 20px; height: 20px; fill: white; }

.alert-box {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 16px;
  display: none;
}

.alert-error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.alert-warning {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}

/* ===== MAIN LAYOUT ===== */
.app-layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: var(--bc-sidebar-w);
  background: var(--bc-grad);
  color: white;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 100;
  box-shadow: 4px 0 20px rgba(0,0,0,0.3);
}

.sidebar-brand {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-brand .brand-icon {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.sidebar-brand .brand-icon svg { width: 22px; height: 22px; fill: white; }

.sidebar-brand h2 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.sidebar-brand p {
  font-size: 11px;
  opacity: 0.6;
  margin-top: 2px;
}

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  overflow-y: auto;
}

.nav-section-title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  opacity: 0.5;
  padding: 8px 12px 4px;
  margin-top: 8px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  margin-bottom: 2px;
}

.nav-link:hover {
  background: rgba(255,255,255,0.1);
  color: white;
}

.nav-link.active {
  background: rgba(255,255,255,0.18);
  color: white;
  font-weight: 600;
}

.nav-link svg { width: 18px; height: 18px; flex-shrink: 0; }

.sidebar-footer {
  padding: 16px 12px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
}

.user-avatar {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.user-details { overflow: hidden; }

.user-name {
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-role {
  font-size: 11px;
  opacity: 0.6;
}

/* Main content */
.main-content {
  margin-left: var(--bc-sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-header {
  background: white;
  padding: 16px 28px;
  border-bottom: 1px solid var(--bc-gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.page-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--bc-gray-800);
}

.header-actions { display: flex; gap: 10px; align-items: center; }

/* Stats bar */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  padding: 20px 28px;
}

.stat-card {
  background: white;
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border: 1px solid var(--bc-gray-200);
  transition: all 0.2s;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon svg { width: 22px; height: 22px; }

.stat-icon.blue { background: rgba(26,86,219,0.1); color: var(--bc-primary); }
.stat-icon.green { background: rgba(16,185,129,0.1); color: var(--bc-success); }
.stat-icon.yellow { background: rgba(245,158,11,0.1); color: var(--bc-warning); }
.stat-icon.red { background: rgba(239,68,68,0.1); color: var(--bc-danger); }
.stat-icon.purple { background: rgba(139,92,246,0.1); color: #8b5cf6; }
.stat-icon.gray { background: rgba(148,163,184,0.1); color: var(--bc-gray-400); }
.stat-icon.teal { background: rgba(20,184,166,0.1); color: #14b8a6; }

.stat-info { min-width: 0; }

.stat-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--bc-gray-800);
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  color: var(--bc-gray-400);
  margin-top: 3px;
  font-weight: 500;
}

/* Content area */
.content-area {
  padding: 0 28px 28px;
  flex: 1;
}

/* Table */
.table-wrapper {
  background: white;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border: 1px solid var(--bc-gray-200);
  overflow: hidden;
}

.table-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--bc-gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.table-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--bc-gray-800);
}

.table-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-select, .filter-input {
  padding: 8px 12px;
  border: 1px solid var(--bc-gray-200);
  border-radius: 8px;
  font-size: 13px;
  color: var(--bc-gray-800);
  background: var(--bc-gray-100);
  outline: none;
  transition: border-color 0.2s;
}

.filter-select:focus, .filter-input:focus {
  border-color: var(--bc-primary);
}

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

.data-table thead th {
  background: var(--bc-gray-100);
  padding: 12px 14px;
  text-align: left;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--bc-gray-600);
  border-bottom: 1px solid var(--bc-gray-200);
  white-space: nowrap;
}

.data-table tbody td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--bc-gray-200);
  vertical-align: middle;
}

.data-table tbody tr:last-child td { border-bottom: none; }

.data-table tbody tr:hover td { background: rgba(26,86,219,0.03); }

/* Row status colors */
.row-en-cours td { background: rgba(16,185,129,0.06); }
.row-a-venir td { background: rgba(59,130,246,0.06); }
.row-a-effacer td {
  background: rgba(148,163,184,0.12);
  color: var(--bc-gray-400);
}
.row-a-effacer td * { color: var(--bc-gray-400) !important; }
.row-disable td { background: rgba(245,158,11,0.06); }
.row-delete td {
  background: rgba(239,68,68,0.05);
  opacity: 0.7;
}

/* Status badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.badge-en-cours    { background: rgba(16,185,129,0.15); color: #047857; border: 1px solid rgba(16,185,129,0.3); }
.badge-a-venir     { background: rgba(59,130,246,0.15); color: #1d4ed8; border: 1px solid rgba(59,130,246,0.3); }
.badge-a-effacer   { background: rgba(148,163,184,0.2); color: #64748b; border: 1px solid rgba(148,163,184,0.4); }
.badge-enable      { background: rgba(16,185,129,0.15); color: #047857; border: 1px solid rgba(16,185,129,0.3); }
.badge-disable     { background: rgba(245,158,11,0.15); color: #92400e; border: 1px solid rgba(245,158,11,0.3); }
.badge-delete      { background: rgba(239,68,68,0.15); color: #b91c1c; border: 1px solid rgba(239,68,68,0.3); }

/* Lieu badge */
.lieu-badge {
  font-size: 11px;
  color: var(--bc-gray-600);
  background: var(--bc-gray-100);
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.lieu-maison { background: rgba(139,92,246,0.1); color: #7c3aed; }
.lieu-chalet { background: rgba(20,184,166,0.1); color: #0f766e; }

/* Action buttons */
.btn-action {
  background: none;
  border: none;
  padding: 6px 8px;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.15s;
  color: var(--bc-gray-400);
  display: inline-flex;
  align-items: center;
}

.btn-action:hover { background: var(--bc-gray-100); color: var(--bc-gray-800); }
.btn-action.edit:hover { background: rgba(26,86,219,0.1); color: var(--bc-primary); }
.btn-action.delete:hover { background: rgba(239,68,68,0.1); color: var(--bc-danger); }
.btn-action svg { width: 16px; height: 16px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
}

.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.btn-sm { padding: 6px 12px; font-size: 12px; }

.btn-blue {
  background: var(--bc-primary);
  color: white;
  box-shadow: 0 2px 8px rgba(26,86,219,0.3);
}
.btn-blue:hover {
  background: var(--bc-blue);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26,86,219,0.4);
}

.btn-success {
  background: var(--bc-success);
  color: white;
  box-shadow: 0 2px 8px rgba(16,185,129,0.3);
}
.btn-success:hover { background: #059669; transform: translateY(-1px); }

.btn-danger {
  background: var(--bc-danger);
  color: white;
  box-shadow: 0 2px 8px rgba(239,68,68,0.3);
}
.btn-danger:hover { background: #dc2626; transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--bc-gray-600);
  border: 1px solid var(--bc-gray-200);
}
.btn-outline:hover { background: var(--bc-gray-100); }

.btn-warning {
  background: var(--bc-warning);
  color: white;
  box-shadow: 0 2px 8px rgba(245,158,11,0.3);
}
.btn-warning:hover { background: #d97706; }

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
  padding: 20px;
}

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

.modal-box {
  background: white;
  border-radius: 16px;
  width: 100%;
  max-width: 600px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.3);
  animation: modal-in 0.2s ease;
  max-height: 90vh;
  overflow-y: auto;
}

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

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--bc-gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--bc-gray-800);
}

.modal-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--bc-gray-400);
  padding: 4px;
  border-radius: 6px;
  transition: all 0.15s;
  display: flex;
}
.modal-close:hover { background: var(--bc-gray-100); color: var(--bc-gray-800); }
.modal-close svg { width: 20px; height: 20px; }

.modal-body { padding: 24px; }

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--bc-gray-200);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* Form groups in modal */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--bc-gray-600);
  margin-bottom: 5px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 13px;
  border: 1.5px solid var(--bc-gray-200);
  border-radius: 8px;
  font-size: 13px;
  transition: all 0.2s;
  outline: none;
  background: var(--bc-gray-100);
  color: var(--bc-gray-800);
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--bc-primary);
  background: white;
  box-shadow: 0 0 0 3px rgba(26,86,219,0.08);
}

/* Radio buttons for lieu */
.radio-group {
  display: flex;
  gap: 12px;
}

.radio-option {
  flex: 1;
  position: relative;
}

.radio-option input[type="radio"] { position: absolute; opacity: 0; }

.radio-option label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  border: 2px solid var(--bc-gray-200);
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  text-transform: none !important;
  letter-spacing: 0 !important;
  color: var(--bc-gray-600);
  background: var(--bc-gray-100);
}

.radio-option input[type="radio"]:checked + label {
  border-color: var(--bc-primary);
  background: rgba(26,86,219,0.08);
  color: var(--bc-primary);
}

/* Attribut select colors */
select option[value="ENABLE"] { color: #047857; }
select option[value="DISABLE"] { color: #92400e; }
select option[value="DELETE"] { color: #b91c1c; }

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

.toast {
  background: white;
  border-radius: 12px;
  padding: 14px 18px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-left: 4px solid;
  animation: toast-in 0.3s ease;
  font-size: 13px;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

.toast-success { border-color: var(--bc-success); }
.toast-error   { border-color: var(--bc-danger); }
.toast-warning { border-color: var(--bc-warning); }
.toast-info    { border-color: var(--bc-primary); }

.toast-icon { flex-shrink: 0; }
.toast-icon svg { width: 18px; height: 18px; }
.toast-success .toast-icon { color: var(--bc-success); }
.toast-error   .toast-icon { color: var(--bc-danger); }
.toast-warning .toast-icon { color: var(--bc-warning); }
.toast-info    .toast-icon { color: var(--bc-primary); }

.toast-message { flex: 1; line-height: 1.4; }
.toast-title { font-weight: 700; color: var(--bc-gray-800); }
.toast-text  { color: var(--bc-gray-600); font-size: 12px; margin-top: 2px; }

/* Confirm modal */
.confirm-modal .modal-box { max-width: 420px; }
.confirm-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.confirm-icon svg { width: 28px; height: 28px; }
.confirm-icon.danger { background: rgba(239,68,68,0.1); color: var(--bc-danger); }
.confirm-icon.warning { background: rgba(245,158,11,0.1); color: var(--bc-warning); }

/* Settings page */
.settings-section {
  background: white;
  border-radius: 14px;
  border: 1px solid var(--bc-gray-200);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  margin-bottom: 20px;
  overflow: hidden;
}

.settings-section-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--bc-gray-200);
  display: flex;
  align-items: center;
  gap: 10px;
}

.settings-section-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26,86,219,0.1);
  color: var(--bc-primary);
  flex-shrink: 0;
}
.settings-section-icon svg { width: 18px; height: 18px; }

.settings-section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--bc-gray-800);
}

.settings-section-body {
  padding: 20px 24px;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.settings-sticky-bar {
  position: sticky;
  bottom: 0;
  background: white;
  border-top: 1px solid var(--bc-gray-200);
  padding: 14px 28px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.06);
  z-index: 10;
}

.toggle-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.toggle-switch input { position: absolute; opacity: 0; width: 0; height: 0; }

.toggle-track {
  width: 44px;
  height: 24px;
  background: var(--bc-gray-200);
  border-radius: 12px;
  transition: background 0.2s;
  position: relative;
  flex-shrink: 0;
}

.toggle-track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.toggle-switch input:checked + .toggle-track {
  background: var(--bc-primary);
}
.toggle-switch input:checked + .toggle-track::after {
  transform: translateX(20px);
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--bc-gray-400);
}
.empty-state svg { width: 56px; height: 56px; margin-bottom: 16px; opacity: 0.4; }
.empty-state h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.empty-state p { font-size: 13px; }

/* Loading spinner */
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Users3 section */
.users-table-wrapper {
  background: white;
  border-radius: 14px;
  border: 1px solid var(--bc-gray-200);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Responsive */
@media (max-width: 768px) {
  :root { --bc-sidebar-w: 0px; }
  .sidebar { transform: translateX(-260px); width: 260px; transition: transform 0.3s; }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .form-row { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
}
