body,
html {
    min-height: 100vh;
    overflow-x: hidden;
    
    margin: 0;
    background-color: #f0f4f8; /* Soft blue-gray */
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #1e293b;
}

@media (max-width: 575.98px) {
    .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    
    .classic-card {
        padding: 1.5rem !important;
    }
}

.center-container {
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 10vh 20px 20px 20px;
    background: linear-gradient(135deg, #f6f8fd 0%, #f1f5f9 100%);
}

.classic-card {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 25px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0,0,0,0.05);
    width: 100%;
}

.title {
    font-weight: 700;
    margin-bottom: 5px;
    color: #0f172a;
    font-size: 1.6rem;
}

.subtitle {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 25px;
}

#search-container {
    visibility: hidden;
    margin-top: 15px;
}

.icon-wrapper {
    margin-bottom: 20px;
    color: #4f46e5;
    background: #eef2ff;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}

/* Search Wrapper */
.modern-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 16px;
    padding: 6px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.modern-search-wrapper:focus-within {
    border-color: #4f46e5;
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.15);
}

.search-icon {
    position: absolute;
    left: 20px;
    color: #94a3b8;
    font-size: 1.1rem;
}

.modern-search-input {
    border: none;
    background: transparent;
    padding: 12px 20px 12px 45px;
    font-size: 1rem;
    color: #334155;
    box-shadow: none !important;
    width: 100%;
    outline: none;
}

.modern-primary-btn {
    background: #4f46e5;
    color: white;
    border-radius: 12px;
    padding: 10px 24px;
    font-weight: 600;
    border: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.modern-primary-btn:hover {
    background: #7c3aed;
    color: white;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.result-card {
    background-color: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    padding: 12px 16px;
    margin-top: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.result-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    border-color: #e2e8f0;
    transform: translateY(-2px);
}

.course-code {
    font-weight: 700;
    color: #0f172a;
    font-size: 1.2rem;
    text-transform: uppercase;
    margin: 0;
}

.whatsapp-btn {
    background-color: #25D366;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 8px 16px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(37, 211, 102, 0.2);
}

.whatsapp-btn:hover {
    background-color: #20b858;
    color: white;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.facebook-btn {
    background-color: #1877F2;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 8px 16px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(24, 119, 242, 0.2);
}

.facebook-btn:hover {
    background-color: #166FE5;
    color: white;
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

.telegram-btn {
    background-color: #0088cc;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 8px 16px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 136, 204, 0.2);
}

.telegram-btn:hover {
    background-color: #0077b3;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.3);
}

.generic-btn {
    background-color: #4f46e5;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 8px 16px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.2);
}

.generic-btn:hover {
    background-color: #7c3aed;
    color: white;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

/* Larger screens (tablets and desktops) */
@media (min-width: 768px) {
    .classic-card {
        padding: 30px;
    }

    .title {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }

    .icon-wrapper {
        margin-bottom: 20px;
    }

    #search-container {
        margin-top: 25px;
    }
}

/* Modern UI Enhancements */
.modern-select {
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background-color: #f8fafc;
    color: #334155;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    min-height: 48px;
    padding: 8px 36px 8px 16px;
}

.modern-select:focus, .modern-input:focus {
    background-color: #ffffff;
    border-color: #4f46e5;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15);
    outline: none;
}

.modern-input {
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background-color: #f8fafc;
    color: #334155;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    min-height: 48px;
    padding: 8px 16px;
}

.modern-modal-content {
    border-radius: 24px;
    border: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
}

.modern-btn {
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background-color: #ffffff;
    color: #64748b;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modern-btn:hover {
    background-color: #f1f5f9;
    color: #0f172a;
    border-color: #cbd5e1;
}

.modern-btn:active {
    transform: translateY(0);
}

.modern-submit-btn {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-submit-btn:hover {
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.4);
    color: white;
}

.modern-submit-btn:active {
    transform: translateY(0) scale(0.95);
}

/* Fix Dropdown Horizontal Scroll & Wrapping */
#customUniDropdown .dropdown-menu {
    max-width: 100%;
    margin-top: 5px !important;
}

#customUniDropdown .dropdown-item {
    white-space: normal !important;
    word-break: break-word;
    padding-top: 8px;
    padding-bottom: 8px;
    border-radius: 8px;
    margin: 0 8px;
    width: auto;
}

#customUniDropdown .dropdown-item:hover {
    background-color: #f1f5f9;
}

.toggle-password {
    z-index: 10 !important;
    pointer-events: auto !important;
}

/* =====================
   Navbar
   ===================== */
    background-color: #20b858;
    color: white;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.facebook-btn {
    background-color: #1877F2;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 8px 16px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(24, 119, 242, 0.2);
}

.facebook-btn:hover {
    background-color: #166FE5;
    color: white;
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

.telegram-btn {
    background-color: #0088cc;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 8px 16px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 136, 204, 0.2);
}

.telegram-btn:hover {
    background-color: #0077b3;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.3);
}

.generic-btn {
    background-color: #4f46e5;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 8px 16px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.2);
}

.generic-btn:hover {
    background-color: #7c3aed;
    color: white;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

/* Larger screens (tablets and desktops) */
@media (min-width: 768px) {
    .classic-card {
        padding: 30px;
    }

    .title {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }

    .icon-wrapper {
        margin-bottom: 20px;
    }

    #search-container {
        margin-top: 25px;
    }
}

/* Modern UI Enhancements */
.modern-select {
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background-color: #f8fafc;
    color: #334155;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    min-height: 48px;
    padding: 8px 36px 8px 16px;
}

.modern-select:focus, .modern-input:focus {
    background-color: #ffffff;
    border-color: #4f46e5;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15);
    outline: none;
}

.modern-input {
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background-color: #f8fafc;
    color: #334155;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    min-height: 48px;
    padding: 8px 16px;
}

.modern-modal-content {
    border-radius: 24px;
    border: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
}

.modern-btn {
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background-color: #ffffff;
    color: #64748b;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modern-btn:hover {
    background-color: #f1f5f9;
    color: #0f172a;
    border-color: #cbd5e1;
}

.modern-btn:active {
    transform: translateY(0);
}

.modern-submit-btn {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-submit-btn:hover {
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.4);
    color: white;
}

.modern-submit-btn:active {
    transform: translateY(0) scale(0.95);
}

/* Fix Dropdown Horizontal Scroll & Wrapping */
#customUniDropdown .dropdown-menu {
    max-width: 100%;
    margin-top: 5px !important;
}

#customUniDropdown .dropdown-item {
    white-space: normal !important;
    word-break: break-word;
    padding-top: 8px;
    padding-bottom: 8px;
    border-radius: 8px;
    margin: 0 8px;
    width: auto;
}

#customUniDropdown .dropdown-item:hover {
    background-color: #f1f5f9;
}

.toggle-password {
    z-index: 10 !important;
    pointer-events: auto !important;
}

.navbar {
    background-color: rgba(255,255,255,0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226,232,240,0.8);
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    padding-top: 14px;
    padding-bottom: 14px;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.25rem;
    color: #0f172a !important;
    letter-spacing: -0.5px;
}

.nav-link {
    font-weight: 500;
    color: #334155 !important;
    border-radius: 8px;
    padding: 6px 12px !important;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover {
    color: #4f46e5 !important;
    background: rgba(79,70,229,0.06);
}

.hover-primary:hover {
    color: #4f46e5 !important;
}

.navbar-toggler {
    border: none;
    padding: 6px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* =====================
   Mobile App Bar
   ===================== */
.mobile-app-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.04);
    z-index: 1040;
    padding: 10px 15px;
    padding-bottom: env(safe-area-inset-bottom, 10px);
}

.mobile-app-bar .nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #64748b !important;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 8px !important;
    gap: 4px;
    border-radius: 12px;
}

.mobile-app-bar .nav-link i {
    font-size: 1.25rem;
    margin-bottom: 2px;
}

.mobile-app-bar .nav-link:hover, .mobile-app-bar .nav-link.active {
    color: #4f46e5 !important;
    background: transparent;
}

.mobile-app-bar .nav-link.active i {
    color: #4f46e5;
}

@media (max-width: 991.98px) {
    body {
        padding-bottom: 80px !important;
    }
}

/* =====================
   Footer
   ===================== */
.site-footer {
    margin-top: auto;
    background: #0f172a;
    color: rgba(255,255,255,0.65);
    padding: 60px 0 0;
    font-size: 0.9rem;
}

.site-footer .footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.site-footer .footer-logo {
    height: 38px;
    width: auto;
    border-radius: 8px;
}

.site-footer .footer-brand-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
}

.site-footer .footer-tagline {
    color: rgba(255,255,255,0.45);
    font-size: 0.88rem;
    line-height: 1.6;
    max-width: 280px;
}

.site-footer .footer-heading {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    margin-bottom: 1rem;
}

.site-footer .footer-link {
    display: block;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    padding: 4px 0;
    font-size: 0.9rem;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.site-footer .footer-link:hover {
    color: #a78bfa;
    padding-left: 4px;
}

.site-footer .footer-divider {
    border-color: rgba(255,255,255,0.08);
    margin: 0;
}

.site-footer .footer-bottom {
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.site-footer .footer-bottom p {
    margin: 0;
    color: rgba(255,255,255,0.35);
    font-size: 0.82rem;
}

.site-footer .footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(79,70,229,0.15);
    border: 1px solid rgba(79,70,229,0.3);
    color: #a78bfa;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 100px;
}
/* =====================
   Admin Buttons
   ===================== */
.admin-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    cursor: pointer;
    background-color: #f1f5f9 !important;
    color: #475569;
    font-size: 0.85rem;
    text-decoration: none;
}

.admin-btn-icon:hover {
    transform: none !important;
    background-color: #e2e8f0 !important;
    border-color: #cbd5e1 !important;
    box-shadow: none !important;
}

.admin-btn-icon:active {
    transform: none !important;
    background-color: #cbd5e1 !important;
}

.admin-btn-icon:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* All action buttons have grey background, icon/label color provides action clarity */
.admin-btn-icon.primary { background-color: #f1f5f9 !important; color: #4f46e5; border-color: #e2e8f0; }
.admin-btn-icon.primary:hover { background-color: #e2e8f0 !important; color: #3730a3; border-color: #cbd5e1; transform: none !important; }

.admin-btn-icon.info { background-color: #f1f5f9 !important; color: #0284c7; border-color: #e2e8f0; }
.admin-btn-icon.info:hover { background-color: #e2e8f0 !important; color: #0369a1; border-color: #cbd5e1; transform: none !important; }

.admin-btn-icon.warning { background-color: #f1f5f9 !important; color: #d97706; border-color: #e2e8f0; }
.admin-btn-icon.warning:hover { background-color: #e2e8f0 !important; color: #b45309; border-color: #cbd5e1; transform: none !important; }

.admin-btn-icon.danger { background-color: #f1f5f9 !important; color: #dc2626; border-color: #e2e8f0; }
.admin-btn-icon.danger:hover { background-color: #e2e8f0 !important; color: #b91c1c; border-color: #cbd5e1; transform: none !important; }

.admin-btn-icon.success { background-color: #f1f5f9 !important; color: #16a34a; border-color: #e2e8f0; }
.admin-btn-icon.success:hover { background-color: #e2e8f0 !important; color: #15803d; border-color: #cbd5e1; transform: none !important; }

.admin-btn-icon.secondary { background-color: #f1f5f9 !important; color: #64748b; border-color: #e2e8f0; }
.admin-btn-icon.secondary:hover { background-color: #e2e8f0 !important; color: #334155; border-color: #cbd5e1; transform: none !important; }


