/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tajawal', 'Cairo', sans-serif;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    direction: rtl;
}

body {
    background: linear-gradient(135deg, #0A2A4F 0%, #1a4a8a 50%, #0A2A4F 100%);
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    font-family: 'Tajawal', 'Cairo', sans-serif;
    color: white;
    min-height: 100vh;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* ===== ENHANCED NAVIGATION BAR ===== */
.navbar {
    z-index: 9999 !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100vw;
    height: 80px;
    background: linear-gradient(135deg, rgba(10, 42, 79, 0.95) 0%, rgba(15, 47, 84, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    box-sizing: border-box;
    transition: all 0.3s ease;
}

/* Logo Section */
.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo-container:hover {
    transform: scale(1.05);
}

.logo-container img {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    border: 2px solid rgba(255, 215, 0, 0.6);
    transition: all 0.3s ease;
    object-fit: cover;
    display: block;
    background: transparent;
}

.logo-container:hover img {
    border-color: #FFD700;
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

.logo-text {
    color: white;
    font-size: 1.1em;
    font-weight: 700;
    margin-right: 10px;
    white-space: nowrap;
}

/* Main Navigation Menu */
.nav-menu {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
    margin: 0 20px;
    gap: 10px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-links > li {
    position: relative;
}

.nav-links > li > a {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 0.9em;
    position: relative;
    border: 1px solid transparent;
    min-height: 40px;
}

.nav-links > li > a:hover {
    background: linear-gradient(135deg, #FFD700, #FFC107);
    color: #0A2A4F;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
    border-color: rgba(255, 215, 0, 0.3);
}

/* Enhanced Dropdown Menus */
.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(10, 42, 79, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    min-width: 240px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 215, 0, 0.2);
    z-index: 10001;
    margin-top: 5px;
    padding: 8px;
    list-style: none;
    display: none;
}

/* Desktop hover and click behavior */
@media (min-width: 1025px) {
    .dropdown:hover .dropdown-menu,
    .dropdown.active .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        display: block;
    }

    .dropdown.active .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        display: block;
    }
}

.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: block;
}

/* Ensure dropdown works on all screen sizes */
.dropdown.active .dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    display: block !important;
}

/* Fix for dropdown menu positioning */
.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(10, 42, 79, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    min-width: 240px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 215, 0, 0.2);
    z-index: 10001;
    margin-top: 5px;
    padding: 8px;
    list-style: none;
    display: none;
}

/* Ensure dropdown works on all screen sizes */
.dropdown.active .dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    display: block !important;
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 10px;
    margin: 2px 0;
    font-weight: 500;
    border: 1px solid transparent;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background: linear-gradient(135deg, #FFD700, #FFC107);
    color: #0A2A4F;
    transform: translateX(-5px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

/* Sub-dropdown */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu .dropdown-menu {
    top: 0;
    right: 100%;
    margin-right: 10px;
}

/* Desktop hover behavior for sub-dropdowns */
@media (min-width: 1025px) {
    .dropdown-submenu:hover > .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

.dropdown-submenu.active > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ===== ENHANCED USER SECTION ===== */
.user-section {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

/* Points Display */
.points-display {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    padding: 10px 18px;
    border-radius: 25px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.points-display:hover {
    background: rgba(255, 215, 0, 0.2);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}

.points-display i {
    color: #FFD700;
    font-size: 16px;
}

.points-display span {
    font-weight: 600;
    font-size: 14px;
}

/* Enhanced Notifications */
.notifications {
    position: relative;
    cursor: pointer;
}

.notification-icon {
    font-size: 20px;
    color: white;
    transition: all 0.3s ease;
    padding: 10px;
    border-radius: 50%;
}

.notification-icon:hover {
    color: #FFD700;
    background: rgba(255, 215, 0, 0.1);
    animation: bell-shake 0.6s ease-in-out;
}

@keyframes bell-shake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

.notification-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 300px;
    background: rgba(10, 42, 79, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 215, 0, 0.2);
    z-index: 1002;
    margin-top: 5px;
}

.notifications:hover .notification-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.notification-header {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 600;
    color: #FFD700;
    border-radius: 15px 15px 0 0;
}

.notification-item {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
}

.notification-item:hover {
    background: rgba(255, 215, 0, 0.05);
}

.notification-item:last-child {
    border-bottom: none;
    border-radius: 0 0 15px 15px;
}

.notification-count {
    background: #ff4757;
    color: #ffffff;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    min-width: 22px;
    text-align: center;
    margin-right: 10px;
    display: none;
}

.notification-badge {
    position: absolute;
    top: 5px;
    right: 6px;
    transform: translate(50%, -50%);
    background: #ff4757;
    color: #ffffff;
    border-radius: 999px;
    min-width: 20px;
    height: 20px;
    font-size: 11px;
    font-weight: 700;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    line-height: 1;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

.notification-content {
    flex: 1;
    margin-right: 10px;
}

.notification-item i {
    color: #FFD700;
    margin-left: 10px;
    font-size: 16px;
}

/* Enhanced User Profile */
.user-profile {
    position: relative;
    cursor: pointer;
}

.profile-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
    object-fit: cover;
    display: block;
    background-color: rgba(255, 255, 255, 0.1);
}

.user-profile:hover .profile-avatar {
    border-color: #FFD700;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

.profile-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 220px;
    background: rgba(10, 42, 79, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 215, 0, 0.2);
    z-index: 1002;
    margin-top: 5px;
    padding: 8px;
}

.user-profile:hover .profile-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-dropdown a,
.profile-dropdown button {
    display: block;
    width: 100%;
    padding: 12px 20px;
    color: white;
    text-decoration: none;
    background: none;
    border: none;
    text-align: right;
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 10px;
    margin: 2px 0;
    font-weight: 500;
    border: 1px solid transparent;
}

.profile-dropdown a:hover,
.profile-dropdown button:hover {
    background: rgba(255, 215, 0, 0.1);
    color: #FFD700;
    transform: translateX(-5px);
    border-color: rgba(255, 215, 0, 0.2);
}

/* ===== ENHANCED AUTH BUTTONS ===== */
.auth-buttons {
    display: flex;
    gap: 12px;
}

.auth-btn {
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 14px;
    border: 2px solid transparent;
    backdrop-filter: blur(10px);
}

.login-btn {
    background: rgba(255, 215, 0, 0.1);
    border-color: #FFD700;
    color: #FFD700;
}

.login-btn:hover {
    background: #FFD700;
    color: #0A2A4F;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.register-btn {
    background: linear-gradient(135deg, #FFD700, #FFC107);
    color: #0A2A4F;
    border-color: transparent;
}

.register-btn:hover {
    background: linear-gradient(135deg, #FFC107, #FFB300);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

/* ===== ENHANCED MOBILE MENU ===== */
.mobile-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.3s ease;
    order: 2;
}

.mobile-toggle:hover {
    background: rgba(255, 215, 0, 0.1);
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ===== ENHANCED FILTER FORMS ===== */
.filters-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 25px;
    margin: 20px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.filters-header {
    margin-bottom: 20px;
    text-align: center;
}

.filters-header h3 {
    color: #FFD700;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    color: #FFD700;
    font-weight: 600;
    font-size: 14px;
    font-family: 'Cairo', sans-serif;
    letter-spacing: 0.2px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Enhanced Form Controls */
.form-control,
.form-select {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.form-control:focus,
.form-select:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: #4CAF50;
    box-shadow: 0 0 0 0.3rem rgba(76, 175, 80, 0.25);
    color: white;
    outline: none;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
}

.form-select option {
    background: #0A2A4F;
    color: white;
    padding: 10px;
    font-weight: 500;
}

.form-select option:hover {
    background: #4CAF50;
}

.form-select option:selected {
    background: #4CAF50;
    color: white;
    font-weight: 700;
}

/* Enhanced Action Buttons */
.filters-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.search-btn,
.reset-btn {
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    border: none;
    font-family: 'Cairo', sans-serif;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
}

.search-btn {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.search-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
    color: white;
    text-decoration: none;
}

.reset-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.reset-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
    text-decoration: none;
}

/* ===== ENHANCED CARDS & CONTENT ===== */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.3);
}

/* Enhanced Action Buttons Grid */
.action-buttons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.action-btn {
    padding: 10px 15px;
    border-radius: 10px;
    border: none;
    color: white;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-decoration: none;
    backdrop-filter: blur(10px);
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    color: white;
}

.action-btn.delete {
    background: linear-gradient(135deg, #f44336, #d32f2f);
}

.action-btn.edit {
    background: linear-gradient(135deg, #ff9800, #f57c00);
}

.action-btn.view {
    background: linear-gradient(135deg, #2196f3, #1976d2);
}

.action-btn.transfer {
    background: linear-gradient(135deg, #9c27b0, #7b1fa2);
}

.action-btn.manager {
    background: linear-gradient(135deg, #607d8b, #455a64);
}

.action-btn.servant {
    background: linear-gradient(135deg, #4caf50, #388e3c);
}

.action-btn.served {
    background: linear-gradient(135deg, #00bcd4, #0097a7);
}

/* ===== ENHANCED RESPONSIVE DESIGN ===== */
/* Ensure nav-menu is always fixed on mobile */
@media (max-width: 1024px) {
    .nav-menu {
        position: fixed !important;
        top: 80px !important;
        right: -100%;
        z-index: 9999 !important;
        display: none;
        width: 100%;
        max-width: 320px;
        height: calc(100vh - 80px);
        background: rgba(10, 42, 79, 0.98);
        backdrop-filter: blur(20px);
        transition: right 0.3s ease;
        padding: 20px 0;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
        overflow-y: auto;
        border-left: 2px solid rgba(255, 215, 0, 0.3);
    }

    /* عرض القائمة المنسدلة في الموبايل */
    .nav-menu.active {
        display: block;
        position: fixed !important;
        top: 80px !important;
        right: -10% !important;
        transition: right 0.3s ease;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 0;
        padding: 0;
        margin: 0;
    }

    .nav-links > li {
        width: 100%;
        margin: 0;
    }

    .nav-links > li > a {
        justify-content: flex-end;
        padding: 15px 25px;
        border-radius: 0;
        width: 100%;
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 16px;
        display: flex;
        align-items: center;
        text-align: right;
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: rgba(10, 42, 79, 0.5);
        box-shadow: none;
        border: none;
        border-radius: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        margin-top: 0;
        padding: 0;
    }

    .dropdown.active .dropdown-menu {
        max-height: 500px;
        padding: 8px;
    }

    .dropdown > a::after {
        content: "▼";
        margin-right: 10px;
        transition: transform 0.3s ease;
        font-size: 12px;
    }

    .dropdown.active > a::after {
        transform: rotate(180deg);
    }

    .dropdown-submenu > a::after {
        content: "◀";
        margin-right: 10px;
        transition: transform 0.3s ease;
        font-size: 12px;
    }

    .dropdown-submenu.active > a::after {
        transform: rotate(180deg);
    }

    /* تحسين عرض العناصر الأخرى */
    .logo-container img {
        width: 40px;
        height: 40px;
    }

    .logo-text {
        font-size: 14px;
    }

    .points-display {
        padding: 6px 10px;
        font-size: 12px;
    }

    .profile-avatar {
        width: 35px;
        height: 35px;
    }
    .dropdown-menu a {
        padding-right: 45px;
        margin: 2px 0;
    }
    .dropdown-submenu .dropdown-menu {
        right: 0;
        margin-right: 0;
    }
    .dropdown-submenu .dropdown-menu a {
        padding-right: 65px;
    }
    .logo-text {
        display: none;
    }
    .logo-container img {
        object-fit: cover;
        display: block;
        background-color: rgba(255, 255, 255, 0.1);
    }

    .user-section {
        gap: 10px;
    }
    .points-display {
        padding: 6px 10px;
    }
    .points-display span {
        font-size: 12px;
    }

    .profile-avatar {
        width: 40px;
        height: 40px;
        object-fit: cover;
        display: block;
        background-color: rgba(255, 255, 255, 0.1);
    }

    .logo-container img {
        width: 40px;
        height: 40px;
        object-fit: cover;
        display: block;
        background-color: rgba(255, 255, 255, 0.1);
    }

    .notification-dropdown,
    .profile-dropdown {
        width: 250px;
        right: 0;
    }

    .profile-dropdown {
        left: auto;
        right: 0;
    }
    /* Mobile Filter Adjustments */
    .filters-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .filters-actions {
        flex-direction: column;
        align-items: center;
    }

    .search-btn,
    .reset-btn {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }

    /* Mobile Action Buttons */
    .action-buttons-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .action-btn {
        padding: 8px 12px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0 10px;
        height: 60px;
    }

    .nav-menu.active {
        top: 60px !important;
        height: calc(100vh - 60px);
        max-width: 100%;
    }

    .points-display {
        padding: 4px 8px;
        font-size: 10px;
    }

    .points-display span:not(.points-number) {
        display: none;
    }

    .auth-buttons {
        flex-direction: column;
        gap: 5px;
    }

    .auth-btn {
        padding: 6px 12px;
        font-size: 11px;
    }

    .action-buttons-grid {
        grid-template-columns: 1fr;
    }

    .profile-avatar {
        width: 30px;
        height: 30px;
    }

    .logo-container img {
        width: 30px;
        height: 30px;
    }

    .logo-text {
        font-size: 12px;
    }

    .nav-links > li > a {
        padding: 12px 20px;
        font-size: 14px;
    }

    .mobile-toggle {
        margin-left: 5px;
    }

    .mobile-toggle span {
        width: 20px;
        height: 2px;
    }
}

/* ===== ENHANCED UTILITY CLASSES ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.text-center {
    text-align: center;
}

.text-gold {
    color: #FFD700;
}

.bg-glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== ENHANCED ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

/* ===== ENHANCED SCROLLBAR - HIDDEN BY DEFAULT ===== */
/* Scrollbar styles removed to prevent unwanted scroll appearance on pages */
/* Individual pages can add their own scrollbar styles if needed */

/* ===== ENHANCED FOCUS STATES ===== */
*:focus {
    outline: 2px solid #FFD700;
    outline-offset: 2px;
}

/* ===== ENHANCED LOADING STATES ===== */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #FFD700;
}

.loading i {
    font-size: 2rem;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== ENHANCED EMPTY STATES ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.7);
}

.empty-state i {
    font-size: 4rem;
    color: rgba(255, 215, 0, 0.5);
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #FFD700;
}

/* ===== ENHANCED TABLE STYLES ===== */
.table-section {
    margin-bottom: 30px;
}

.table-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.table {
    margin: 0;
    color: white;
}

.table th {
    background: rgba(255, 215, 0, 0.1);
    color: #FFD700;
    font-weight: 600;
    border: none;
    padding: 15px;
    text-align: right;
}

.table td {
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px;
    vertical-align: middle;
}

.table tbody tr:hover {
    background: rgba(255, 215, 0, 0.05);
}

/* ===== ENHANCED MODAL STYLES ===== */
.modal-content {
    background: rgba(10, 42, 79, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 15px;
    color: white;
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
}

.modal-title {
    color: #FFD700;
    font-weight: 700;
    font-family: 'Cairo', sans-serif;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
}

/* ===== MAIN CONTENT AREA ===== */
main {
    padding-top: 100px;
    margin: 0;
    width: 100%;
    min-height: calc(100vh - 100px);
    position: relative;
    z-index: 1;
}

.content {
    padding-top: 100px;
    margin: 0;
    width: 100%;
    min-height: calc(100vh - 100px);
    position: relative;
    z-index: 1;
}

/* ===== ENHANCED PAGE HEADERS ===== */
.page-header {
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    margin: 20px;
}

.page-title {
    font-size: 2.5rem;
    color: #FFD700;
    margin-bottom: 10px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* ===== ENHANCED SEARCH SECTIONS ===== */
.search-section {
    margin: 20px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.search-container {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
}

.search-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: white;
    padding: 12px 20px;
    font-size: 14px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.search-input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: #FFD700;
    outline: none;
    box-shadow: 0 0 0 0.3rem rgba(255, 215, 0, 0.25);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-btn {
    background: linear-gradient(135deg, #FFD700, #FFC107);
    color: #0A2A4F;
    border: none;
    border-radius: 25px;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    min-width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

/* ===== ENHANCED STAGE FILTERS ===== */
.stage-filter {
    display: flex;
    justify-content: center;
    margin: 30px 0;
    gap: 15px;
    flex-wrap: wrap;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stage-btn {
    padding: 12px 25px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    border-radius: 25px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.stage-btn:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: #FFD700;
    color: #FFD700;
    transform: translateY(-2px);
    text-decoration: none;
}

.stage-btn.active {
    background: linear-gradient(135deg, #FFD700, #FFC107);
    color: #0A2A4F;
    border-color: #FFD700;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
}

/* ===== ENHANCED CLASS CARDS ===== */
.classes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.class-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 3px solid transparent;
    position: relative;
    overflow: hidden;
    color: #333;
}

.class-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
}

.class-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.class-card h3 {
    color: #0A2A4F;
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-weight: 700;
}

.class-card p {
    color: #666;
    margin-bottom: 10px;
    font-size: 14px;
}

.class-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(74, 144, 226, 0.1);
    border-radius: 10px;
}

.class-stage {
    background: linear-gradient(135deg, #4a90e2, #357abd);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.class-gender {
    background: linear-gradient(135deg, #e91e63, #c2185b);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* ===== ENHANCED GENDER TABS ===== */
.gender-tabs {
    display: flex;
    justify-content: center;
    margin: 30px 0;
    gap: 20px;
    flex-wrap: wrap;
}

.gender-tab {
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    border-radius: 25px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.gender-tab:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: #FFD700;
    color: #FFD700;
    transform: translateY(-2px);
    text-decoration: none;
}

.gender-tab.active {
    background: linear-gradient(135deg, #FFD700, #FFC107);
    color: #0A2A4F;
    border-color: #FFD700;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
}

/* ===== ENHANCED RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 1024px) {
    .classes-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-title {
        font-size: 2rem;
    }

    .stage-filter,
    .gender-tabs {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .class-card {
        padding: 20px;
    }

    .search-container {
        flex-direction: column;
        gap: 10px;
    }

    .search-input,
    .search-btn {
        width: 100%;
        border-radius: 12px;
    }
}

/* ===== ENHANCED ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== ENHANCED PRINT STYLES ===== */
@media print {
    .navbar,
    .mobile-toggle,
    .filters-section,
    .action-buttons-grid {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    .glass-card {
        background: white !important;
        border: 1px solid #ccc !important;
        box-shadow: none !important;
    }
}

/* ===== ENHANCED DARK MODE SUPPORT ===== */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #0A2A4F 0%, #1a4a8a 50%, #0A2A4F 100%);
    }
}

/* ===== ENHANCED HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
    .glass-card {
        border: 2px solid #FFD700;
    }

    .form-control,
    .form-select {
        border: 2px solid #FFD700;
    }
}

/* ===== ENHANCED FOCUS VISIBLE ===== */
@media (prefers-reduced-motion: no-preference) {
    .focus-visible {
        outline: 2px solid #FFD700;
        outline-offset: 2px;
    }
}
