/* ============================================
   ComplianceGuard - Design System
   Style sobre/corporate avec touches modernes
   ============================================ */

/* === VARIABLES CSS === */
:root {
  /* Couleurs primaires */
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --primary-light: #dbeafe;
  --primary-hover: #1d4ed8;
  
  /* Couleurs secondaires */
  --secondary: #7c3aed;
  --secondary-dark: #6d28d9;
  --secondary-light: #ede9fe;
  
  /* Couleurs sémantiques */
  --success: #059669;
  --success-light: #d1fae5;
  --success-dark: #047857;
  --warning: #d97706;
  --warning-light: #fef3c7;
  --warning-dark: #b45309;
  --danger: #dc2626;
  --danger-light: #fee2e2;
  --danger-dark: #b91c1c;
  --info: #0891b2;
  --info-light: #cffafe;
  --info-dark: #0e7490;
  
  /* Couleurs neutres */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  
  /* Ombres */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  
  /* Bordures */
  --border-radius: 0.375rem;
  --border-radius-lg: 0.5rem;
  --border-radius-xl: 0.75rem;
  --border-radius-full: 9999px;
  
  /* Espacements */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.2s ease;
  --transition-slow: 0.3s ease;
}

/* === BASE === */
body {
  background-color: var(--gray-50);
  color: var(--gray-900);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
}

/* Transitions globales - désactivées pour éviter les conflits */
/* Les transitions sont définies individuellement sur chaque composant */

/* Focus visible pour accessibilité */
*:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: var(--border-radius);
}

/* === TITRES AVEC ICÔNES === */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  color: var(--gray-900);
}

.page-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.page-title-icon {
  font-size: 1.5em;
  color: var(--primary);
}

/* === NAVBAR === */
.navbar {
  background: white !important;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--gray-200);
}

.navbar-brand {
  font-weight: 600;
  color: var(--gray-900) !important;
  transition: color var(--transition-base);
}

.navbar-brand:hover {
  color: var(--primary) !important;
}

.nav-link {
  color: var(--gray-700) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  border-radius: var(--border-radius);
  transition: all var(--transition-base);
}

.nav-link:hover {
  color: var(--primary) !important;
  background: var(--gray-50);
}

.nav-link.active {
  color: var(--primary) !important;
  background: var(--primary-light);
}

/* === CARDS === */
.card {
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  background: white;
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-hover {
  cursor: pointer !important;
  transition: all 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease !important;
  will-change: transform, box-shadow;
}

.card-hover:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1) !important;
  border-color: #2563eb !important;
}

.card.card-hover:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1) !important;
  border-color: #2563eb !important;
}

.card-header {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  font-weight: 600;
  color: var(--gray-900);
}

/* === BOUTONS === */
.btn {
  border-radius: var(--border-radius);
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: all 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease !important;
  border: none;
}

.btn:hover {
  transform: translateY(-1px) !important;
  box-shadow: var(--shadow-md) !important;
}

.btn:active {
  transform: translateY(0) !important;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-hover);
  color: white;
}

.btn-secondary {
  background: var(--gray-600);
  color: white;
}

.btn-secondary:hover {
  background: var(--gray-700);
  color: white;
}

/* Boutons d'action dans les listes */
.action-buttons {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.btn-action {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  border-radius: var(--border-radius);
  transition: all var(--transition-base);
  white-space: nowrap;
  border: none;
  font-weight: 500;
}

.btn-action:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-action-edit {
  background: var(--primary);
  color: white;
}

.btn-action-edit:hover {
  background: var(--primary-dark);
  color: white;
}

.btn-action-delete {
  background: var(--danger);
  color: white;
}

.btn-action-delete:hover {
  background: var(--danger-dark);
  color: white;
}

.btn-action-view {
  background: var(--info);
  color: white;
}

.btn-action-view:hover {
  background: var(--info-dark);
  color: white;
}

.btn-action-validate {
  background: var(--success);
  color: white;
}

.btn-action-validate:hover {
  background: var(--success-dark);
  color: white;
}

.btn-action-secondary {
  background: var(--gray-200);
  color: var(--gray-700);
}

.btn-action-secondary:hover {
  background: var(--gray-300);
  color: var(--gray-900);
}

.btn-outline-primary {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-outline-primary:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Loading state */
.btn-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.7;
}

.btn-loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* === TABLES === */
.table-modern {
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: white;
}

.table-modern thead {
  background: var(--gray-50);
  border-bottom: 2px solid var(--gray-200);
}

.table-modern thead th {
  font-weight: 600;
  color: var(--gray-700);
  padding: 1rem;
  border: none;
}

.table-modern tbody tr {
  transition: background-color 0.15s ease !important;
  border-bottom: 1px solid var(--gray-200);
  background-color: white;
}

.table-modern tbody tr:hover {
  background: #f9fafb !important;
  background-color: #f9fafb !important;
}

.table-modern tbody tr:hover td {
  background-color: #f9fafb !important;
}

.table-modern tbody td {
  padding: 1rem;
  vertical-align: middle;
  border: none;
}

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

/* === BADGES === */
.badge {
  padding: 0.25rem 0.75rem;
  border-radius: var(--border-radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.025em;
}

.badge-status {
  padding: 0.25rem 0.75rem;
  border-radius: var(--border-radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-status-draft {
  background: var(--gray-200);
  color: var(--gray-700);
}

.badge-status-pending {
  background: var(--warning-light);
  color: var(--warning-dark);
}

.badge-status-validated {
  background: var(--success-light);
  color: var(--success-dark);
}

.badge-status-invalidated {
  background: var(--danger-light);
  color: var(--danger-dark);
}

.badge-status-active {
  background: var(--success-light);
  color: var(--success-dark);
}

.badge-status-inactive {
  background: var(--gray-200);
  color: var(--gray-600);
}

/* === ALERTES === */
.alert {
  border-radius: var(--border-radius-lg);
  border: none;
  border-left: 4px solid;
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
}

.alert-modern {
  display: flex;
  align-items: start;
  gap: 1rem;
  border-left: 4px solid;
  border-radius: var(--border-radius-lg);
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
}

.alert-modern-info {
  background: var(--info-light);
  border-color: var(--info);
  color: var(--info-dark);
}

.alert-modern-success {
  background: var(--success-light);
  border-color: var(--success);
  color: var(--success-dark);
}

.alert-modern-warning {
  background: var(--warning-light);
  border-color: var(--warning);
  color: var(--warning-dark);
}

.alert-modern-danger {
  background: var(--danger-light);
  border-color: var(--danger);
  color: var(--danger-dark);
}

/* === FORMULAIRES === */
.form-control,
.form-select {
  border: 1px solid var(--gray-300);
  border-radius: var(--border-radius);
  padding: 0.5rem 0.75rem;
  transition: all var(--transition-base);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
  outline: none;
}

.form-label {
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
}

.form-text {
  color: var(--gray-500);
  font-size: 0.875rem;
}

/* === BANNIÈRE DE CONSENTEMENT === */
.consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid var(--gray-200);
  box-shadow: var(--shadow-xl);
  padding: 1.5rem;
  z-index: 1050;
  animation: slideUp 0.3s ease;
}

.consent-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.consent-banner-text {
  flex: 1;
  min-width: 300px;
}

.consent-banner-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

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

/* === PAGE HEADER === */
.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  padding: 2rem 0;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-md);
}

.page-header h1,
.page-header h2,
.page-header h3 {
  color: white;
  margin-bottom: 0.5rem;
}

.page-header p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0;
}

/* === PAGINATION === */
.pagination {
  gap: 0.25rem;
}

.page-link {
  border-radius: var(--border-radius);
  border: 1px solid var(--gray-300);
  color: var(--gray-700);
  padding: 0.5rem 0.75rem;
  transition: all var(--transition-base);
}

.page-link:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

.page-item.active .page-link {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* === BREADCRUMB === */
.breadcrumb {
  background: transparent;
  padding: 0;
  margin-bottom: 1rem;
}

.breadcrumb-item a {
  color: var(--gray-600);
  text-decoration: none;
  transition: color var(--transition-base);
}

.breadcrumb-item a:hover {
  color: var(--primary);
}

.breadcrumb-item.active {
  color: var(--gray-900);
  font-weight: 500;
}

/* === DROPDOWNS === */
.dropdown-menu {
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
}

.dropdown-item {
  border-radius: var(--border-radius);
  padding: 0.5rem 1rem;
  transition: all var(--transition-fast);
}

.dropdown-item:hover {
  background: var(--gray-100);
  color: var(--gray-900);
}

/* === MODALS === */
.modal-content {
  border: none;
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-xl);
}

.modal-header {
  border-bottom: 1px solid var(--gray-200);
  padding: 1.5rem;
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  border-top: 1px solid var(--gray-200);
  padding: 1.5rem;
}

/* === PROGRESS BARS === */
.progress {
  height: 0.75rem;
  border-radius: var(--border-radius-full);
  background: var(--gray-200);
}

.progress-bar {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: var(--border-radius-full);
}

/* === TOOLTIPS === */
.tooltip-inner {
  background: var(--gray-900);
  border-radius: var(--border-radius);
  padding: 0.5rem 0.75rem;
}

/* === SPINNER === */
.spinner-border {
  border-color: var(--primary);
  border-right-color: transparent;
}

/* === UTILITAIRES === */
.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-warning { color: var(--warning) !important; }
.text-info { color: var(--info) !important; }

.bg-primary-light { background: var(--primary-light) !important; }
.bg-success-light { background: var(--success-light) !important; }
.bg-danger-light { background: var(--danger-light) !important; }
.bg-warning-light { background: var(--warning-light) !important; }
.bg-info-light { background: var(--info-light) !important; }

.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.shadow-md { box-shadow: var(--shadow-md) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .action-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  
  .btn-action {
    width: 100%;
    justify-content: center;
  }
  
  .consent-banner-content {
    flex-direction: column;
  }
  
  .consent-banner-actions {
    width: 100%;
    flex-direction: column;
  }
  
  .consent-banner-actions .btn {
    width: 100%;
  }
}

/* ============================================
   SIDEBAR MODERNE
   ============================================ */

/* Layout principal */
.app-wrapper {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 260px;
  background: linear-gradient(180deg, #2d3748 0%, #1a202c 100%);
  color: white;
  transition: all 0.3s ease;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar.collapsed {
  width: 70px;
}

.sidebar.collapsed .sidebar-brand,
.sidebar.collapsed .sidebar-section,
.sidebar.collapsed .sidebar-link span {
  opacity: 0;
  visibility: hidden;
}

.sidebar.collapsed .sidebar-link span {
  display: none;
}

.sidebar.collapsed .sidebar-link {
  justify-content: center;
  padding: 0.75rem;
  gap: 0;
}

/* Header */
.sidebar-header {
  padding: 1.5rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sidebar-toggle {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
  transition: transform 0.3s;
}

.sidebar-toggle:hover {
  transform: scale(1.1);
}

.sidebar-brand {
  font-size: 1.25rem;
  font-weight: 600;
  white-space: nowrap;
  transition: opacity 0.3s, visibility 0.3s;
}

/* Navigation */
.sidebar-nav {
  flex: 1;
  padding: 1rem 0;
}

.sidebar-section {
  padding: 1rem 1.5rem 0.5rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
  transition: opacity 0.3s, visibility 0.3s;
}

.sidebar-item {
  margin: 0.25rem 0.5rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  border-radius: 0.5rem;
  transition: all 0.2s;
  font-size: 0.95rem;
}

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

.sidebar-link.active {
  background: rgba(37, 99, 235, 0.2);
  color: white;
  font-weight: 500;
}

.sidebar-link i {
  font-size: 1.25rem;
  min-width: 1.25rem;
  text-align: center;
}

.sidebar-link span {
  white-space: nowrap;
  transition: opacity 0.3s, visibility 0.3s;
}


.sidebar-user-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-lg);
  margin: 0.75rem 0.75rem 1rem;
  padding: 0.85rem 1rem;
  color: white;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.sidebar-user-org {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0.9;
}

.sidebar-user-org i {
  font-size: 1.1rem;
}

.sidebar-user-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.sidebar-user-username {
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: lowercase;
}

.sidebar-user-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sidebar-user-role-badge--superadmin {
  background: rgba(248, 113, 113, 0.25);
  color: #fecaca;
}

.sidebar-user-role-badge--admin {
  background: rgba(96, 165, 250, 0.25);
  color: #bfdbfe;
}

.sidebar-user-role-badge--validateur {
  background: rgba(52, 211, 153, 0.25);
  color: #bbf7d0;
}

.sidebar-user-role-badge--default {
  background: rgba(148, 163, 184, 0.25);
  color: #e2e8f0;
}

.sidebar-user-profile {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.sidebar-user-profile i {
  font-size: 1.05rem;
}

.sidebar-user-profile:hover {
  color: white;
}

.sidebar.collapsed .sidebar-user-card {
  display: none;
}

.sidebar.collapsed .sidebar-link i {
  margin: 0;
}

.profile-quickview {
  background: white;
  color: var(--gray-800);
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.profile-quickview .modal-header,
.profile-quickview .modal-footer {
  border-color: var(--gray-200);
  background: var(--gray-50);
  color: var(--gray-700);
}

.profile-quickview .modal-title {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.profile-quickview__identity {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.profile-quickview__avatar {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--gray-500);
}

.profile-quickview__info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.profile-quickview__username {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: lowercase;
  color: var(--gray-900);
}

.profile-quickview__organisation {
  font-size: 0.9rem;
  color: var(--gray-600);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.profile-quickview__meta {
  margin-bottom: 1.25rem;
}

.profile-quickview__role {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--gray-100);
  color: var(--gray-700);
}

.profile-quickview__role--superadmin {
  background: rgba(248, 113, 113, 0.18);
  color: var(--danger);
}

.profile-quickview__role--admin {
  background: rgba(59, 130, 246, 0.15);
  color: var(--primary);
}

.profile-quickview__role--validateur {
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
}

.profile-quickview__role--auditeur {
  background: rgba(99, 102, 241, 0.15);
  color: #4f46e5;
}

.profile-quickview__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.profile-quickview__actions .btn {
  flex: 1 1 45%;
}

.profile-quickview__actions .btn-outline-secondary {
  border-color: var(--gray-300);
  color: var(--gray-700);
}

.profile-quickview__actions .btn-outline-secondary:hover {
  border-color: var(--gray-400);
  color: var(--gray-900);
}

/* Main content */
.main-content {
  flex: 1;
  margin-left: 260px;
  min-height: 100vh;
  transition: margin-left 0.3s ease;
  display: flex;
  flex-direction: column;
}

.sidebar.collapsed ~ .main-content {
  margin-left: 70px;
}

.main-content main {
  flex: 1;
  padding: 2rem;
}

.main-content footer {
  margin-top: 2rem;
}

/* Overlay mobile */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s;
}

.sidebar-overlay.show {
  display: block;
  opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }
  
  .sidebar.show {
    transform: translateX(0);
  }
  
  .main-content {
    margin-left: 0 !important;
  }
}
