/* ===== Base Styles ===== */
:root {
    --primary: #4e73df;
    --primary-dark: #2e59d9;
    --secondary: #858796;
    --success: #1cc88a;
    --info: #36b9cc;
    --warning: #f6c23e;
    --danger: #e74a3b;
    --light: #f8f9fc;
    --dark: #5a5c69;
    --white: #fff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    
    /* Theme variables */
    --body-bg: #f8f9fc;
    --card-bg: var(--white);
    --text-color: var(--gray-900);
    --border-color: var(--gray-300);
    --input-bg: var(--white);
    --input-border: var(--gray-400);
    --table-header-bg: var(--gray-100);/* ===== CSS Variables with Theme Support ===== */
    :root {
      /* Color Palette */
      --primary-50: #f0f5ff;
      --primary-100: #d6e4ff;
      --primary-200: #adc8ff;
      --primary-300: #85a8ff;
      --primary-400: #6690ff;
      --primary-500: #4e73df;
      --primary-600: #3a5bc7;
      --primary-700: #2a46a3;
      --primary-800: #1d3380;
      --primary-900: #12235c;
      
      --secondary-500: #858796;
      --success-500: #1cc88a;
      --info-500: #36b9cc;
      --warning-500: #f6c23e;
      --danger-500: #e74a3b;
      
      /* Grayscale */
      --white: #ffffff;
      --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;
      
      /* Theme Variables - Light (Default) */
      --body-bg: var(--gray-50);
      --surface-bg: var(--white);
      --card-bg: var(--white);
      --text-primary: var(--gray-900);
      --text-secondary: var(--gray-600);
      --border-color: var(--gray-200);
      --input-bg: var(--white);
      --input-border: var(--gray-300);
      --table-header-bg: var(--gray-50);
      --table-row-hover: rgba(0, 0, 0, 0.02);
      --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
      --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
      --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
      --shadow-primary: 0 4px 14px -2px rgba(78, 115, 223, 0.3);
    }
    
    /* ===== Dark Theme Overrides ===== */
    [data-bs-theme="dark"] {
      --body-bg: #0f172a;
      --surface-bg: #1e293b;
      --card-bg: #1e293b;
      --text-primary: #f8fafc;
      --text-secondary: #94a3b8;
      --border-color: #334155;
      --input-bg: #1e293b;
      --input-border: #475569;
      --table-header-bg: #1e293b;
      --table-row-hover: rgba(255, 255, 255, 0.02);
      --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.2);
      --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.25), 0 2px 4px -1px rgba(0, 0, 0, 0.15);
      --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.25), 0 4px 6px -2px rgba(0, 0, 0, 0.15);
      --shadow-primary: 0 4px 14px -2px rgba(78, 115, 223, 0.4);
    }
    
    /* ===== Base Styles ===== */
    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
      /* color:rgb(255, 255, 255);
      background-color: #6c757d; */
    }
    
    html {
      scroll-behavior: smooth;
    }
    
    body {
      background-color: var(--body-bg);
      color: var(--text-primary);
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
      line-height: 1.6;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
    }
    
    /* ===== Typography ===== */
    h1, h2, h3, h4, h5, h6 {
      font-weight: 700;
      color: var(--text-primary);
      line-height: 1.3;
      margin-bottom: 1rem;
    }
    
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.75rem; }
    h4 { font-size: 1.5rem; }
    h5 { font-size: 1.25rem; }
    h6 { font-size: 1rem; }
    
    p {
      color: var(--text-secondary);
      margin-bottom: 1rem;
    }
    
    a {
      color: var(--primary-500);
      text-decoration: none;
      transition: all 0.2s ease;
      font-weight: 500;
    }
    
    a:hover {
      color: var(--primary-600);
      text-decoration: underline;
    }
    
    .text-muted {
      color: var(--text-secondary) !important;
    }
    
    /* ===== Cards ===== */
    .card {
      background-color: var(--card-bg);
      border: 1px solid var(--border-color);
      border-radius: 0.75rem;
      box-shadow: var(--shadow-sm);
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      overflow: hidden;
      margin-bottom: 1.5rem;
    }
    
    .card:hover {
      box-shadow: var(--shadow);
      transform: translateY(-2px);
    }
    
    .card-header {
      background-color: var(--card-bg);
      border-bottom: 1px solid var(--border-color);
      padding: 1.25rem 1.5rem;
      font-weight: 600;
    }
    
    .card-body {
      padding: 1.5rem;
    }
    
    .card-footer {
      background-color: var(--card-bg);
      border-top: 1px solid var(--border-color);
      padding: 1rem 1.5rem;
    }
    
    /* ===== Tables ===== */
    .table {
      width: 100%;
      color: var(--text-primary);
      border-collapse: collapse;
    }
    
    .table thead th {
      background-color: var(--table-header-bg);
      border-bottom: 2px solid var(--border-color);
      padding: 0.75rem 1rem;
      font-weight: 600;
      text-transform: uppercase;
      font-size: 0.75rem;
      letter-spacing: 0.05em;
      text-align: left;
    }
    
    .table tbody td {
      padding: 1rem;
      border-bottom: 1px solid var(--border-color);
      vertical-align: middle;
    }
    
    .table-hover tbody tr {
      transition: all 0.2s ease;
    }
    
    .table-hover tbody tr:hover {
      background-color: var(--table-row-hover);
    }
    
    /* ===== Forms ===== */
    .form-control {
      background-color: var(--input-bg);
      border: 1px solid var(--input-border);
      color: var(--text-primary);
      padding: 0.75rem 1rem;
      border-radius: 0.5rem;
      transition: all 0.2s ease;
      font-size: 0.9375rem;
    }
    
    .form-control:focus {
      background-color: var(--input-bg);
      border-color: var(--primary-500);
      box-shadow: 0 0 0 3px rgba(78, 115, 223, 0.15);
      outline: none;
    }
    
    .form-label {
      font-weight: 500;
      margin-bottom: 0.5rem;
      color: var(--text-primary);
      display: block;
    }
    
    .form-floating>label {
      color: var(--text-secondary);
      padding: 0.75rem 1rem;
    }
    
    /* ===== Buttons ===== */
    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-weight: 600;
      padding: 0.75rem 1.5rem;
      border-radius: 0.5rem;
      transition: all 0.2s ease;
      border: none;
      cursor: pointer;
      font-size: 0.9375rem;
      line-height: 1.5;
      gap: 0.5rem;
    }
    
    .btn-sm {
      padding: 0.5rem 1rem;
      font-size: 0.875rem;
    }
    
    .btn-lg {
      padding: 1rem 2rem;
      font-size: 1rem;
    }
    
    .btn-primary {
      background-color: var(--primary-500);
      color: white;
    }
    
    .btn-primary:hover {
      background-color: var(--primary-600);
      box-shadow: var(--shadow-primary);
    }
    
    .btn-outline-primary {
      background-color: transparent;
      color: var(--primary-500);
      border: 1px solid var(--primary-500);
    }
    
    .btn-outline-primary:hover {
      background-color: var(--primary-500);
      color: white;
    }
    
    /* ===== Navigation ===== */
    .navbar {
      background-color: var(--surface-bg) !important;
      box-shadow: var(--shadow-sm);
      padding: 0.75rem 1.5rem;
      border-bottom: 1px solid var(--border-color);
      position: sticky;
      top: 0;
      z-index: 1030;
    }
    
    .navbar-brand {
      font-weight: 800;
      font-size: 1.5rem;
      color: var(--primary-500) !important;
      display: flex;
      align-items: center;
      gap: 0.75rem;
    }
    
    .nav-link {
      font-weight: 500;
      padding: 0.5rem 1rem;
      color: var(--text-secondary);
      border-radius: 0.5rem;
    }
    
    .nav-link:hover, .nav-link.active {
      color: var(--primary-500);
      background-color: rgba(78, 115, 223, 0.1);
    }
    
    /* ===== Dashboard Components ===== */
    .stat-card {
      border-left: 4px solid var(--primary-500);
      transition: all 0.3s ease;
      position: relative;
      overflow: hidden;
    }
    
    .stat-card:hover {
      transform: translateY(-5px);
      box-shadow: var(--shadow);
    }
    
    .stat-card::after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: linear-gradient(135deg, rgba(78, 115, 223, 0.1) 0%, rgba(78, 115, 223, 0) 100%);
      opacity: 0;
      transition: opacity 0.3s ease;
    }
    
    .stat-card:hover::after {
      opacity: 1;
    }
    
    .avatar {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
      font-weight: 600;
      color: white;
    }
    
    .avatar-sm {
      width: 2.5rem;
      height: 2.5rem;
      font-size: 1rem;
    }
    
    .avatar-md {
      width: 3rem;
      height: 3rem;
      font-size: 1.25rem;
    }
    
    .avatar-lg {
      width: 4rem;
      height: 4rem;
      font-size: 1.5rem;
    }
    
    /* ===== Theme Toggle ===== */
    .theme-toggle {
      position: fixed;
      bottom: 1.5rem;
      right: 1.5rem;
      z-index: 1050;
      width: 3rem;
      height: 3rem;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      background-color: var(--primary-500);
      color: white;
      box-shadow: var(--shadow-lg);
      transition: all 0.3s ease;
      border: none;
    }
    
    .theme-toggle:hover {
      transform: scale(1.1) rotate(30deg);
      background-color: var(--primary-600);
    }
    
    /* ===== Login Page ===== */
    .login-container {
      display: flex;
      min-height: 100vh;
      align-items: center;
      justify-content: center;
      padding: 2rem;
      background-color: var(--body-bg);
    }
    
    .login-card {
      width: 100%;
      max-width: 28rem;
      border-radius: 1rem;
      overflow: hidden;
      box-shadow: var(--shadow-lg);
      background-color: var(--card-bg);
    }
    
    .login-header {
      background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-700) 100%);
      padding: 2.5rem;
      text-align: center;
      color: white;
    }
    
    .login-body {
      padding: 2.5rem;
    }
    
    /* ===== Animations ===== */
    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(10px); }
      to { opacity: 1; transform: translateY(0); }
    }
    
    @keyframes pulse {
      0%, 100% { transform: scale(1); }
      50% { transform: scale(1.05); }
    }
    
    .animate-fade {
      animation: fadeIn 0.5s ease-out forwards;
    }
    
    .animate-pulse {
      animation: pulse 2s infinite;
    }
    
    /* ===== Utility Classes ===== */
    .rounded-lg { border-radius: 0.75rem; }
    .rounded-xl { border-radius: 1rem; }
    
    .shadow-sm { box-shadow: var(--shadow-sm); }
    .shadow { box-shadow: var(--shadow); }
    .shadow-lg { box-shadow: var(--shadow-lg); }
    
    .gap-1 { gap: 0.25rem; }
    .gap-2 { gap: 0.5rem; }
    .gap-3 { gap: 1rem; }
    .gap-4 { gap: 1.5rem; }
    .gap-5 { gap: 2rem; }
    
    /* ===== Custom Scrollbar ===== */
    ::-webkit-scrollbar {
      width: 8px;
      height: 8px;
    }
    
    ::-webkit-scrollbar-track {
      background: var(--body-bg);
    }
    
    ::-webkit-scrollbar-thumb {
      background: var(--primary-500);
      border-radius: 4px;
    }
    
    ::-webkit-scrollbar-thumb:hover {
      background: var(--primary-600);
    }
    
    /* ===== Print Styles ===== */
    @media print {
      body {
        background-color: white !important;
        color: black !important;
      }
      
      .no-print {
        display: none !important;
      }
    }
  }
  
  /* ===== Dark Theme Overrides ===== */
  [data-bs-theme="dark"] {
    --body-bg: #1a1a2e;
    --card-bg: #16213e;
    --text-color: #e2e8f0;
    --border-color: #2d3748;
    --input-bg: #2d3748;
    --input-border: #4a5568;
    --table-header-bg: #2d3748;
    
    --primary: #6a4c93;
    --secondary: #a0aec0;
    --light: #2d3748;
    --dark: #e2e8f0;
  }
  
  /* ===== Global Styles ===== */
  body {
    background-color: var(--body-bg);
    color: var(--text-color);
    font-family: 'Nunito', sans-serif;
    line-height: 1.6;
  }
  
  /* ===== Typography ===== */
  h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--text-color);
  }
  
  a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s;
  }
  
  a:hover {
    color: var(--primary-dark);
    text-decoration: none;
  }
  
  /* ===== Cards ===== */
  .card {
    border: none;
    border-radius: 0.35rem;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    background-color: var(--card-bg);
    margin-bottom: 1.5rem;
  }
  
  .card-header {
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.35rem;
    font-weight: 600;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  /* ===== Tables ===== */
  .table {
    color: var(--text-color);
    margin-bottom: 0;
  }
  
  .table thead th {
    background-color: var(--table-header-bg);
    border-bottom-width: 1px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
  }
  
  .table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.05);
  }
  
  [data-bs-theme="dark"] .table-hover tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
  }
  
  /* ===== Forms ===== */
  .form-control {
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--text-color);
    padding: 0.75rem 1rem;
    transition: all 0.3s;
  }
  
  .form-control:focus {
    background-color: var(--input-bg);
    color: var(--text-color);
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(78, 115, 223, 0.25);
  }
  
  .form-floating>label {
    color: var(--gray-600);
  }
  
  [data-bs-theme="dark"] .form-floating>label {
    color: var(--gray-400);
  }
  
  /* ===== Buttons ===== */
  .btn {
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.35rem;
    transition: all 0.3s;
  }
  
  .btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
  }
  
  .btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
  }
  
  .btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
  }
  
  .btn-outline-primary:hover {
    background-color: var(--primary);
    color: var(--white);
  }
  
  /* ===== Navigation ===== */
  .navbar {
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    background-color: var(--card-bg) !important;
    padding: 0.75rem 1rem;
  }
  
  .navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary) !important;
  }
  
  /* ===== Dashboard Components ===== */
  .stat-card {
    border-left: 0.25rem solid var(--primary) !important;
    transition: transform 0.3s;
  }
  
  .stat-card:hover {
    transform: translateY(-5px);
  }
  
  .avatar-sm {
    width: 36px;
    height: 36px;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  
  .avatar-title {
    color: white;
    font-weight: 600;
  }
  
  /* ===== Theme Toggle ===== */
  .theme-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
  }
  
  .theme-toggle:hover {
    transform: scale(1.1);
  }
  
  /* ===== Login Page Specific ===== */
  .login-container {
    max-width: 500px;
  }
  
  .login-card {
    border: none;
    border-radius: 1rem;
    overflow: hidden;
  }
  
  .login-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 2rem;
    text-align: center;
  }
  
  .login-body {
    padding: 2.5rem;
  }
  
  /* ===== Responsive Adjustments ===== */
  @media (max-width: 768px) {
    .card-body {
      padding: 1rem;
    }
    
    .login-body {
      padding: 1.5rem;
    }
  }
  
  /* ===== Animations ===== */
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  .animate-fade {
    animation: fadeIn 0.5s ease-out forwards;
  }
  
  /* ===== Utility Classes ===== */
  .rounded-lg {
    border-radius: 0.5rem;
  }
  
  .rounded-xl {
    border-radius: 1rem;
  }
  
  .shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  }
  
  .shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175);
  }
  
  /* ===== DataTables Overrides ===== */
  .dataTables_wrapper .dataTables_filter input {
    background-color: var(--input-bg);
    color: var(--text-color);
    border: 1px solid var(--input-border);
  }
  
  .dataTables_wrapper .dataTables_length select {
    background-color: var(--input-bg);
    color: var(--text-color);
    border: 1px solid var(--input-border);
  }

  /* auth-illustration.svg should be a simple SVG image */
.auth-illustration {
  background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
}

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1rem 0;
}

.divider::before, .divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid var(--border-color);
}

.divider::before {
  margin-right: 1rem;
}

.divider::after {
  margin-left: 1rem;
}

@media (max-width: 991.98px) {
  .auth-container {
      padding: 1rem;
  }
  
  .auth-form-container {
      max-width: 100%;
      padding: 2rem;
  }
}
#navbarContent{
  display: flex;
}
ul{
  list-style-type: none;
}