/* =================================================================
   1. Imports & Root Variables
   ================================================================= */
   @import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&display=swap');
   @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
   
   :root {
       --bg-main: #0a0a0a;
       --bg-card: rgba(24, 24, 24, 0.85);
       --border-color: #2f313d;
       --primary-accent: #ffffff;
       --primary: #7a3ffd;
       --text-primary: #f5f5f5;
       --text-secondary: #a3a3a3;
       --points-yellow: #FBBF24;
       --success-green: #4ADE80;
       --danger-red: #ef4444;
   }
   
   /* =================================================================
      2. General Body & Typography
      ================================================================= */
   body {
       font-family: 'Cairo', sans-serif;
       margin: 0;
       background-color: var(--bg-main);
       color: var(--text-secondary);
   }
   
   h1, h2, h3, h4, h5 {
       color: var(--text-primary);
       margin-top: 0;
   }
   
   a {
       text-decoration: none;
       color: var(--primary);
   }
   
   /* =================================================================
      3. Layout & Structure
      ================================================================= */
   .page-wrapper {
       display: flex;
       width: 100%;
       position: relative;
       z-index: 2;
   }
   
   .sidebar {
       width: 260px;
       background-color: var(--bg-card);
       border-right: 1px solid var(--border-color);
       padding: 24px;
       height: 100vh;
       display: flex;
       flex-direction: column;
       box-sizing: border-box;
       position: fixed;
       left: 0;
       top: 0;
       backdrop-filter: blur(10px);
   }
   
   .main-content {
       flex-grow: 1;
       padding: 24px 40px;
       margin-left: 260px; /* Same as sidebar width */
   }
   
   .main-header {
       display: flex;
       justify-content: space-between;
       align-items: center;
       margin-bottom: 30px;
       gap: 20px;
   }
   
   /* =================================================================
      4. Common Components
      ================================================================= */
   
   /* --- Logo --- */
   .logo {
       font-size: 1.8em;
       font-weight: 700;
       color: var(--text-primary);
       text-align: center;
       margin-bottom: 40px;
   }
   
   /* --- User Profile (Sidebar) --- */
   .user-profile {
       text-align: center;
       margin-bottom: 30px;
   }
   .user-profile .avatar {
       width: 60px;
       height: 60px;
       border-radius: 50%;
       background-color: #333;
       border: 2px solid var(--primary-accent);
       color: white;
       display: flex;
       align-items: center;
       justify-content: center;
       font-size: 1.5em;
       margin: 0 auto 15px auto;
   }
   .user-profile h2 {
       font-size: 1.1em;
       color: var(--text-primary);
       margin: 0;
   }
   
   /* --- Navigation --- */
   .navigation {
       list-style: none;
       padding: 0;
       margin: 0;
       flex-grow: 1;
   }
   .navigation li a {
       display: flex;
       align-items: center;
       padding: 15px;
       color: var(--text-secondary);
       border-radius: 8px;
       margin-bottom: 8px;
       font-weight: 600;
       transition: all 0.2s;
   }
   .navigation li a:hover, .navigation li a.active {
       background-color: var(--primary-accent);
       color: var(--bg-main);
   }
   .navigation li a i {
       margin-right: 15px; /* Adjusted for LTR admin panel */
       font-size: 1.2em;
   }
   
   /* --- Logout Link --- */
   .logout-link {
       display: flex;
       align-items: center;
       padding: 15px;
       color: var(--text-secondary);
       border-radius: 8px;
       font-weight: 600;
       transition: all 0.2s;
   }
   .logout-link:hover {
       background-color: var(--danger-red);
       color: white;
   }
   .logout-link i {
       margin-right: 15px;
       font-size: 1.2em;
   }
   
   /* --- Header Actions (Points & Notifications) --- */
   .header-actions {
       display: flex;
       align-items: center;
       gap: 20px;
   }
   .points-display-header {
       background-color: var(--bg-card);
       border-radius: 8px;
       padding: 10px 15px;
       text-align: center;
       border: 1px solid var(--border-color);
   }
   .points-display-header .points-value {
       font-size: 1.5em;
       font-weight: 700;
       color: var(--points-yellow);
       display: flex;
       align-items: center;
       justify-content: center;
       gap: 5px;
   }
   
   /* --- Cards --- */
   .card {
       background-color: var(--bg-card);
       border: 1px solid var(--border-color);
       border-radius: 12px;
       padding: 24px;
       margin-bottom: 30px;
   }
   
   /* --- Tables (Metallic Look) --- */
   .card table {
       border-collapse: separate;
       border-spacing: 0;
       width: 100%;
       margin-top: 20px;
       border: 1px solid #444;
       border-radius: 8px;
       overflow: hidden;
   }
   .card th, .card td {
       padding: 14px 18px;
       text-align: left;
       border-bottom: 1px solid #3A3A3C;
   }
   .card th {
       background-color: #2C2C2E;
       font-weight: 600;
       color: var(--text-secondary);
       text-transform: uppercase;
       font-size: 0.9em;
   }
   .card td {
       background-color: #1C1C1E;
   }
   .card tbody tr:last-child td {
       border-bottom: none;
   }
   .card tbody tr:hover td {
       background-color: #252527;
   }
   
   /* --- Status Pills --- */
   .status {
       padding: 4px 10px;
       border-radius: 12px;
       font-size: 0.85em;
       font-weight: 600;
       display: inline-block;
       text-transform: capitalize;
   }
   .status-pending {
       background-color: rgba(251, 191, 36, 0.15);
       color: var(--points-yellow);
   }
   .status-fulfilled {
       background-color: rgba(74, 222, 128, 0.15);
       color: var(--success-green);
   }
   
   /* --- Pagination --- */
   .pagination {
       display: flex;
       justify-content: center;
       align-items: center;
       gap: 8px;
       margin-top: 24px;
       padding-top: 16px;
       border-top: 1px solid var(--border-color);
   }
   .pagination-btn {
       background-color: var(--bg-card);
       color: var(--text-secondary);
       border: 1px solid var(--border-color);
       border-radius: 6px;
       min-width: 40px;
       height: 40px;
       cursor: pointer;
       font-weight: 600;
       transition: all 0.2s;
   }
   .pagination-btn:hover {
       border-color: var(--primary);
       color: var(--text-primary);
   }
   .pagination-btn.active {
       background-color: var(--primary-accent);
       color: var(--bg-main);
       border-color: var(--primary-accent);
   }
   
   /* --- SweetAlert2 Dark Theme --- */
   .swal2-popup {
       background: #1C1D24 !important;
       border: 1px solid var(--border-color) !important;
       border-radius: 12px !important;
   }
   .swal2-title {
       color: var(--text-primary) !important;
   }
   .swal2-html-container, .swal2-content {
       color: var(--text-secondary) !important;
   }
   .swal2-styled.swal2-confirm {
       background-color: var(--primary-accent) !important;
       color: var(--bg-main) !important;
       font-weight: 700 !important;
       border-radius: 6px !important;
   }
   .swal2-styled.swal2-cancel {
       background-color: #4b5563 !important;
       border-radius: 6px !important;
   }
   
   /* =================================================================
      5. Page-Specific Styles
      ================================================================= */
   
   /* --- Login Page --- */
   .login-page-wrapper {
       width: 100%;
       min-height: 100vh;
       display: flex;
       justify-content: center;
       align-items: center;
       text-align: center;
       padding: 20px;
       box-sizing: border-box;
   }
   .login-container {
       background-color: var(--bg-card);
       padding: 40px 50px;
       border-radius: 12px;
       border: 1px solid var(--border-color);
       backdrop-filter: blur(10px);
       max-width: 450px;
   }
   .login-container p {
       margin-bottom: 30px;
       font-size: 1.1em;
   }
   .login-button {
       display: inline-flex;
       align-items: center;
       justify-content: center;
       padding: 12px 24px;
       border-radius: 8px;
       background-color: var(--primary-accent);
       color: var(--bg-main);
       font-size: 1em;
       font-weight: 600;
       border: none;
       cursor: pointer;
       transition: all 0.2s;
       width: 100%;
       box-sizing: border-box;
   }
   .login-button:hover {
       opacity: 0.9;
       transform: translateY(-2px);
   }
   .login-button img {
       width: 20px;
       height: 20px;
       margin-right: 12px;
   }
   
   /* --- Offer List (Dashboard) --- */
   .offer-list .offer-card {
       background-color: var(--bg-card);
       border: 1px solid var(--border-color);
       border-radius: 8px;
       padding: 16px;
       display: flex;
       align-items: center;
       color: var(--text-secondary);
       margin-bottom: 16px;
       transition: border-color 0.2s;
   }
   .offer-list .offer-card:hover {
       border-color: var(--primary);
   }
   .offer-list .offer-icon {
       width: 48px;
       height: 48px;
       border-radius: 8px;
       margin-right: 16px; /* For RTL */
   }
   .offer-details {
       flex-grow: 1;
   }
   .offer-points {
       font-weight: 700;
       color: var(--points-yellow);
       display: flex;
       align-items: center;
       gap: 8px;
   }
   
   /* --- Rewards Page --- */
   .rewards-grid {
       display: grid;
       grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
       gap: 24px;
   }
   .reward-card {
       background: var(--bg-card);
       border-radius: 12px;
       overflow: hidden;
       display: flex;
       flex-direction: column;
       border: 1px solid var(--border-color);
       transition: transform 0.2s, box-shadow 0.2s;
   }
   .reward-card:hover {
       transform: translateY(-5px);
       box-shadow: 0 10px 20px rgba(0,0,0,0.2);
   }
   .reward-card.disabled {
       opacity: 0.6;
       cursor: not-allowed;
   }
   .reward-image {
       width: 100%;
       height: 160px;
       object-fit: cover;
       background-color: #333;
   }
   .reward-info {
       padding: 16px;
       flex-grow: 1;
   }
   .reward-footer {
       display: flex;
       justify-content: space-between;
       align-items: center;
       padding: 16px;
       border-top: 1px solid var(--border-color);
   }
   .reward-cost {
       font-size: 1.2em;
       font-weight: 700;
       color: var(--points-yellow);
       display: flex;
       align-items: center;
       gap: 8px;
   }
   .redeem-btn {
       background-color: var(--primary);
       color: white;
       font-weight: 600;
       border: none;
       padding: 8px 16px;
       border-radius: 6px;
       cursor: pointer;
       transition: background-color 0.2s;
   }
   .redeem-btn:hover:enabled {
       background-color: #6a35b1;
   }
   .redeem-btn:disabled {
       background-color: #444;
       cursor: not-allowed;
   }
   
   /* --- My Requests Page --- */
   .serial-wrapper {
       display: flex;
       align-items: center;
       justify-content: space-between;
       gap: 10px;
   }
   .copy-btn {
       background: var(--border-color);
       color: var(--text-secondary);
       border: none;
       border-radius: 6px;
       width: 32px;
       height: 32px;
       cursor: pointer;
       display: inline-flex;
       align-items: center;
       justify-content: center;
       transition: background-color 0.2s;
   }
   .copy-btn:hover {
       background-color: var(--primary);
       color: white;
   }
   .copy-btn .bi-clipboard-check-fill {
       color: var(--success-green);
   }
   
   /* --- Admin: Overview Cards --- */
   .overview-grid {
       display: grid;
       grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
       gap: 24px;
   }
   .overview-card {
       background: #1C1C1E;
       padding: 24px;
       border-radius: 12px;
       border: 1px solid var(--border-color);
   }
   .overview-title {
       font-size: 1rem;
       color: var(--text-secondary);
       margin-bottom: 8px;
   }
   .overview-value {
       font-size: 2.5rem;
       font-weight: 700;
       color: var(--text-primary);
       font-family: 'Inter', sans-serif;
   }
   
   /* --- Admin: Forms --- */
   .admin-form {
       display: flex;
       flex-direction: column;
       gap: 16px;
   }
   .form-group {
       display: flex;
       flex-direction: column;
   }
   .form-group label {
       margin-bottom: 8px;
       font-weight: 500;
       font-size: 0.9em;
   }
   .form-group input,
   .form-group textarea {
       background-color: #2C2C2E;
       color: var(--text-primary);
       border: 1px solid #444;
       border-radius: 6px;
       padding: 12px;
       font-size: 1em;
       font-family: 'Inter', sans-serif;
       transition: border-color 0.2s, box-shadow 0.2s;
   }
   .form-group input:focus,
   .form-group textarea:focus {
       outline: none;
       border-color: var(--primary);
       box-shadow: 0 0 0 3px rgba(122, 63, 157, 0.3);
   }
   .submit-button {
       background-color: var(--primary);
       color: white;
       border: none;
       padding: 12px;
       border-radius: 6px;
       cursor: pointer;
       font-size: 1.1em;
       font-weight: 600;
       margin-top: 10px;
       transition: background-color 0.2s;
   }
   .submit-button:hover {
       background-color: #6a35b1;
   }
   
   /* --- Admin: Fulfill Request Form --- */
   .fulfill-form {
       display: flex;
       gap: 8px;
       align-items: center;
   }
   .fulfill-form input {
       flex-grow: 1;
       background-color: #2C2C2E;
       color: var(--text-primary);
       border: 1px solid #444;
       border-radius: 6px;
       padding: 8px;
       font-size: 0.9em;
   }
   .fulfill-form button {
       background-color: var(--success-green);
       color: var(--bg-main);
       padding: 8px 12px;
       font-size: 0.9em;
       font-weight: 600;
       border: none;
       border-radius: 6px;
       cursor: pointer;
       transition: background-color 0.2s;
   }
   .fulfill-form button:hover {
       background-color: #3ac670;
   }
   .delete-btn {
       background-color: var(--danger-red);
       color: white;
       border: none;
       padding: 6px 12px;
       border-radius: 5px;
       cursor: pointer;
       font-size: 0.9em;
   }
   
   /* =================================================================
      6. Notifications System
      ================================================================= */
   .notifications-container {
       position: relative;
   }
   #notifications-btn {
       position: relative;
       background: none;
       border: none;
       color: var(--text-secondary);
       font-size: 1.5em;
       cursor: pointer;
       padding: 5px;
       display: flex;
       align-items: center;
       justify-content: center;
   }
   #notifications-btn:hover {
       color: var(--text-primary);
   }
   .notification-dot {
       width: 8px;
       height: 8px;
       background-color: var(--danger-red);
       border-radius: 50%;
       position: absolute;
       top: 5px;
       right: 5px;
       border: 2px solid var(--bg-card);
       display: none; /* Hidden by default */
   }
   .notifications-dropdown {
       display: none; /* Hidden by default */
       position: absolute;
       top: 130%;
       right: 0;
       width: 300px;
       background-color: var(--bg-card);
       border: 1px solid var(--border-color);
       border-radius: 12px;
       box-shadow: 0 5px 25px rgba(0,0,0,0.5);
       padding: 15px;
       z-index: 100;
       text-align: center;
   }
   .notifications-dropdown a.notification-link {
       color: var(--text-primary);
       display: block;
       padding: 10px;
       border-radius: 6px;
       transition: background-color 0.2s;
   }
   .notifications-dropdown a.notification-link:hover {
       background-color: #252834;
   }
   
   /* =================================================================
      7. Responsive Design
      ================================================================= */
   .mobile-nav {
       display: none; /* Hidden on desktop */
   }
   
   @media (max-width: 768px) {
       .sidebar {
           display: none;
       }
       .main-content {
           margin-left: 0;
           padding: 15px;
           padding-bottom: 80px; /* Space for mobile nav */
       }
       .mobile-nav {
           display: flex;
           position: fixed;
           bottom: 0;
           left: 0;
           right: 0;
           background-color: var(--bg-card);
           border-top: 1px solid var(--border-color);
           justify-content: space-around;
           padding: 8px 0;
           backdrop-filter: blur(10px);
           z-index: 1000;
       }
       .mobile-nav a {
           color: var(--text-secondary);
           display: flex;
           flex-direction: column;
           align-items: center;
           font-size: 0.75em;
           flex-grow: 1;
           padding: 5px;
       }
       .mobile-nav a.active {
           color: var(--primary-accent);
       }
       .mobile-nav a i {
           margin: 0 0 5px 0;
           font-size: 1.6em;
       }
   }
   
   /* =================================================================
      8. Animations & Effects
      ================================================================= */
   #particles-js {
       position: fixed;
       width: 100%;
       height: 100%;
       top: 0;
       left: 0;
       z-index: -1; /* Behind everything */
   }
   /* =================================================================
   Add these new rules to the END of your existing style.css file
   ================================================================= */

/* --- Mobile Header User Info --- */
.mobile-header-user {
    display: none; /* Hidden by default on desktop */
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: var(--text-primary);
}

.mobile-header-user .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #333;
    border: 2px solid var(--primary);
}


/* --- Responsive Design Adjustments --- */
@media (max-width: 768px) {
    /* Hide the large "Welcome back" message on mobile */
    .main-header h1 {
        display: none;
    }

    /* Hide the desktop points display and show the mobile user info instead */
    .main-header .points-display-header {
        display: none;
    }

    .main-header .mobile-header-user {
        display: flex; /* Show the mobile user info */
    }

    /* Ensure the header content is spaced out correctly on mobile */
    .main-header {
        justify-content: space-between;
    }
}
/* --- Header Actions Layout --- */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto; /* Pushes the group to the right on desktop */
}

.mobile-header-user {
    display: none; /* Hidden on desktop by default */
}

/* --- Responsive Design for Header --- */
@media (max-width: 768px) {
    /* Hide the large "Welcome back" message on mobile */
    .main-header h1 {
        display: none;
    }
    
    /* Make the header actions container span the full width and space out its items */
    .header-actions {
        width: 100%;
        justify-content: space-between;
        margin-left: 0;
    }

    /* Hide the desktop points display */
    .points-display-header {
        display: none;
    }

    /* Show and style the mobile user info */
    .mobile-header-user {
        display: flex;
        align-items: center;
        gap: 12px;
        font-weight: 600;
        color: var(--text-primary);
    }

    .mobile-header-user .avatar {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background-color: #333;
        border: 2px solid var(--primary);
    }
}
/* =================================================================
   Add these new rules to the END of your existing style.css file
   ================================================================= */

/* --- Main Header Layout (FIX) --- */
/* This rule ensures the welcome message and the actions group are spaced apart. */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- Header Actions Layout --- */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    /* margin-left: auto; is no longer needed but kept for safety. */
}

.mobile-header-user {
    display: none; /* Hidden on desktop by default */
}

/* --- Responsive Design for Header --- */
@media (max-width: 768px) {
    /* Hide the large "Welcome back" message on mobile */
    .main-header h1 {
        display: none;
    }
    
    /* Make the header actions container span the full width and space out its items */
    .header-actions {
        width: 100%;
        justify-content: space-between;
    }

    /* Hide the desktop points display */
    .points-display-header {
        display: none;
    }

    /* Show and style the mobile user info */
    .mobile-header-user {
        display: flex;
        align-items: center;
        gap: 12px;
        font-weight: 600;
        color: var(--text-primary);
    }

    .mobile-header-user .avatar {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background-color: #333;
        border: 2px solid var(--primary);
    }
}
/* --- Main Header Layout (FIX) --- */
/* This rule ensures the title and the actions group are spaced apart. */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

/* --- NEW: Page Title in Header --- */
.page-title-header {
    font-size: 1.8em;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

/* --- Header Actions Layout --- */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* --- Remove old sidebar header rules if they exist --- */
.sidebar-header {
    margin-bottom: 0; /* No longer needed */
}
.sidebar .page-title {
    display: none; /* Hide the old title in the sidebar */
}
.sidebar .logo {
    text-align: center; /* Center the logo in the sidebar */
    margin-bottom: 30px;
}
/* =================================================================
   New Styles for Admin Rewards Management
   ================================================================= */

   .admin-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr auto;
    gap: 16px;
    align-items: center;
}

.reward-management-card {
    margin-top: 20px;
}

.reward-manage-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.reward-manage-header img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
}

.reward-manage-header h3 {
    flex-grow: 1;
    margin: 0;
}

.admin-actions {
    display: flex;
    gap: 8px;
}

.btn-icon {
    background: #333;
    color: #eee;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.btn-icon:hover {
    background: var(--primary);
}

.btn-icon.btn-delete-reward:hover,
.btn-icon.btn-delete-pack:hover {
    background: var(--danger-red);
}

.packs-list-admin {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.pack-item-admin {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #222;
    padding: 10px 16px;
    border-radius: 6px;
    margin-bottom: 8px;
}

.submit-button-small {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s;
}
.submit-button-small:hover {
    background-color: var(--primary-hover);
}
/* =================================================================
   Add or replace these rules in your style.css file.
   ================================================================= */

/* --- Avatar Image Fix --- */
/* This ensures the image inside the avatar container is always a perfect circle */
.avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover; /* This is key to prevent stretching */
}

/* --- Main Header Layout --- */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.page-title-header {
    font-size: 1.8em;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Hide mobile-specific elements on desktop */
.mobile-header-user {
    display: none;
}

/* --- Responsive Table for "My Requests" --- */
@media (max-width: 768px) {
    .responsive-table {
        border: none;
        box-shadow: none;
        background: transparent;
    }
    .responsive-table thead {
        display: none; /* Hide table headers on mobile */
    }
    .responsive-table tr {
        display: block;
        margin-bottom: 16px;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        background-color: var(--bg-card);
        padding: 8px;
    }
    .responsive-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 8px;
        text-align: right;
        border-bottom: 1px solid var(--border-color);
    }
    .responsive-table tr td:last-child {
        border-bottom: none;
    }
    .responsive-table td::before {
        content: attr(data-label);
        float: left;
        font-weight: bold;
        color: var(--text-secondary);
        text-transform: uppercase;
        font-size: 0.9em;
    }
    .redeem-code-cell {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .redeem-code-cell .serial-wrapper {
        width: 100%;
        justify-content: flex-end;
    }
    .redeem-code-cell .serial-wrapper span {
        word-break: break-all;
        text-align: right;
    }
}

/* --- Responsive Header for Mobile --- */
@media (max-width: 768px) {
    /* Hide desktop-specific elements */
    .page-title-header,
    .points-display-header {
        display: none;
    }

    .main-header { width: 100%; }
    .header-actions {
        width: 100%;
        justify-content: space-between;
    }

    /* Show and style the mobile avatar on the left */
    .mobile-header-user {
        display: flex;
        order: -1; /* Moves it to the start (left) */
    }
    .mobile-header-user .avatar {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background-color: #333;
        border: 2px solid var(--primary);
    }
}
/* =================================================================
   Add these new rules to the END of your existing style.css file
   ================================================================= */

/* --- Request Status Highlighting --- */
/* This adds a colored left border to indicate the status of the request.
   It works for both desktop (table row) and mobile (card) views. */

   .responsive-table tr.request-status-pending {
    border-left: 4px solid var(--points-yellow);
}

.responsive-table tr.request-status-fulfilled {
    border-left: 4px solid var(--success-green);
}

/* Optional: Add a subtle background color on mobile for a stronger effect */
@media (max-width: 768px) {
    .responsive-table tr.request-status-pending {
        background-color: rgba(251, 191, 36, 0.05);
    }
    .responsive-table tr.request-status-fulfilled {
        background-color: rgba(74, 222, 128, 0.05);
    }
}
.responsive-table tr.request-status-pending {
    border-left: 4px solid var(--points-yellow);
    background-color: rgba(251, 191, 36, 0.08);
}

.responsive-table tr.request-status-fulfilled {
    border-left: 4px solid var(--success-green);
    background-color: rgba(74, 222, 128, 0.08);
}

/* This is the key fix: make the table cells transparent on highlighted rows
   so the row's background color is visible on desktop. */
.responsive-table tr.request-status-pending td,
.responsive-table tr.request-status-fulfilled td {
    background-color: transparent;
}

/* On mobile, this enhances the border of the entire card */
@media (max-width: 768px) {
    .responsive-table tr.request-status-pending {
        border-color: var(--points-yellow);
        border-left-width: 4px; /* Ensure the left border remains thick */
    }
    .responsive-table tr.request-status-fulfilled {
        border-color: var(--success-green);
        border-left-width: 4px;
    }
}
.responsive-table tr.request-status-pending {
    border-left: 4px solid var(--points-yellow);
    background-color: rgba(251, 191, 36, 0.08);
}

.responsive-table tr.request-status-fulfilled {
    border-left: 4px solid var(--success-green);
    background-color: rgba(74, 222, 128, 0.08);
}

/* This is the key fix: make the table cells transparent on highlighted rows
   so the row's background color is visible on desktop. */
.responsive-table tr.request-status-pending td,
.responsive-table tr.request-status-fulfilled td {
    background-color: transparent;
}

/* *** NEW FIX ***
   This prevents the default hover effect on rows that already have a status color,
   ensuring they keep their color when the mouse is over them. */
.responsive-table tr.request-status-pending:hover td,
.responsive-table tr.request-status-fulfilled:hover td {
    background-color: transparent;
}

/* On mobile, this enhances the border of the entire card */
@media (max-width: 768px) {
    .responsive-table tr.request-status-pending {
        border-color: var(--points-yellow);
        border-left-width: 4px; /* Ensure the left border remains thick */
    }
    .responsive-table tr.request-status-fulfilled {
        border-color: var(--success-green);
        border-left-width: 4px;
    }
}
/* =================================================================
   Add these new rules to the END of your existing style.css file
   ================================================================= */

/* --- Request Status Highlighting --- */
/* This adds a colored left border AND a subtle background to indicate the status.
   It now works for both desktop (table row) and mobile (card) views. */

.responsive-table tr.request-status-pending {
    border-left: 4px solid var(--points-yellow);
    background-color: rgba(251, 191, 36, 0.08);
}

.responsive-table tr.request-status-fulfilled {
    border-left: 4px solid var(--success-green);
    background-color: rgba(74, 222, 128, 0.08);
}

/* This is the key fix: make the table cells transparent on highlighted rows
   so the row's background color is visible on desktop. */
.responsive-table tr.request-status-pending td,
.responsive-table tr.request-status-fulfilled td {
    background-color: transparent;
}

/* *** NEW FIX ***
   This prevents the default hover effect on rows that already have a status color,
   ensuring they keep their color when the mouse is over them. */
.responsive-table tr.request-status-pending:hover td,
.responsive-table tr.request-status-fulfilled:hover td {
    background-color: transparent;
}

/* On mobile, this enhances the border of the entire card */
@media (max-width: 768px) {
    .responsive-table tr.request-status-pending {
        border-color: var(--points-yellow);
        border-left-width: 4px; /* Ensure the left border remains thick */
    }
    .responsive-table tr.request-status-fulfilled {
        border-color: var(--success-green);
        border-left-width: 4px;
    }
}

/* --- NEW: Eye-Catching Redeem Code Styling --- */
.redeem-code-cell .serial-wrapper {
    background-color: var(--bg-main);
    border: 1px dashed var(--primary);
    padding: 8px 12px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    /* Add a subtle glow to make it pop */
    box-shadow: 0 0 8px rgba(0, 163, 255, 0.3);
}

.redeem-code-cell .serial-wrapper span {
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    color: var(--primary);
    font-size: 1.1em;
    letter-spacing: 1px;
}

/* Make the copy button blend in better */
.redeem-code-cell .copy-btn {
    background: transparent;
    color: var(--text-secondary);
    border: none;
}

.redeem-code-cell .copy-btn:hover {
    color: var(--primary);
    background: rgba(0, 163, 255, 0.1);
}
/* Add these styles to the end of your style.css file */
.avatar-container { position: relative; display: inline-block; }
.level-badge {
    position: absolute;
    bottom: 0;
    right: -5px;
    background: linear-gradient(45deg, #ffc107, #ff9800);
    color: #000;
    font-size: 0.8em;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 12px;
    border: 2px solid var(--bg-main);
    z-index: 2;
}
.progress-bar-container { margin-bottom: 24px; }
.progress-bar-info { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 0.9em; }
.progress-bar { width: 100%; background: #333; border-radius: 8px; height: 12px; overflow: hidden; }
.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffc107, #ffeb3b);
    border-radius: 8px;
    transition: width 0.5s ease;
}
.user-profile-link { text-decoration: none; display: block; }

/* Styles for the new Profile Page */
.profile-header-card {
    display: flex;
    align-items: center;
    gap: 20px;
}
.avatar.large {
    width: 100px;
    height: 100px;
    border-width: 4px;
}
.profile-main-info h2 {
    margin: 0 0 10px 0;
    font-size: 2em;
}
.level-badge-large {
    display: inline-block;
    background: linear-gradient(45deg, #ffc107, #ff9800);
    color: #000;
    font-size: 1em;
    font-weight: bold;
    padding: 5px 15px;
    border-radius: 20px;
}
.referral-box {
    background-color: var(--bg-main);
    border: 1px dashed var(--primary);
    padding: 15px;
    border-radius: 8px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.5em;
    font-weight: bold;
    color: var(--primary);
    text-align: center;
    cursor: pointer;
    margin-top: 10px;
}
.stats-list {
    list-style: none;
    padding: 0;
}
.stats-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}
.stats-list li:last-child {
    border-bottom: none;
}
/* Add these styles to the end of your style.css file */
.avatar-container { position: relative; display: inline-block; }
.level-badge {
    position: absolute;
    bottom: 0;
    right: -5px;
    background: linear-gradient(45deg, #ffc107, #ff9800);
    color: #000;
    font-size: 0.8em;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 12px;
    border: 2px solid var(--bg-main);
    z-index: 2;
}
.progress-bar-container { margin-bottom: 24px; }
.progress-bar-info { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 0.9em; }
.progress-bar { width: 100%; background: #333; border-radius: 8px; height: 12px; overflow: hidden; }
.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffc107, #ffeb3b);
    border-radius: 8px;
    transition: width 0.5s ease;
}
.user-profile-link { text-decoration: none; display: block; }

/* Styles for the new Profile Page */
.profile-header-card {
    display: flex;
    align-items: center;
    gap: 20px;
}
.avatar.large {
    width: 100px;
    height: 100px;
    border-width: 4px;
}
.profile-main-info h2 {
    margin: 0 0 10px 0;
    font-size: 2em;
}
.level-badge-large {
    display: inline-block;
    background: linear-gradient(45deg, #ffc107, #ff9800);
    color: #000;
    font-size: 1em;
    font-weight: bold;
    padding: 5px 15px;
    border-radius: 20px;
}
.referral-box {
    background-color: var(--bg-main);
    border: 1px dashed var(--primary);
    padding: 15px;
    border-radius: 8px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.5em;
    font-weight: bold;
    color: var(--primary);
    text-align: center;
    cursor: pointer;
    margin-top: 10px;
}
.stats-list {
    list-style: none;
    padding: 0;
}
.stats-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}
.stats-list li:last-child {
    border-bottom: none;
}
.avatar-container { position: relative; display: inline-block; }
.level-badge {
    position: absolute;
    bottom: 0;
    right: -5px;
    background: linear-gradient(45deg, #ffc107, #ff9800);
    color: #000;
    font-size: 0.8em;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 12px;
    border: 2px solid var(--bg-card);
    z-index: 2;
}
.progress-bar-container { margin-bottom: 24px; }
.progress-bar-info { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 0.9em; }
.progress-bar { width: 100%; background: #333; border-radius: 8px; height: 12px; overflow: hidden; }
.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffc107, #ffeb3b);
    border-radius: 8px;
    transition: width 0.5s ease;
}
.user-profile-link { text-decoration: none; display: block; }

/* Styles for the new Profile Page */
.profile-header-card {
    display: flex;
    align-items: center;
    gap: 20px;
}
.avatar.large {
    width: 100px;
    height: 100px;
    border-width: 4px;
}
.profile-main-info h2 {
    margin: 0 0 10px 0;
    font-size: 2em;
}
.level-badge-large {
    display: inline-block;
    background: linear-gradient(45deg, #ffc107, #ff9800);
    color: #000;
    font-size: 1em;
    font-weight: bold;
    padding: 5px 15px;
    border-radius: 20px;
}
.referral-box {
    background-color: var(--bg-main);
    border: 1px dashed var(--primary);
    padding: 15px;
    border-radius: 8px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.5em;
    font-weight: bold;
    color: var(--primary);
    text-align: center;
    cursor: pointer;
    margin-top: 10px;
}
.stats-list {
    list-style: none;
    padding: 0;
}
.stats-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}
.stats-list li:last-child {
    border-bottom: none;
}
/* =================================================================
   Styles for Gamification & New Profile Page
   ================================================================= */

/* --- Container for the avatar and level badge --- */
.avatar-container {
    position: relative;
    display: inline-block;
}

/* --- Level Badge on Sidebar --- */
.level-badge {
    position: absolute;
    bottom: 0;
    right: -5px;
    background: linear-gradient(45deg, #ffc107, #ff9800);
    color: #000;
    font-size: 0.8em;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 12px;
    border: 2px solid var(--bg-card); /* Use the sidebar background color for the border */
    z-index: 2;
}

/* --- XP Progress Bar on Dashboard --- */
.progress-bar-container {
    margin-bottom: 24px;
}
.progress-bar-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9em;
    padding: 0 4px;
}
.progress-bar {
    width: 100%;
    background: #333;
    border-radius: 8px;
    height: 12px;
    overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffc107, #ffeb3b);
    border-radius: 8px;
    transition: width 0.5s ease;
}

/* --- Makes the entire user profile in the sidebar clickable --- */
.user-profile-link {
    text-decoration: none;
    display: block;
    border-radius: 8px;
    transition: background-color 0.2s;
}
.user-profile-link:hover {
    background-color: rgba(255, 255, 255, 0.05);
}


/* --- Styles for the new Profile Page --- */
.profile-header-card {
    display: flex;
    align-items: center;
    gap: 20px;
}
.avatar.large {
    width: 100px;
    height: 100px;
    border-width: 4px;
    font-size: 3em;
}
.profile-main-info h2 {
    margin: 0 0 10px 0;
    font-size: 2em;
}
.level-badge-large {
    display: inline-block;
    background: linear-gradient(45deg, #ffc107, #ff9800);
    color: #000;
    font-size: 1em;
    font-weight: bold;
    padding: 5px 15px;
    border-radius: 20px;
}

/* --- Referral Code Box --- */
.referral-box {
    background-color: var(--bg-main);
    border: 1px dashed var(--primary);
    padding: 15px;
    border-radius: 8px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.5em;
    font-weight: bold;
    color: var(--primary);
    text-align: center;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.2s, border-color 0.2s;
}
.referral-box:hover {
    background-color: rgba(0, 163, 255, 0.1);
    border-color: rgba(0, 163, 255, 0.5);
}

/* --- Statistics List --- */
.stats-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.stats-list li {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}
.stats-list li:last-child {
    border-bottom: none;
}
.stats-list li span {
    color: var(--text-secondary);
}
.stats-list li strong {
    color: var(--text-primary);
}

/* --- Referred Users List --- */
.referral-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: var(--bg-main);
    padding: 8px;
    border-radius: 8px;
    margin-bottom: 8px;
    border: 1px solid var(--border-color);
}
.referral-item .avatar.small {
    width: 32px;
    height: 32px;
    border-width: 1px;
    font-size: 1em;
}
.referral-item span {
    flex-grow: 1;
    font-weight: 500;
    color: var(--text-primary);
}
.referral-item .level-badge.small {
    font-size: 0.7em;
    padding: 2px 6px;
    border-width: 1px;
}
/* =================================================================
   FIX for Mobile Header Layout
   Add this to the END of your style.css file
   ================================================================= */

   @media (max-width: 768px) {
    .main-header {
        display: flex;
        justify-content: space-between; /* This is the key change */
        align-items: center;
        width: 100%;
    }

    .main-header .page-title-header,
    .main-header .points-display-header {
        display: none; /* Hide desktop elements */
    }

    .main-header .mobile-header-user {
        display: flex; /* Show mobile avatar */
    }

    .main-header .header-actions {
        width: auto; /* Allow it to shrink to its content size */
    }
}
/* Stop the name from expanding and pushing the badge away */
.referral-item span {
    flex-grow: 0;
}

/* Make the badge a normal element in the flex flow, not absolute */
.level-badge.small {
    position: static;
    /* Add some space between the name and the badge */
    margin-left: 8px;
}
/* =================================================================
   Mobile-Only Logout Button
   Add this to the END of your style.css file
   ================================================================= */

   .mobile-logout-card {
    display: none; /* Hidden by default on desktop */
    background: var(--danger-red) !important;
    border-color: var(--danger-red) !important;
    padding: 0 !important;
    margin-top: 20px;
    transition: background-color 0.2s;
}

.mobile-logout-card:hover {
    background: #c13a3a !important;
}

.mobile-logout-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    color: white;
    font-weight: 600;
    text-decoration: none;
    gap: 10px;
    font-size: 1.1em;
}

.mobile-logout-link i {
    font-size: 1.2em;
}

@media (max-width: 768px) {
    .mobile-logout-card {
        display: block; /* Visible only on mobile */
    }
}
/* This targets the form for adding a new reward category */
#add-reward-form.admin-form-grid {
    display: grid;
    gap: 16px;
    /* On mobile, stack everything */
    grid-template-columns: 1fr;
}

/* On larger screens, use a multi-column layout */
@media (min-width: 992px) {
    #add-reward-form.admin-form-grid {
        grid-template-columns: 1fr 1fr 2fr auto;
        align-items: end; /* Aligns inputs and button nicely on the same baseline */
    }
}

/* Ensure the textarea has a reasonable height */
#add-reward-form.admin-form-grid textarea {
    min-height: 42px; /* Match the input height */
    resize: vertical;
}
#add-reward-form.admin-form-grid {
    display: flex;
    flex-direction: column; /* Stack form elements vertically */
    gap: 15px; /* Add space between form elements */
}

/* Ensure inputs and textareas take up the full width */
#add-reward-form.admin-form-grid input,
#add-reward-form.admin-form-grid textarea {
    width: 100%;
    box-sizing: border-box; /* Important for consistent sizing */
}

/* Align the submit button to the right */
#add-reward-form.admin-form-grid button[type="submit"] {
    align-self: flex-end;
    width: auto;
    padding-left: 30px;
    padding-right: 30px;
}

/* This targets the form for adding a new pack */
.add-pack-form.admin-form-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: 2fr 1fr auto; /* Give more space to the name input */
    align-items: center;
}
/* Container for the form fields */
.admin-form-container {
    display: grid;
    /* Create two columns of equal size */
    grid-template-columns: repeat(2, 1fr);
    /* Define gap between rows and columns */
    gap: 20px 25px;
}

/* General styling for each form group (label + input) */
.admin-form-container .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px; /* Space between label and input */
}

/* Make a form group span the full width of the grid */
.admin-form-container .form-group.full-width {
    grid-column: 1 / -1; /* Span from the first to the last column */
}

/* Container for the submit button */
.admin-form-container .form-actions {
    grid-column: 1 / -1; /* Span full width */
    display: flex;
    justify-content: flex-end; /* Align button to the right */
    margin-top: 10px;
}

/* Remove the old, problematic rule */
#add-reward-form.admin-form-grid {
    display: block; /* Reset display property */
}

/* Styling for the "Add Pack" form to keep it inline */
.add-pack-form.admin-form-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: 2fr 1fr auto; /* Layout: Name | Cost | Button */
    align-items: center;
}
/* =================================================================
   FINAL FIX for Mobile Header Layout
   Add this to the END of your style.css file.
   ================================================================= */

/* --- Default Header Layout (Desktop) --- */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}
.header-actions-right {
    display: flex;
    align-items: center;
    gap: 20px;
}
.mobile-header-user, .points-display-mobile {
    display: none; /* Hidden on desktop */
}

/* --- Mobile Header Layout --- */
@media (max-width: 768px) {
    .main-header .header-actions {
        width: 100%;
        justify-content: space-between;
    }
    .page-title-header,
    .points-display-header {
        display: none; /* Hide desktop elements */
    }
    .mobile-header-user, .points-display-mobile {
        display: flex;
        align-items: center;
    }
    .points-display-mobile {
        color: var(--points-yellow);
        font-weight: 600;
        gap: 5px;
    }
    .header-actions-right {
        gap: 15px; /* Reduce gap on mobile */
    }
    .mobile-header-user .avatar {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background-color: #333;
        border: 2px solid var(--primary);
        font-size: 1.5em;
    }
    .avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
    }
}
/* =================================================================
   Colorful Admin Stats Cards
   Add this to the END of your style.css file
   ================================================================= */

   .overview-card {
    background: #1C1C1E;
    padding: 24px;
    border-radius: 12px;
    border: none; /* Remove default border */
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    transition: transform 0.2s ease-in-out;
}

.overview-card:hover {
    transform: translateY(-5px);
}

.overview-title {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 8px;
    font-weight: 600;
    text-transform: uppercase;
}

.overview-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    line-height: 1.1;
}

/* Color Styles */
.overview-card.color-yellow {
    background: linear-gradient(45deg, #F59E0B, #FBBF24);
}
.overview-card.color-purple {
    background: linear-gradient(45deg, #6D28D9, #8B5CF6);
}
.overview-card.color-green {
    background: linear-gradient(45deg, #059669, #34D399);
}
.overview-card.color-dark {
    background: #1f2937; /* A slightly lighter dark */
}
.overview-card.color-red {
    background: linear-gradient(45deg, #EC4899, #F472B6);
}
/* =================================================================
   Admin Responsive & Table Features CSS
   Add this to the END of your style.css file
   ================================================================= */

/* --- Sortable Table Headers --- */
th.sortable {
    cursor: pointer;
    transition: color 0.2s;
}
th.sortable:hover {
    color: var(--text-primary);
}
th.sortable i {
    margin-left: 8px;
    color: var(--text-secondary);
    font-size: 0.8em;
}
th.sortable.asc i, th.sortable.desc i {
    color: var(--primary);
}


/* --- Responsive Admin Pages --- */
@media (max-width: 768px) {
    /* Hide desktop sidebar on mobile */
    #admin-sidebar-container {
        display: none;
    }

    /* Show admin mobile nav */
    #admin-mobile-nav-container {
        display: flex;
    }

    /* Make main content full width */
    .main-content {
        margin-left: 0;
        padding-bottom: 80px; /* Space for mobile nav */
    }

    /* Make admin overview cards stack vertically */
    .overview-grid {
        grid-template-columns: 1fr;
    }
}
/* This makes the main profile card flexible on mobile */
.profile-header-card {
    display: flex;
    align-items: center;
    gap: 20px;
    /* On mobile, stack the items vertically */
    flex-direction: column;
    text-align: center;
}

/* On larger screens (tablets and desktops), display them side-by-side */
@media (min-width: 576px) {
    .profile-header-card {
        flex-direction: row;
        text-align: left;
    }
}

/* This prevents the user's name from being too large on small screens */
.profile-main-info h2 {
    margin: 0 0 10px 0;
    font-size: 1.8em; /* Slightly smaller font size for the name */
    word-break: break-all; /* Prevents long names from overflowing */
}

/* This ensures the referral link box doesn't cause overflow */
.referral-box {
    background-color: var(--bg-main);
    border: 1px dashed var(--primary);
    padding: 15px;
    border-radius: 8px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.1em; /* Make font smaller on mobile to fit */
    font-weight: bold;
    color: var(--primary);
    text-align: center;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.2s, border-color 0.2s;
    word-wrap: break-word; /* This is the key fix to wrap long links */
}

.referral-box:hover {
    background-color: rgba(0, 163, 255, 0.1);
    border-color: rgba(0, 163, 255, 0.5);
}
/* This targets the main body element */
body {
    font-family: 'Cairo', sans-serif;
    margin: 0;
    background-color: var(--bg-main);
    color: var(--text-secondary);
    /* FIX: This prevents the "bounce" effect on iOS and some Android browsers */
    overscroll-behavior-y: contain;
}

/* This ensures the main wrapper takes up at least the full height of the screen */
.page-wrapper {
    display: flex;
    width: 100%;
    position: relative;
    z-index: 2;
    min-height: 100vh; /* This is the key change */
    box-sizing: border-box; /* Ensures padding is included in the height calculation */
}
/* =================================================================
   SweetAlert2 Custom Select & Stability Fix
   Add these rules to the END of your style.css file
   ================================================================= */

/* This styles the dropdown menu to match your website's theme */
.swal2-select {
    background-color: #2C2C2E !important; /* Dark background */
    color: var(--text-primary) !important; /* Light text */
    border: 1px solid #444 !important;
    border-radius: 6px !important;
    padding: 12px !important;
    font-size: 1em !important;
    width: 100% !important; /* Ensure it takes full width */
    box-sizing: border-box !important;
}

/* This styles the options inside the dropdown */
.swal2-select option {
    background: #2C2C2E !important;
    color: var(--text-primary) !important;
}

/* This prevents the main page from scrolling when the popup is open */
body.swal2-shown {
    overflow: hidden !important;
}


