:root {
    --primary-gold: #d2ac67;
    --secondary-gold: #f4d03f;
    --dark-bg: #1a1a1a;
    --darker-bg: #111111;
    --glass-bg: rgba(26, 26, 26, 0.8);
    --glass-border: rgba(210, 172, 103, 0.2);
    --text-light: #ffffff;
    --text-gray: #9ca3af;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --blue: #3b82f6;
  
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
  
    --font-xs: 0.75rem;
    --font-sm: 0.875rem;
    --font-base: 1rem;
    --font-lg: 1.125rem;
    --font-xl: 1.25rem;
    --font-2xl: 1.5rem;
    --font-3xl: 1.875rem;
    --font-4xl: 2.25rem;
  
    --sidebar-width: 280px;
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    color: var(--text-light);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
  }
  
  body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(210, 172, 103, 0.1) 0%, transparent 50%),
      radial-gradient(circle at 80% 20%, rgba(109, 110, 113, 0.1) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
  }
  
  @keyframes float {
    0%,
    100% {
      transform: translateY(0px) rotate(0deg);
    }
    33% {
      transform: translateY(-20px) rotate(2deg);
    }
    66% {
      transform: translateY(10px) rotate(-1deg);
    }
  }
  
  /* ===== LOGIN PAGE STYLES ===== */
  .login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
    position: relative;
  }
  
  .login-bg-effects {
    position: absolute;
    inset: 0;
    overflow: hidden;
  }
  
  .login-bg-effects::before,
  .login-bg-effects::after {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    background: rgba(210, 172, 103, 0.1);
    border-radius: 50%;
    filter: blur(60px);
    animation: pulse 4s ease-in-out infinite;
  }
  
  .login-bg-effects::before {
    top: -160px;
    right: -160px;
  }
  
  .login-bg-effects::after {
    bottom: -160px;
    left: -160px;
    animation-delay: 2s;
  }
  
  @keyframes pulse {
    0%,
    100% {
      opacity: 0.5;
      transform: scale(1);
    }
    50% {
      opacity: 0.8;
      transform: scale(1.1);
    }
  }
  
  .login-card {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: var(--spacing-xl);
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 10;
  }
  
  .login-logo {
    text-align: center;
    margin-bottom: var(--spacing-xl);
  }
  
  .login-logo h1 {
    font-size: var(--font-4xl);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
  }
  
  .login-logo .learning {
    color: white;
  }
  .login-logo .saga {
    color: var(--primary-gold);
  }
  
  .login-logo p {
    color: var(--primary-gold);
    font-weight: 600;
  }
  
  .form-group {
    margin-bottom: var(--spacing-lg);
  }
  
  .form-label {
    display: block;
    color: var(--primary-gold);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    font-size: var(--font-sm);
  }
  
  .form-control {
    width: 100%;
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-light);
    font-size: var(--font-base);
    transition: all 0.3s ease;
    min-height: 48px;
  }
  
  .form-control:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 3px rgba(210, 172, 103, 0.2);
    background: rgba(210, 172, 103, 0.05);
  }
  
  .form-control::placeholder {
    color: var(--text-gray);
  }
  
  .password-field {
    position: relative;
  }
  
  .password-toggle {
    position: absolute;
    right: var(--spacing-md);
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    font-size: var(--font-xl);
    transition: color 0.3s ease;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .password-toggle:hover {
    color: var(--text-light);
  }
  
  /* ===== BUTTON STYLES ===== */
  .btn {
    width: 100%;
    padding: var(--spacing-md);
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: var(--font-base);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    min-height: 48px;
    text-decoration: none;
    text-align: center;
  }
  
  .btn-primary {
    background: linear-gradient(135deg, var(--primary-gold), var(--secondary-gold));
    color: var(--dark-bg);
  }
  
  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(210, 172, 103, 0.4);
  }
  
  .btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
  }
  
  .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border: 1px solid var(--glass-border);
  }
  
  .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
  }
  
  .btn-danger {
    background: linear-gradient(135deg, var(--danger), #f87171);
    color: white;
    position: relative;
    overflow: hidden;
  }
  
  .btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
  }
  
  .btn-success {
    background: linear-gradient(135deg, var(--success), #34d399);
    color: white;
  }
  
  .btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
  }
  
  .btn-blue {
    background: linear-gradient(135deg, var(--blue), #60a5fa);
    color: white;
  }
  
  .btn-blue:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
  }
  
  .btn-sm {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: var(--font-sm);
    width: 100%;
    min-height: 40px;
  }
  
  .btn-link {
    background: none;
    border: none;
    color: var(--primary-gold);
    text-decoration: underline;
    cursor: pointer;
    font-size: var(--font-sm);
    padding: var(--spacing-sm) 0;
    min-height: 44px;
    width: auto;
  }
  
  .btn-link:hover {
    color: var(--secondary-gold);
  }
  
  /* ===== HEADER STYLES ===== */
  .header {
    width: 100%;
    backdrop-filter: blur(10px);
    background: rgba(26, 26, 26, 0.8);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 12px rgba(210, 172, 103, 0.1);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 999;
  }
  
  .header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 1.5rem;
  }
  
  .logo {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-gold);
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .admin-info {
    display: flex;
    align-items: center;
    gap: 2rem;
  }
  
  .admin-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
  }
  
  .profile-section {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 0.4rem 1.2rem;
    border-radius: 2rem;
    gap: 1rem;
  }
  
  .profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-bg);
    font-weight: 600;
  }
  
  .profile-info {
    display: flex;
    flex-direction: column;
  }
  
  .profile-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
  }
  
  .profile-email {
    font-size: 0.75rem;
    color: var(--text-gray);
  }
  
  .logout-btn {
    background: var(--primary-gold);
    color: var(--dark-bg);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.85rem;
    margin-left: 1rem;
  }
  
  .logout-btn:hover {
    background: #f0cc87;
    transform: translateY(-2px);
  }
  
  .mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary-gold);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
  }
  
  /* ===== LAYOUT STYLES ===== */
  .layout {
    display: flex;
    min-height: calc(100vh - 80px);
    position: relative;
  }
  
  /* ===== SIDEBAR STYLES ===== */
  .sidebar {
    width: var(--sidebar-width);
    background: rgba(26, 26, 26, 0.3);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--glass-border);
    padding: var(--spacing-xl) 0;
    transition: all 0.3s ease;
    position: fixed;
    top: 80px;
    left: 0;
    height: calc(100vh - 80px);
    z-index: 999;
    overflow-y: auto;
  }
  
  .sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    backdrop-filter: blur(5px);
  }
  
  .sidebar-overlay.active {
    display: block;
  }
  
  .nav-menu {
    list-style: none;
    padding: 0 var(--spacing-md);
  }
  
  .nav-item {
    margin-bottom: var(--spacing-sm);
  }
  
  .nav-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    min-height: 48px;
  }
  
  .nav-link:hover {
    background: rgba(210, 172, 103, 0.1);
    transform: translateX(8px);
    color: var(--primary-gold);
  }
  
  .nav-link.active {
    background: linear-gradient(135deg, rgba(210, 172, 103, 0.2), rgba(210, 172, 103, 0.1));
    color: var(--primary-gold);
    border-left: 4px solid var(--primary-gold);
  }
  
  .nav-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
  }
  
  /* ===== MAIN CONTENT STYLES ===== */
  .main-content {
    flex: 1;
    padding: var(--spacing-xl);
    margin-left: var(--sidebar-width);
    transition: margin-left 0.3s ease;
    min-height: calc(100vh - 80px);
  }
  
  .section {
    display: none;
  }
  
  .section.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
  }
  
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .section-title {
    font-size: var(--font-4xl);
    font-weight: 700;
    color: var(--primary-gold);
    margin-bottom: var(--spacing-xl);
  }
  
  /* ===== STATS GRID ===== */
  .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
  }
  
  .stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: var(--spacing-xl);
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
  }
  
  .stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(210, 172, 103, 0.3);
    border-color: var(--primary-gold);
  }
  
  .stat-number {
    font-size: var(--font-4xl);
    font-weight: 800;
    color: var(--primary-gold);
    margin-bottom: var(--spacing-sm);
  }
  
  .stat-label {
    color: var(--text-gray);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: var(--font-sm);
  }
  
  /* ===== SECTION HEADER ===== */
  .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xl);
    gap: var(--spacing-md);
  }
  
  .section-header .btn {
    width: auto;
  }
  
  /* ===== TABLE STYLES WITH FIXED HEADER ===== */
  .table-container {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
  }
  
  /* Fixed Header Table */
  .fixed-header-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
  }
  
  .fixed-header-table thead th {
    padding: var(--spacing-lg);
    background: var(--primary-gold);
    color: var(--dark-bg);
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
    font-size: var(--font-sm);
    letter-spacing: 1px;
    position: sticky;
    top: 0;
    z-index: 10;
  }
  
  /* Scrollable Body Container */
  .table-body-scroll {
    max-height: 200px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(6px);
  }
  
  /* Scrollbar styling */
  .table-body-scroll::-webkit-scrollbar {
    width: 6px;
  }
  
  .table-body-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
  }
  
  .table-body-scroll::-webkit-scrollbar-thumb {
    background-color: var(--primary-gold);
    border-radius: 4px;
  }
  
  .table-body-scroll::-webkit-scrollbar-thumb:hover {
    background-color: var(--secondary-gold);
  }
  
  /* Table Body Styles */
  .fixed-header-table tbody td {
    padding: var(--spacing-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    vertical-align: middle;
    word-break: break-word;
    text-align: center;
  }
  
  .fixed-header-table tbody tr:hover td {
    background: rgba(210, 172, 103, 0.05);
    transition: background 0.3s ease;
  }
  
  /* Column widths for consistent alignment */
  .fixed-header-table th:nth-child(1),
  .fixed-header-table td:nth-child(1) {
    width: 20%;
  }
  
  .fixed-header-table th:nth-child(2),
  .fixed-header-table td:nth-child(2) {
    width: 25%;
  }
  
  .fixed-header-table th:nth-child(3),
  .fixed-header-table td:nth-child(3) {
    width: 25%;
    text-align: center;
  }
  
  .fixed-header-table th:nth-child(4),
  .fixed-header-table td:nth-child(4) {
    width: 25%;
  }
  
  .fixed-header-table th:nth-child(5),
  .fixed-header-table td:nth-child(5) {
    width: 20%;
    text-align: center;
  }
  
  /* Header alignment to match body */
  .fixed-header-table thead th:nth-child(3),
  .fixed-header-table thead th:nth-child(5) {
    text-align: center;
  }
  
  /* Image Styling - Properly Centered */
  .table img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    display: block;
    margin: 0 auto;
  }
  
  /* Image container for better alignment */
  .fixed-header-table td:has(img) {
    text-align: center;
    vertical-align: middle;
  }
  
  /* Profile images (circular) */
  .table img[style*="border-radius: 50%"] {
    border-radius: 50% !important;
    width: 40px;
    height: 40px;
  }
  
  /* Course images (rectangular) */
  .table img[width="120"] {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
  }
  
  /* Specific table alignments */
  
  /* Courses table - Image column (3rd) centered */
  #courses .fixed-header-table th:nth-child(3),
  #courses .fixed-header-table td:nth-child(3) {
    text-align: center;
    vertical-align: middle;
  }
  
  /* Testimonials table - Gender and Image columns centered */
  #testimonials .fixed-header-table th:nth-child(2),
  #testimonials .fixed-header-table td:nth-child(2),
  #testimonials .fixed-header-table th:nth-child(3),
  #testimonials .fixed-header-table td:nth-child(3) {
    text-align: center;
    vertical-align: middle;
  }
  
  /* Contact Messages table - Subject column (3rd) left-aligned, Actions (4th) centered */
  #contacts .fixed-header-table th:nth-child(3),
  #contacts .fixed-header-table td:nth-child(3) {
    text-align: left;
  }
  
  #contacts .fixed-header-table th:nth-child(4),
  #contacts .fixed-header-table td:nth-child(4) {
    text-align: center;
  }
  
  /* Demo Requests table - Status column (3rd) centered, Actions (4th) centered */
  #demos .fixed-header-table th:nth-child(3),
  #demos .fixed-header-table td:nth-child(3) {
    text-align: center;
    vertical-align: middle;
  }
  
  #demos .fixed-header-table th:nth-child(4),
  #demos .fixed-header-table td:nth-child(4) {
    text-align: center;
  }
  
  /* Status badge alignment */
  .status-badge {
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 20px;
    font-size: var(--font-xs);
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
    text-align: center;
    min-width: 80px;
  }
  
  /* Gender badge styling */
  .gender-badge {
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 12px;
    font-size: var(--font-xs);
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
    text-align: center;
    min-width: 60px;
  }
  
  .gender-badge.male {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
  }
  
  .gender-badge.female {
    background: rgba(236, 72, 153, 0.2);
    color: #f472b6;
    border: 1px solid rgba(236, 72, 153, 0.3);
  }
  
  /* Text truncation for long content */
  .text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
  }
  
  /* Gender Preview Styling */
  .gender-preview {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
  }
  
  .gender-preview img {
    transition: all 0.3s ease;
  }
  
  /* ===== MODAL STYLES ===== */
  .modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-md);
  }
  
  .modal.active {
    display: flex;
  }
  
  .modal-content {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: var(--spacing-xl);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
  }
  
  @keyframes modalSlideIn {
    from {
      opacity: 0;
      transform: scale(0.9) translateY(-20px);
    }
    to {
      opacity: 1;
      transform: scale(1) translateY(0);
    }
  }
  
  .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xl);
  }
  
  .modal-title {
    color: var(--primary-gold);
    font-size: var(--font-2xl);
    font-weight: 700;
  }
  
  .close-btn {
    background: none;
    border: none;
    color: var(--text-gray);
    font-size: var(--font-2xl);
    cursor: pointer;
    transition: color 0.3s ease;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .close-btn:hover {
    color: var(--danger);
  }
  
  .form-actions {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
  }
  
  .form-actions .btn {
    flex: 1;
  }
  
  /* ===== CONFIRMATION MODAL STYLES ===== */
  .confirmation-modal {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(15px);
  }
  
  .confirmation-content {
    background: linear-gradient(135deg, var(--dark-bg), var(--darker-bg));
    border: 2px solid var(--glass-border);
    border-radius: 24px;
    padding: var(--spacing-2xl);
    text-align: center;
    max-width: 450px;
  }
  
  .confirmation-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-lg);
    background: linear-gradient(135deg, var(--danger), #f87171);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse-danger 2s ease-in-out infinite;
  }
  
  .logout-confirmation-icon {
    background: linear-gradient(135deg, var(--warning), var(--secondary-gold));
  }
  
  @keyframes pulse-danger {
    0%,
    100% {
      transform: scale(1);
      box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    50% {
      transform: scale(1.05);
      box-shadow: 0 0 0 20px rgba(239, 68, 68, 0);
    }
  }
  
  .confirmation-title {
    font-size: var(--font-2xl);
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
  }
  
  .confirmation-message {
    color: var(--text-gray);
    font-size: var(--font-lg);
    line-height: 1.6;
    margin-bottom: var(--spacing-xl);
  }
  
  .confirmation-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
  }
  
  .confirmation-actions .btn {
    min-width: 120px;
    padding: var(--spacing-sm) var(--spacing-lg);
  }
  
  /* ===== ACTION BUTTONS ===== */
  .action-buttons {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    justify-content: center;
  }
  
  /* ===== UTILITY CLASSES ===== */
  .hidden {
    display: none !important;
  }
  .text-center {
    text-align: center;
  }
  
  /* ===== ERROR AND SUCCESS MESSAGES ===== */
  .error-message {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.5);
    border-radius: 8px;
    padding: var(--spacing-sm);
    color: #fca5a5;
    font-size: var(--font-sm);
    margin-bottom: var(--spacing-md);
  }
  
  .success-message {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.5);
    border-radius: 8px;
    padding: var(--spacing-sm);
    color: #6ee7b7;
    font-size: var(--font-sm);
    margin-bottom: var(--spacing-md);
  }
  
  .loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    border-top-color: var(--dark-bg);
    animation: spin 1s linear infinite;
  }
  
  @keyframes spin {
    to {
      transform: rotate(360deg);
    }
  }
  
  /* ===== FAQ SECTION STYLES ===== */
  .faq-section {
    max-width: 900px;
    margin: 0 auto;
    margin-right: 50px;
    margin-bottom: 60px;
    padding: 0 2rem;
    position: relative;
  }
  
  .faq-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .faq-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(210, 172, 103, 0.3);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(210, 172, 103, 0.1);
  }
  
  .faq-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(210, 172, 103, 0.2), transparent);
    transition: left 0.6s ease;
  }
  
  .faq-item:hover::before {
    left: 100%;
  }
  
  .faq-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(210, 172, 103, 0.25);
    border-color: var(--primary-gold);
  }
  
  .faq-item.active {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(210, 172, 103, 0.2);
    border-color: var(--primary-gold);
  }
  
  .faq-question {
    color: white;
    width: 100%;
    padding: 2rem 2.5rem;
    background: none;
    border: none;
    color: var(--darker-bg);
    font-size: 1.25rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
  }
  
  .faq-question:hover {
    color: var(--primary-gold);
  }
  
  .faq-icon {
    font-size: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(210, 172, 103, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(210, 172, 103, 0.3);
    color: var(--darker-bg);
  }
  
  .faq-item.active .faq-icon {
    transform: rotate(45deg);
    background: var(--primary-gold);
    color: white;
  }
  
  .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
  }
  
  .faq-item.active .faq-answer {
    max-height: 200px;
    opacity: 1;
    padding: 0 2.5rem 2rem;
  }
  
  .faq-answer p {
    color: white;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-top: 1rem;
  }
  
  .faq-answer a {
    color: var(--primary-gold);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
  }
  
  .faq-answer a:hover {
    color: var(--darker-bg);
  }
  
  /* Scroll reveal animation */
  .faq-item {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.6s ease forwards;
  }
  
  .faq-item:nth-child(2) {
    animation-delay: 0.1s;
  }
  .faq-item:nth-child(3) {
    animation-delay: 0.2s;
  }
  .faq-item:nth-child(4) {
    animation-delay: 0.3s;
  }
  .faq-item:nth-child(5) {
    animation-delay: 0.4s;
  }
  
  @keyframes slideUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Error input styling */
  .input-error {
    border: 1px solid red !important;
    animation: shake 0.3s ease-in-out;
  }
  
  @keyframes shake {
    0%,
    100% {
      transform: translateX(0);
    }
    25% {
      transform: translateX(-4px);
    }
    75% {
      transform: translateX(4px);
    }
  }
  
  /* ===== ENHANCED RESPONSIVE MEDIA QUERIES ===== */
  
  /* Extra Large Screens (1920px and up) - Large Desktops */
  @media (min-width: 1920px) {
    :root {
      --sidebar-width: 320px;
      --font-base: 1.125rem;
      --font-lg: 1.25rem;
      --font-xl: 1.375rem;
      --font-2xl: 1.75rem;
      --font-3xl: 2.125rem;
      --font-4xl: 2.75rem;
    }
  
    .header {
      padding: 1.5rem 3rem;
    }
  
    .main-content {
      padding: 3rem;
      margin-left: 320px;
    }
  
    .stats-grid {
      grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
      gap: 2.5rem;
    }
  
    .stat-card {
      padding: 2.5rem;
    }
  
    .table-body-scroll {
      max-height: 500px;
    }
  
    .fixed-header-table th,
    .fixed-header-table td {
      padding: 1.5rem;
    }
  
    .modal-content {
      max-width: 600px;
      padding: 3rem;
    }
  
    .confirmation-content {
      padding: 3rem;
      max-width: 550px;
    }
  
    .confirmation-icon {
      width: 100px;
      height: 100px;
    }
  }
  
  /* Large Screens (1440px to 1919px) - Large Laptops/Desktops */
  @media (min-width: 1440px) and (max-width: 1919px) {
    :root {
      --sidebar-width: 300px;
    }
  
    .main-content {
      margin-left: 300px;
      padding: 2.5rem;
    }
  
    .stats-grid {
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 2rem;
    }
  
    .table-body-scroll {
      max-height: 450px;
    }
  
    .modal-content {
      max-width: 550px;
    }
  }
  
  /* Desktop (1200px to 1439px) - Standard Desktops */
  @media (min-width: 1200px) and (max-width: 1439px) {
    .stats-grid {
      grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }
  
    .table-body-scroll {
      max-height: 400px;
    }
  
    .fixed-header-table th,
    .fixed-header-table td {
      padding: var(--spacing-lg);
    }
  }
  
  /* Large Tablet Landscape (1024px to 1199px) */
  @media (min-width: 1024px) and (max-width: 1199px) {
    :root {
      --sidebar-width: 260px;
    }
  
    .sidebar {
      width: 260px;
      transform: translateX(0);
    }
  
    .main-content {
      margin-left: 260px;
      padding: 2rem;
    }
  
    .stats-grid {
      grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
      gap: 1.5rem;
    }
  
    .section-header {
      flex-direction: row;
      align-items: center;
    }
  
    .admin-info {
      gap: 1.5rem;
    }
  
    .table-body-scroll {
      max-height: 1000px;
    }
  
    .fixed-header-table th,
    .fixed-header-table td {
      padding: 1rem;
      font-size: var(--font-sm);
    }
  
    .table img {
      width: 44px;
      height: 44px;
    }
  
    .table img[width="120"] {
      width: 70px;
      height: 52px;
    }
  
    .modal-content {
      max-width: 480px;
    }
  }
  
  /* Tablet Portrait & Small Laptop (768px to 1023px) */
  @media (min-width: 768px) and (max-width: 1023px) {
    .mobile-menu-toggle {
      display: flex;
    }
  
    .sidebar {
      transform: translateX(-100%);
      width: var(--sidebar-width);
    }
  
    .sidebar.mobile-visible {
      transform: translateX(0);
    }
  
    .main-content {
      margin-left: 0;
      padding: 2rem;
    }
  
    .header-content {
      gap: 1rem;
    }
  
    .admin-info {
      gap: 1rem;
    }
  
    .admin-text {
      display: none;
    }
  
    .profile-section {
      padding: 0.3rem 1rem;
    }
  
    .logout-btn {
      padding: 0.4rem 0.8rem;
      font-size: 0.8rem;
      margin-left: 0.5rem;
    }
  
    .stats-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 1.5rem;
    }
  
    .section-header {
      flex-direction: column;
      align-items: stretch;
      gap: 1rem;
    }
  
    .section-title {
      font-size: var(--font-3xl);
    }
  
    .table-container {
      overflow-x: auto;
    }
  
    .table-body-scroll {
      max-height: 840px;
    }
  
    .fixed-header-table {
      min-width: 600px;
    }
  
    .fixed-header-table th,
    .fixed-header-table td {
      padding: 0.875rem;
      font-size: var(--font-sm);
    }
  
    .table img {
      width: 40px;
      height: 40px;
    }
  
    .table img[width="120"] {
      width: 64px;
      height: 48px;
    }
  
    .action-buttons {
      justify-content: flex-start;
      flex-wrap: wrap;
    }
  
    .modal-content {
      max-width: 90%;
      padding: 2rem;
    }
  
    .confirmation-content {
      max-width: 400px;
      padding: 2rem;
    }
  }
  
  /* Large Mobile Landscape & Small Tablet (640px to 767px) */
  @media (min-width: 640px) and (max-width: 767px) {
    .header {
      padding: 1rem 1.5rem;
    }
  
    .main-content {
      padding: 1.5rem;
    }
  
    .logo {
      font-size: 1.75rem;
    }
  
    .profile-info {
      display: none;
    }
  
    .logout-btn {
      margin-left: 0;
      padding: 0.4rem 0.75rem;
      font-size: var(--font-sm);
    }
  
    .section-title {
      font-size: var(--font-3xl);
      margin-bottom: 2rem;
    }
  
    .stats-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 1rem;
    }
  
    .stat-card {
      padding: 1.5rem;
    }
  
    .stat-number {
      font-size: var(--font-3xl);
    }
  
    .table-container {
      margin: 0 -0.5rem;
      border-radius: 16px;
    }
  
    .table-body-scroll {
      max-height: 280px;
    }
  
    .fixed-header-table {
      min-width: 550px;
    }
  
    .fixed-header-table th,
    .fixed-header-table td {
      padding: 0.75rem;
      font-size: var(--font-sm);
    }
  
    .table img {
      width: 36px;
      height: 36px;
    }
  
    .table img[width="120"] {
      width: 56px;
      height: 42px;
    }
  
    .action-buttons {
      gap: 0.5rem;
    }
  
    .action-buttons .btn {
      font-size: var(--font-sm);
      padding: 0.5rem 1rem;
    }
  
    .modal-content {
      width: 95%;
      max-width: 95%;
      padding: 1.5rem;
      max-height: 85vh;
    }
  
    .confirmation-actions {
      flex-direction: row;
      justify-content: center;
    }
  
    .form-actions {
      flex-direction: row;
    }
  }
  
  /* Mobile Portrait (480px to 639px) */
  @media (min-width: 480px) and (max-width: 639px) {
    .header {
      padding: 1rem;
    }
  
    .header-content {
      gap: 0.5rem;
    }
  
    .logo {
      font-size: 1.5rem;
    }
  
    .profile-avatar {
      width: 32px;
      height: 32px;
      font-size: var(--font-sm);
    }
  
    .logout-btn {
      padding: 0.375rem 0.625rem;
      font-size: 0.75rem;
    }
  
    .main-content {
      padding: 0.75rem;
    }
  
    .section-title {
      font-size: var(--font-2xl);
    }
  
    .stats-grid {
      grid-template-columns: 1fr;
      gap: 0.75rem;
    }
  
    .stat-card {
      padding: 1.25rem;
    }
  
    .table-container {
      margin: 0 -0.5rem;
      border-radius: 12px;
    }
  
    .table-body-scroll {
      max-height: 250px;
    }
  
    .fixed-header-table {
      min-width: 450px;
    }
  
    .fixed-header-table th,
    .fixed-header-table td {
      padding: 0.375rem;
      font-size: var(--font-xs);
    }
  
    .table img {
      width: 24px;
      height: 24px;
    }
  
    .table img[width="120"] {
      width: 32px;
      height: 24px;
    }
  
    .text-truncate {
      max-width: 60px;
    }
  }
  
  /* Landscape Orientation Adjustments */
  @media (orientation: landscape) and (max-height: 600px) {
    .sidebar {
      height: calc(100vh - 60px);
      top: 60px;
    }
  
    .header {
      padding: 0.75rem 1rem;
    }
  
    .main-content {
      min-height: calc(100vh - 60px);
    }
  
    .table-body-scroll {
      max-height: 200px;
    }
  
    .modal-content {
      max-height: 85vh;
    }
  
    .stats-grid {
      margin-bottom: 1rem;
    }
  
    .stat-card {
      padding: 1rem;
    }
  
    .confirmation-icon {
      width: 48px;
      height: 48px;
      margin-bottom: 0.75rem;
    }
  }
  
  /* High DPI Displays - Enhanced */
  @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .table img,
    .profile-avatar,
    .confirmation-icon {
      image-rendering: -webkit-optimize-contrast;
      image-rendering: crisp-edges;
    }
  
    .login-bg-effects::before,
    .login-bg-effects::after {
      filter: blur(40px);
    }
  }
  
  /* Ultra High DPI Displays (3x) */
  @media (-webkit-min-device-pixel-ratio: 3), (min-resolution: 288dpi) {
    .table img {
      image-rendering: pixelated;
      image-rendering: -moz-crisp-edges;
    }
  }
  
  /* Reduced Motion Preferences - Enhanced */
  @media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
      scroll-behavior: auto !important;
    }
  
    .sidebar,
    .modal,
    .section {
      transition: none !important;
    }
  
    .btn:hover,
    .nav-link:hover,
    .stat-card:hover {
      transform: none !important;
    }
  }
  
  /* Dark Mode Support */
  @media (prefers-color-scheme: dark) {
    :root {
      --dark-bg: #0a0a0a;
      --darker-bg: #000000;
      --glass-bg: rgba(10, 10, 10, 0.9);
    }
  }
  
  /* Print Styles */
  @media print {
    .sidebar,
    .mobile-menu-toggle,
    .logout-btn,
    .action-buttons,
    .btn,
    .modal {
      display: none !important;
    }
  
    .main-content {
      margin-left: 0 !important;
      padding: 1rem !important;
    }
  
    .table-body-scroll {
      max-height: none !important;
      overflow: visible !important;
    }
  
    .section {
      page-break-inside: avoid;
    }
  
    .section-title {
      color: #000 !important;
    }
  
    .stat-card {
      break-inside: avoid;
      box-shadow: none !important;
      border: 1px solid #ccc !important;
    }
  }
  