
    /* Font + Reset */
    body {
      background: #f5f7fa;
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
        Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
      color: #2e3a59;
      margin: 0;
      min-height: 100vh;
    }

    /* Sidebar */
    #sidebar {
      position: fixed;
      top: 0;
      left: 0;
      width: 250px;
      height: 100vh;
      background: #ffffff;
      border-right: 1px solid #e3e6f0;
      box-shadow: 2px 0 8px rgb(0 0 0 / 0.05);
      overflow-y: auto;
      transition: left 0.3s ease-in-out;
      z-index: 1040;
      display: flex;
      flex-direction: column;
    }

    #sidebar .text-center {
      padding: 1.5rem 1rem;
      border-bottom: 1px solid #e3e6f0;
      font-weight: 700;
      font-size: 1.4rem;
      color: #4e73df;
      letter-spacing: 1px;
      user-select: none;
    }

    #sidebar ul.nav {
      flex-grow: 1;
      padding-left: 0;
      margin-bottom: 0;
    }

    #sidebar ul.nav li {
      list-style: none;
    }

    #sidebar .nav-link {
      display: flex;
      align-items: center;
      color: #6c757d;
      padding: 0.75rem 1.25rem;
      font-weight: 500;
      font-size: 1rem;
      border-left: 4px solid transparent;
      transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
      cursor: pointer;
      user-select: none;
    }

    #sidebar .nav-link i {
      font-size: 1.25rem;
      margin-right: 1rem;
      min-width: 22px;
      text-align: center;
      color: #adb5bd;
      transition: color 0.15s ease;
    }

    #sidebar .nav-link:hover,
    #sidebar .nav-link.active {
      background-color: #e9f0ff;
      color: #375aef;
      border-left-color: #375aef;
    }

    #sidebar .nav-link:hover i,
    #sidebar .nav-link.active i {
      color: #375aef;
    }

    .sidebar-heading {
      font-size: 0.75rem;
      text-transform: uppercase;
      padding: 1rem 1.25rem 0.3rem 1.25rem;
      color: #adb5bd;
      font-weight: 600;
      user-select: none;
    }

    /* Main Content */
    #main-content {
      margin-left: 250px;
      padding: 2rem 2.5rem;
      transition: margin-left 0.3s ease-in-out;
      min-height: 100vh;
      background: #f5f7fa;
    }

    /* Header */
    #header {
      background-color: #fff;
      border-bottom: 1px solid #e3e6f0;
      padding: 1rem 2.5rem;
      position: sticky;
      top: 0;
      z-index: 1050;
      display: flex;
      align-items: center;
      justify-content: space-between;
      box-shadow: 0 2px 6px rgb(0 0 0 / 0.05);
      user-select: none;
    }

    .btn-toggle-sidebar,
    .btn-close-sidebar {
      display: none;
      background: transparent;
      border: none;
      font-size: 1.5rem;
      color: #6c757d;
      cursor: pointer;
      transition: color 0.2s ease;
    }
    .btn-toggle-sidebar:hover,
    .btn-close-sidebar:hover {
      color: #375aef;
    }

    /* User dropdown */
    .dropdown-toggle::after {
      display: none;
    }

    #header .user-info {
      display: flex;
      align-items: center;
      cursor: pointer;
      gap: 0.75rem;
      color: #2e3a59;
      font-weight: 600;
    }

    #header .user-info img.user-avatar {
      width: 38px;
      height: 38px;
      border-radius: 50%;
      border: 2px solid #375aef;
      object-fit: cover;
    }

    /* Cards Dashboard */
    #dashboard .card {
      border-radius: 12px;
      box-shadow: 0 4px 12px rgb(55 90 239 / 0.15);
      color: white;
      padding: 1.5rem;
      user-select: none;
      transition: transform 0.2s ease;
    }

    #dashboard .card:hover {
      transform: translateY(-6px);
      box-shadow: 0 8px 20px rgb(55 90 239 / 0.25);
    }

    #dashboard .bg-primary {
      background: linear-gradient(135deg, #375aef 0%, #1c3acf 100%);
    }

    #dashboard .bg-success {
      background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    }

    #dashboard .bg-info {
      background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    }

    #dashboard .bg-warning {
      background: linear-gradient(135deg, #f1c40f 0%, #d4ac0d 100%);
      color: #2c3e50;
    }

    #dashboard .card-title {
      font-weight: 700;
      font-size: 0.95rem;
      letter-spacing: 0.03em;
      opacity: 0.9;
      margin-bottom: 0.6rem;
      text-transform: uppercase;
    }

    #dashboard .card-text {
      font-size: 2rem;
      font-weight: 700;
      letter-spacing: 0.02em;
    }

    /* Recent sales table */
    #recent-sales h5 {
      font-weight: 700;
      margin-bottom: 1rem;
      color: #2e3a59;
      letter-spacing: 0.04em;
      user-select: none;
    }

    #recent-sales table {
      background: #ffffff;
      border-radius: 12px;
      box-shadow: 0 4px 12px rgb(0 0 0 / 0.05);
      overflow: hidden;
      user-select: none;
    }

    #recent-sales table thead {
      background-color: #f1f3f5;
      color: #495057;
      font-weight: 600;
      letter-spacing: 0.05em;
      user-select: none;
    }

    #recent-sales table th,
    #recent-sales table td {
      padding: 1rem 1.25rem;
      vertical-align: middle;
    }

    #recent-sales table tbody tr:hover {
      background-color: #e9f0ff;
      cursor: default;
    }

    /* Badges stylés */
    .badge {
      font-weight: 600;
      letter-spacing: 0.04em;
      font-size: 0.85rem;
      padding: 0.4em 0.75em;
      border-radius: 12px;
      user-select: none;
    }

    .bg-success {
      background-color: #28a745 !important;
      color: #fff !important;
    }

    .bg-warning {
      background-color: #ffc107 !important;
      color: #212529 !important;
    }

    .bg-danger {
      background-color: #dc3545 !important;
      color: #fff !important;
    }

    .bg-secondary {
      background-color: #6c757d !important;
      color: #fff !important;
    }

    /* Responsive */
    @media (max-width: 991px) {
      #main-content {
        margin-left: 0;
        padding: 1.5rem 1.5rem 3rem;
      }

      #sidebar {
        left: -250px;
        position: fixed;
        box-shadow: 2px 0 12px rgb(0 0 0 / 0.2);
      }

      #sidebar.active {
        left: 0;
        z-index: 1050;
      }

      .btn-toggle-sidebar,
      .btn-close-sidebar {
        display: inline-block;
      }

      #header {
        padding: 1rem 1.5rem;
      }

      /* Ajustement du header user */
      #header .user-info span {
        display: none;
      }
    }

  body.bg-dark .card,
  body.bg-dark .table-responsive {
    background-color: #1f1f1f;
    color: #fff;
  }
  body.bg-dark .table thead {
    background-color: #2c2c2c;
    color: #fff;
  }


