/* ===== ROOT VARIABLES ===== */
:root {
    --primary: #890C25;
    --secondary: #6a091d;
    --success: #4cc9f0;
    --warning: #f72585;
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
    --sidebar-width: 250px;
    --header-height: 70px;
    --card-radius: 12px;
    --transition: all 0.3s ease;
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: #f0f2f5;
    color: var(--dark);
    line-height: 1.6;
}

.dashboard {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

/* ===== SIDEBAR ===== */
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, #890C25 0%, #6a091d 100%);
    color: white;
    padding: 20px 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    transition: var(--transition);
    z-index: 1000;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
}

.sidebar-header {
    padding: 0 20px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-header img {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    object-fit: cover;
    background: white;
    padding: 8px;
}

.sidebar-header h2 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.sidebar-menu {
    list-style: none;
    margin-top: 20px;
}

.sidebar-menu li {
    margin-bottom: 2px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    border-left: 3px solid transparent;
    font-size: 14px;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-left-color: #fff;
}

.sidebar-menu i {
    margin-right: 12px;
    font-size: 18px;
    width: 24px;
    text-align: center;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ===== HEADER ===== */
.header {
    background: white;
    height: var(--header-height);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--dark);
}

.search-box {
    display: flex;
    align-items: center;
    background: #f5f7fb;
    border-radius: 25px;
    padding: 8px 18px;
    width: 320px;
    transition: var(--transition);
}

.search-box:focus-within {
    box-shadow: 0 0 0 3px rgba(137, 12, 37, 0.1);
    background: white;
}

.search-box input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    margin-left: 10px;
    font-size: 14px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* ===== NOTIFICATION ===== */
.notification {
    position: relative;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 10px;
    transition: var(--transition);
}

.notification:hover {
    background: #f5f7fb;
}

.notification-badge {
    position: absolute;
    top: 2px;
    right: 4px;
    background: var(--warning);
    color: white;
    font-size: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.notification-dropdown {
    position: absolute;
    top: 48px;
    right: -10px;
    width: 380px;
    background: white;
    border-radius: var(--card-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    padding: 20px;
    max-height: 420px;
    overflow-y: auto;
}

.notification-dropdown.active {
    display: block;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.notification-header h3 {
    font-size: 16px;
    font-weight: 700;
}

.notification-item {
    display: flex;
    padding: 12px;
    border-radius: var(--card-radius);
    margin-bottom: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.notification-item:hover {
    background: #f9f9f9;
}

.notification-item i {
    font-size: 18px;
    margin-right: 12px;
    color: var(--primary);
    margin-top: 2px;
}

.notification-item.unread {
    background: #fef0f3;
}

.notification-content {
    flex: 1;
}

.notification-content p {
    margin: 0 0 4px 0;
    font-size: 14px;
}

.notification-time {
    font-size: 12px;
    color: var(--gray);
}

.view-all-notifications {
    display: block;
    text-align: center;
    padding: 10px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    border-top: 1px solid #eee;
    margin-top: 10px;
    font-size: 14px;
}

/* ===== USER PROFILE ===== */
.user-profile {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    padding: 5px 12px;
    border-radius: 10px;
    transition: var(--transition);
}

.user-profile:hover {
    background: #f5f7fb;
}

.user-profile img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.user-profile span {
    font-weight: 500;
    font-size: 14px;
}

.profile-dropdown {
    position: absolute;
    top: 48px;
    right: 0;
    width: 220px;
    background: white;
    border-radius: var(--card-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    overflow: hidden;
    padding: 8px 0;
}

.profile-dropdown.active {
    display: block;
}

.profile-dropdown a {
    display: flex;
    align-items: center;
    padding: 10px 18px;
    text-decoration: none;
    color: var(--dark);
    transition: var(--transition);
    gap: 12px;
    font-size: 14px;
}

.profile-dropdown a:hover {
    background: #f5f7fb;
}

.profile-dropdown a i {
    width: 20px;
    color: var(--primary);
    font-size: 16px;
}

.profile-dropdown .sign-out {
    color: var(--warning);
    border-top: 1px solid #eee;
    margin-top: 5px;
}

.profile-dropdown .sign-out i {
    color: var(--warning);
}

/* ===== THEME SELECTOR ===== */
.theme-selector {
    position: relative;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 10px;
    transition: var(--transition);
}

.theme-selector:hover {
    background: #f5f7fb;
}

.theme-selector i {
    font-size: 20px;
    color: var(--dark);
}

.theme-dropdown {
    position: absolute;
    top: 48px;
    right: 0;
    width: 190px;
    background: white;
    border-radius: var(--card-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    padding: 12px;
}

.theme-dropdown.active {
    display: block;
}

.theme-option {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    border-radius: 8px;
    margin-bottom: 3px;
    cursor: pointer;
    transition: var(--transition);
}

.theme-option:hover {
    background: #f5f7fb;
}

.theme-color {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    margin-right: 10px;
    border: 2px solid transparent;
}

.theme-option:hover .theme-color {
    border-color: var(--primary);
}

/* Theme Colors */
.theme-blue { background: #4361ee; }
.theme-red { background: #e63946; }
.theme-green { background: #2a9d8f; }
.theme-purple { background: #7209b7; }
.theme-orange { background: #f3722c; }
.theme-maroon { background: #890C25; }

/* ===== CONTENT AREA ===== */
.content {
    padding: 25px 30px;
    flex: 1;
}

/* ===== WELCOME BANNER ===== */
.welcome-banner {
    background: linear-gradient(135deg, #890C25 0%, #6a091d 100%);
    border-radius: var(--card-radius);
    padding: 30px 35px;
    margin-bottom: 25px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    box-shadow: 0 4px 20px rgba(137, 12, 37, 0.3);
}

.welcome-banner-left h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
}

.welcome-banner-left p {
    opacity: 0.9;
    font-size: 15px;
}

.welcome-banner-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.welcome-banner-right .btn-whatsapp {
    background: #25D366;
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    border: none;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.welcome-banner-right .btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
}

.welcome-banner-right .btn-whatsapp i {
    font-size: 20px;
}

.welcome-banner-right .support-text {
    font-size: 13px;
    opacity: 0.85;
}

/* ===== PAGE TITLE ===== */
.page-title {
    margin-bottom: 25px;
}

.page-title h1 {
    font-size: 24px;
    color: var(--dark);
}

.page-title p {
    color: var(--gray);
    font-size: 14px;
}

/* ===== STATS CARDS ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background: white;
    border-radius: var(--card-radius);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    padding: 25px;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--gray);
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
}

.bg-primary { background: var(--primary); }
.bg-success { background: var(--success); }
.bg-warning { background: var(--warning); }
.bg-secondary { background: var(--secondary); }

.card-value {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--dark);
}

.card-text {
    color: var(--gray);
    font-size: 14px;
}

.progress-bar {
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    margin-top: 12px;
    overflow: hidden;
}

.progress {
    height: 100%;
    border-radius: 3px;
    background: var(--primary);
}

/* ===== STATUS TRACKER ===== */
.status-tracker {
    background: white;
    border-radius: var(--card-radius);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.status-header h2 {
    font-size: 18px;
}

.badge {
    background: var(--primary);
    color: white;
    padding: 5px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
}

.status-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 30px 0;
}

.status-steps::before {
    content: '';
    position: absolute;
    top: 18px;
    left: 0;
    right: 0;
    height: 3px;
    background: #e9ecef;
    z-index: 1;
}

.status-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.step-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: white;
    border: 3px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    transition: var(--transition);
    font-size: 14px;
}

.step-active .step-icon {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

.step-complete .step-icon {
    border-color: var(--success);
    background: var(--success);
    color: white;
}

.step-label {
    font-size: 12px;
    color: var(--gray);
    text-align: center;
    font-weight: 500;
}

.step-active .step-label {
    color: var(--primary);
}

.step-complete .step-label {
    color: var(--success);
}

.status-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 10px 25px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    font-size: 14px;
}
/* Remove underline from all button links */
a.btn,
a.btn:hover,
a.btn:focus,
a.btn:active {
    text-decoration: none !important;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(137, 12, 37, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* ===== COURSES ===== */
.section-title {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section-title h2 {
    font-size: 20px;
}

.view-all {
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.course-card {
    background: white;
    border-radius: var(--card-radius);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.course-image {
    height: 180px;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.course-card:hover .course-image img {
    transform: scale(1.05);
}

.course-content {
    padding: 20px;
}

.course-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dark);
}

.course-content p {
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 12px;
}

.course-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: var(--gray);
}

.course-info span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ===== FOOTER ===== */
.footer {
    background: white;
    border-top: 1px solid #e9ecef;
    padding: 20px 30px;
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer p {
    color: var(--gray);
    font-size: 13px;
}

.footer .footer-links {
    display: flex;
    gap: 20px;
}

.footer .footer-links a {
    color: var(--gray);
    text-decoration: none;
    font-size: 13px;
    transition: var(--transition);
}

.footer .footer-links a:hover {
    color: var(--primary);
}

.footer .developer {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.footer .developer:hover {
    text-decoration: underline;
}

/* ===== ADMISSION STEPS ===== */
.admission-steps-container {
    background: white;
    border-radius: var(--card-radius);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    margin-top: 20px;
}

.admission-steps-header {
    background: linear-gradient(135deg, #890C25 0%, #6a091d 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.admission-steps-header h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.admission-steps-content {
    padding: 30px;
}

.admission-step {
    display: flex;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
}

.admission-step:last-child {
    border-bottom: none;
}

.admission-step-number {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.admission-step-content h4 {
    font-size: 16px;
    margin-bottom: 5px;
    color: var(--dark);
}

.admission-step-content p {
    color: var(--gray);
    font-size: 14px;
}

.admission-buttons-container {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.admission-btn {
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.admission-btn-primary {
    background: var(--primary);
    color: white;
}

.admission-btn-primary:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(137, 12, 37, 0.3);
}

.admission-btn-secondary {
    background: #e9ecef;
    color: var(--dark);
}

.admission-btn-secondary:hover {
    background: #dee2e6;
    transform: translateY(-2px);
}

.admission-btn-whatsapp {
    background: #25D366;
    color: white;
}

.admission-btn-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.admission-btn-success {
    background: #28a745;
    color: white;
}

.admission-btn-success:hover {
    background: #218838;
    transform: translateY(-2px);
}

.admission-icon {
    font-size: 18px;
}

.admission-documents-section {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #e9ecef;
}

.admission-documents-section h4 {
    font-size: 16px;
    margin-bottom: 5px;
    color: var(--dark);
}

.admission-documents-section p {
    color: var(--gray);
    font-size: 14px;
}

/* ===== MOBILE NAV ===== */
.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.08);
    display: none;
    z-index: 1000;
}

.mobile-nav-menu {
    display: flex;
    justify-content: space-around;
    list-style: none;
    padding: 8px 0;
}

.mobile-nav-menu a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--gray);
    font-size: 11px;
    padding: 5px 10px;
    transition: var(--transition);
}

.mobile-nav-menu i {
    font-size: 20px;
    margin-bottom: 3px;
}

.mobile-nav-menu a.active {
    color: var(--primary);
}

/* ===== LOADER ===== */
.modern-loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
        width: 280px;
    }
    .sidebar.active {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
    }
    .menu-toggle {
        display: block;
    }
    .card-grid,
    .course-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    .notification-dropdown {
        width: 320px;
        right: -50px;
    }
    .welcome-banner {
        flex-direction: column;
        text-align: center;
    }
    .welcome-banner-right {
        flex-direction: column;
        width: 100%;
    }
    .welcome-banner-right .btn-whatsapp {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .search-box {
        width: 180px;
    }
    .user-profile span {
        display: none;
    }
    .card-grid,
    .course-grid {
        grid-template-columns: 1fr;
    }
    .mobile-nav {
        display: block;
    }
    .content {
        padding: 15px 20px 70px;
    }
    .status-steps {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .status-steps::before {
        display: none;
    }
    .status-step {
        flex-direction: row;
        gap: 15px;
        width: 100%;
    }
    .notification-dropdown {
        width: 280px;
        right: -80px;
    }
    .welcome-banner {
        padding: 20px;
    }
    .welcome-banner-left h1 {
        font-size: 22px;
    }
    .footer {
        flex-direction: column;
        text-align: center;
        padding: 15px 20px;
    }
    .footer .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    .admission-step {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .admission-buttons-container {
        justify-content: center;
    }
    .admission-steps-header h2 {
        font-size: 20px;
    }
}

@media (max-width: 576px) {
    .header {
        padding: 0 15px;
    }
    .search-box {
        display: none;
    }
    .content {
        padding: 10px 15px 70px;
    }
    .page-title h1 {
        font-size: 20px;
    }
    .notification-dropdown {
        width: 250px;
        right: -100px;
    }
    .welcome-banner-left h1 {
        font-size: 18px;
    }
    .welcome-banner-right .support-text {
        font-size: 12px;
    }
    .card {
        padding: 18px;
    }
    .card-value {
        font-size: 26px;
    }
}
/* ===== TOGGLE SWITCH FIXES ===== */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    cursor: pointer;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.toggle-track {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ccc;
    border-radius: 26px;
    transition: 0.3s;
}

.toggle-thumb {
    position: absolute;
    cursor: pointer;
    top: 2px;
    left: 2px;
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.toggle-switch input:checked + .toggle-track {
    background: var(--primary);
}

.toggle-switch input:checked + .toggle-track .toggle-thumb {
    transform: translateX(24px);
}

.toggle-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.toggle-item:last-child {
    border-bottom: none;
}

.toggle-label {
    font-weight: 500;
    color: var(--dark);
    font-size: 14px;
}

/* ===== THEME SELECT CARDS ===== */
.theme-select-card {
    cursor: pointer;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s;
}

.theme-select-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.theme-select-card.active {
    border-color: var(--primary);
    background: rgba(137, 12, 37, 0.05);
}

.theme-select-card .theme-preview {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin: 0 auto 10px;
    border: 2px solid transparent;
}

.theme-select-card.active .theme-preview {
    border-color: var(--primary);
}


/* ===== THEME VARIABLES - Ensure they apply globally ===== */
:root {
    --primary: #890C25;
    --secondary: #6a091d;
}


/* ============================================= */
/* CHARCOAL THEME - Real Colors */
/* ============================================= */
:root {
    --charcoal-primary: #656563;
    --charcoal-secondary: #4a4a4a;
    --charcoal-accent: #E2B58A;
    --charcoal-light: #CCCCCC;
}

/* Charcoal Theme Colors */
.theme-charcoal { 
    background: #656563; 
}

/* Charcoal Theme Button */
.btn-charcoal {
    background: #656563 !important;
    color: white !important;
}

.btn-charcoal:hover {
    background: #4a4a4a !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(101, 101, 99, 0.3);
}

/* Theme elements */
.charcoal-theme .sidebar {
    background: linear-gradient(180deg, #656563 0%, #4a4a4a 100%) !important;
}

.charcoal-theme .welcome-banner {
    background: linear-gradient(135deg, #656563 0%, #4a4a4a 100%) !important;
}

.charcoal-theme .admission-steps-header {
    background: linear-gradient(135deg, #656563 0%, #4a4a4a 100%) !important;
}

.charcoal-theme .admission-step-number {
    background: #656563 !important;
}

.charcoal-theme .auth-image {
    background: linear-gradient(135deg, #656563 0%, #4a4a4a 100%) !important;
}

.charcoal-theme .btn-auth {
    background: linear-gradient(135deg, #656563 0%, #4a4a4a 100%) !important;
}

/* Accent color for highlights */
.charcoal-theme .accent-color {
    color: #E2B58A;
}

.charcoal-theme .accent-bg {
    background: #E2B58A;
}

.charcoal-theme .light-color {
    color: #CCCCCC;
}

/* Apply theme colors to all elements */
.sidebar {
    background: linear-gradient(180deg, var(--primary) 0%, var(--secondary) 100%) !important;
}

.welcome-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%) !important;
}

.btn-primary {
    background: var(--primary) !important;
}

.btn-primary:hover {
    background: var(--secondary) !important;
}

.bg-primary {
    background: var(--primary) !important;
}

.badge {
    background: var(--primary) !important;
}

.admission-steps-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%) !important;
}

.admission-step-number {
    background: var(--primary) !important;
}

.admission-btn-primary {
    background: var(--primary) !important;
    color: white !important;
}

.admission-btn-primary:hover {
    background: var(--secondary) !important;
}

/* Auth pages theme */
.auth-image {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%) !important;
}

.btn-auth {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%) !important;
}

.btn-auth:hover {
    box-shadow: 0 10px 25px rgba(137, 12, 37, 0.4) !important;
}

.form-group input:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px rgba(137, 12, 37, 0.1) !important;
}

.form-options a {
    color: var(--primary) !important;
}

.form-options label input[type="checkbox"] {
    accent-color: var(--primary) !important;
}

.auth-switch a {
    color: var(--primary) !important;
}

.pm-modal-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%) !important;
}

/* ===== THEME OPTION STYLES FOR SETTINGS ===== */
.theme-select-card {
    cursor: pointer;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.theme-select-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.theme-select-card.active {
    border-color: var(--primary);
    background: rgba(137, 12, 37, 0.05);
}

.theme-select-card .theme-color {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin: 0 auto 8px;
    border: 2px solid transparent;
}

.theme-select-card.active .theme-color {
    border-color: var(--primary);
}

.theme-select-card span {
    font-size: 14px;
    font-weight: 500;
    color: var(--dark);
}
/* ===== USER AVATAR THEME TRANSITION ===== */
.user-profile img {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid var(--primary);
}

.user-profile img:hover {
    box-shadow: 0 0 0 4px rgba(137, 12, 37, 0.2);
}

/* ===== THEME COLOR PREVIEWS ===== */
.theme-color {
    transition: background 0.3s ease;
}

/* ===== AVATAR CONTAINER ===== */
.avatar-theme {
    transition: all 0.3s ease;
}


/* ===== ALERT STYLES ===== */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.alert-info {
    background: #cce5ff;
    color: #004085;
    border: 1px solid #b8daff;
}

/* ===== PROGRAM CARDS ===== */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.course-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: all 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.course-image {
    height: 180px;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s;
}

.course-card:hover .course-image img {
    transform: scale(1.05);
}

.course-content {
    padding: 20px;
}

.course-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dark);
}

.course-content p {
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 12px;
}

.course-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: var(--gray);
}

.course-info span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ===== FAQ STYLES ===== */
/* ===== FAQ STYLES - COMPLETE FIX ===== */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.faq-question {
    padding: 16px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    transition: background 0.2s ease;
    user-select: none;
    gap: 15px;
}

.faq-question:hover {
    background: #eef0f2;
}

.faq-question strong {
    flex: 1;
    font-size: 15px;
    color: #2c3e50;
    line-height: 1.5;
}

.faq-question i {
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: var(--primary);
    font-size: 14px;
}

.faq-question i.rotate {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 20px;
    background: white;
}

.faq-answer.open {
    max-height: 800px; /* Large enough for any answer */
    padding: 16px 20px;
    border-top: 1px solid #e9ecef;
}

.faq-answer p {
    margin: 0;
    font-size: 14px;
    line-height: 1.8;
    color: #495057;
}

/* ===== SEARCH INPUT ===== */
.faq-search-wrapper {
    margin-bottom: 25px;
}

.faq-search-wrapper input {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: white;
}

.faq-search-wrapper input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(137, 12, 37, 0.08);
}

.faq-search-wrapper input::placeholder {
    color: #adb5bd;
}

/* ===== ALERT ===== */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.alert-info {
    background: #cce5ff;
    color: #004085;
    border: 1px solid #b8daff;
}

/* ===== RESPONSIVE FAQ ===== */
@media (max-width: 576px) {
    .faq-question {
        padding: 14px 16px;
    }
    
    .faq-question strong {
        font-size: 14px;
    }
    
    .faq-answer.open {
        padding: 14px 16px;
    }
    
    .faq-answer p {
        font-size: 13px;
    }
}

/* ===== FACULTY CARDS ===== */
.faculty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.faculty-card {
    padding: 20px;
    border-radius: 12px;
    background: white;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.faculty-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-color: var(--primary);
}





/* ===== TOM SELECT CUSTOM STYLES ===== */
.ts-wrapper {
    width: 100% !important;
}

.ts-wrapper .ts-control {
    min-height: 46px !important;
    border-radius: 8px !important;
    border: 2px solid #e9ecef !important;
    box-shadow: none !important;
    padding: 8px 12px !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
    font-family: inherit !important;
}

.ts-wrapper .ts-control.focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(137, 12, 37, 0.1) !important;
}

.ts-wrapper .ts-control input {
    font-size: 14px !important;
    color: #2c3e50 !important;
    font-family: inherit !important;
}

.ts-wrapper .ts-control .item {
    padding: 4px 10px !important;
    background: #f8f9fa !important;
    border-radius: 4px !important;
    border: 1px solid #e9ecef !important;
    font-size: 14px !important;
    display: inline-flex !important;
    align-items: center !important;
}

.ts-wrapper .ts-control .item .program-faculty-tag {
    font-size: 11px !important;
    color: var(--primary) !important;
    background: rgba(137, 12, 37, 0.08) !important;
    padding: 1px 8px !important;
    border-radius: 12px !important;
    margin-left: 6px !important;
}

.ts-dropdown {
    border-radius: 0 0 8px 8px !important;
    border: 2px solid #e9ecef !important;
    border-top: none !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
    font-size: 14px !important;
    z-index: 9999 !important;
    margin-top: -1px !important;
}

.ts-dropdown .option {
    padding: 10px 15px !important;
    border-bottom: 1px solid #f8f9fa !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    cursor: pointer !important;
}

.ts-dropdown .option:last-child {
    border-bottom: none !important;
}

.ts-dropdown .option .program-name {
    font-weight: 500 !important;
    color: #2c3e50 !important;
}

.ts-dropdown .option .program-faculty {
    font-size: 11px !important;
    padding: 2px 10px !important;
    border-radius: 12px !important;
    font-weight: 500 !important;
}

.ts-dropdown .option.active {
    background: #f0f7ff !important;
}

.ts-dropdown .option.selected {
    background: var(--primary) !important;
    color: white !important;
}

.ts-dropdown .option.selected .program-name {
    color: white !important;
}

.ts-dropdown .option.selected .program-faculty {
    color: rgba(255,255,255,0.9) !important;
    background: rgba(255,255,255,0.2) !important;
}

.ts-dropdown .option:hover {
    background: #f8f9fa !important;
}

.ts-dropdown .option.selected:hover {
    background: var(--primary) !important;
}

.ts-dropdown .no-results {
    padding: 15px !important;
    text-align: center !important;
    color: #6c757d !important;
    font-style: italic !important;
}

/* Remove button styling */
.ts-wrapper .ts-control .item .remove {
    border-left: 1px solid #e9ecef !important;
    padding: 0 6px !important;
    color: #6c757d !important;
    margin-left: 6px !important;
    cursor: pointer !important;
}

.ts-wrapper .ts-control .item .remove:hover {
    background: #dc3545 !important;
    color: white !important;
    border-radius: 0 4px 4px 0 !important;
}

/* Dropdown input (search inside dropdown) */
.ts-dropdown .ts-dropdown-input {
    padding: 10px 15px !important;
    border-bottom: 1px solid #e9ecef !important;
}

.ts-dropdown .ts-dropdown-input input {
    width: 100% !important;
    padding: 8px 12px !important;
    border: 1px solid #e9ecef !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    outline: none !important;
    transition: all 0.3s !important;
}

.ts-dropdown .ts-dropdown-input input:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(137, 12, 37, 0.1) !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 576px) {
    .ts-wrapper .ts-control {
        min-height: 40px !important;
        padding: 6px 10px !important;
        font-size: 13px !important;
    }
    
    .ts-wrapper .ts-control input {
        font-size: 13px !important;
    }
    
    .ts-dropdown {
        font-size: 13px !important;
    }
    
    .ts-dropdown .option {
        padding: 8px 12px !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 4px !important;
    }
    
    .ts-dropdown .option .program-faculty {
        font-size: 11px !important;
    }
}


/* ============================================= */
/* Upload Progress Bar Styles */
/* ============================================= */
#uploadProgressContainer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 20px;
}

#uploadProgressContainer .progress-box {
    background: white;
    border-radius: 12px;
    padding: 30px 40px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

#uploadProgressContainer .progress-box h3 {
    color: var(--primary);
    margin-bottom: 10px;
    text-align: center;
}

#uploadProgressContainer .progress-box .progress-text {
    color: #666;
    text-align: center;
    margin-bottom: 15px;
    font-size: 14px;
}

#uploadProgressContainer .progress-box .progress-track {
    background: #e9ecef;
    border-radius: 10px;
    height: 10px;
    overflow: hidden;
    position: relative;
}

#uploadProgressContainer .progress-box .progress-track .progress-bar {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    height: 100%;
    width: 0%;
    border-radius: 10px;
    transition: width 0.3s ease;
}

#uploadProgressContainer .progress-box .progress-percent {
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

#uploadProgressContainer .progress-box .cancel-btn {
    display: block;
    margin: 15px auto 0;
    padding: 8px 25px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
}

#uploadProgressContainer .progress-box .cancel-btn:hover {
    background: #c82333;
}

@media (max-width: 576px) {
    #uploadProgressContainer .progress-box {
        padding: 20px;
        margin: 10px;
    }
}

/* ===== MOBILE OPTIMIZATIONS - ADD AT THE END OF YOUR CSS ===== */

/* ============================================= */
/* SMALL SCREEN OPTIMIZATIONS (max-width: 576px) */
/* ============================================= */

@media (max-width: 576px) {
    /* ===== HEADER ===== */
    .header {
        padding: 0 12px;
        height: 60px;
    }
    
    .header .search-box {
        display: none;
    }
    
    .header-right {
        gap: 8px;
    }
    
    .header-right .theme-selector,
    .header-right .notification {
        padding: 6px 8px;
    }
    
    .header-right .theme-selector i,
    .header-right .notification i {
        font-size: 18px;
    }
    
    .user-profile {
        padding: 4px 8px;
    }
    
    .user-profile img {
        width: 32px;
        height: 32px;
        margin-right: 6px;
    }
    
    .user-profile span {
        display: none;
    }
    
    .notification-badge {
        width: 16px;
        height: 16px;
        font-size: 9px;
        top: 0;
        right: 0;
    }

    /* ===== SIDEBAR ===== */
    .sidebar {
        width: 280px;
    }
    
    .sidebar-header {
        padding: 0 16px 16px;
    }
    
    .sidebar-header img {
        width: 38px;
        height: 38px;
        padding: 6px;
    }
    
    .sidebar-header h2 {
        font-size: 16px;
    }
    
    .sidebar-menu a {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .sidebar-menu i {
        font-size: 16px;
        width: 20px;
    }

    /* ===== CONTENT ===== */
    .content {
        padding: 12px 10px 70px;
    }

    /* ===== WELCOME BANNER ===== */
    .welcome-banner {
        padding: 16px 18px;
        flex-direction: column;
        text-align: center;
        border-radius: 10px;
        gap: 12px;
    }
    
    .welcome-banner-left h1 {
        font-size: 20px;
    }
    
    .welcome-banner-left p {
        font-size: 13px;
    }
    
    .welcome-banner-right {
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }
    
    .welcome-banner-right .support-text {
        font-size: 12px;
    }
    
    .welcome-banner-right .btn-whatsapp {
        width: 100%;
        justify-content: center;
        padding: 10px 16px;
        font-size: 13px;
    }

    /* ===== PAGE TITLE ===== */
    .page-title {
        margin-bottom: 16px;
    }
    
    .page-title h1 {
        font-size: 20px;
    }
    
    .page-title p {
        font-size: 13px;
    }

    /* ===== APPLICATION FORM ===== */
    #applicationForm {
        padding: 0 !important;
    }
    
    #applicationForm .card {
        padding: 16px !important;
        border-radius: 10px;
    }
    
    .form-row {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    
    .form-group {
        margin-bottom: 12px !important;
    }
    
    .form-group label {
        font-size: 13px !important;
        margin-bottom: 4px !important;
    }
    
    .form-group .input-wrapper input,
    .form-group .input-wrapper select,
    .form-group .input-wrapper textarea {
        padding: 10px 12px !important;
        font-size: 14px !important;
        border-radius: 8px !important;
        min-height: 42px;
    }
    
    .form-group .input-wrapper .input-icon {
        font-size: 14px !important;
        left: 12px !important;
    }
    
    .form-group .input-wrapper .password-toggle {
        font-size: 14px !important;
        right: 12px !important;
    }
    
    .form-group textarea {
        min-height: 80px !important;
        font-size: 14px !important;
    }

    /* ===== BUTTONS ===== */
    .btn {
        padding: 10px 18px !important;
        font-size: 13px !important;
        border-radius: 25px !important;
        width: 100%;
        justify-content: center;
    }
    
    .btn-primary {
        padding: 12px 18px !important;
        font-size: 14px !important;
    }
    
    .status-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .status-actions .btn {
        width: 100%;
    }

    /* ===== CARDS ===== */
    .card {
        padding: 16px !important;
        border-radius: 10px !important;
    }
    
    .card-grid {
        grid-template-columns: 1fr !important;
        gap: 14px;
        margin-bottom: 20px;
    }
    
    .card-value {
        font-size: 24px !important;
    }
    
    .card-title {
        font-size: 14px !important;
    }
    
    .card-icon {
        width: 42px !important;
        height: 42px !important;
        font-size: 16px !important;
    }

    /* ===== STATUS TRACKER ===== */
    .status-tracker {
        padding: 16px !important;
        border-radius: 10px !important;
    }
    
    .status-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 16px;
    }
    
    .status-header h2 {
        font-size: 16px;
    }
    
    .badge {
        font-size: 11px !important;
        padding: 4px 14px !important;
    }
    
    .status-steps {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin: 16px 0;
    }
    
    .status-steps::before {
        display: none;
    }
    
    .status-step {
        flex-direction: row;
        gap: 14px;
        width: 100%;
        align-items: center;
    }
    
    .step-icon {
        width: 32px;
        height: 32px;
        font-size: 12px;
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    .step-label {
        font-size: 12px !important;
        text-align: left !important;
    }
    
    .status-actions {
        flex-direction: column;
        gap: 10px;
        margin-top: 16px;
    }
    
    .status-actions .btn {
        width: 100%;
    }

    /* ===== COURSE CARDS ===== */
    .course-grid {
        grid-template-columns: 1fr !important;
        gap: 14px;
    }
    
    .course-card {
        border-radius: 10px !important;
    }
    
    .course-image {
        height: 140px !important;
    }
    
    .course-content {
        padding: 14px 16px !important;
    }
    
    .course-title {
        font-size: 15px !important;
    }
    
    .course-content p {
        font-size: 13px !important;
    }
    
    .course-info {
        font-size: 12px !important;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .course-info span {
        font-size: 12px !important;
    }

    /* ===== SECTION TITLE ===== */
    .section-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 14px;
    }
    
    .section-title h2 {
        font-size: 17px !important;
    }
    
    .view-all {
        font-size: 13px !important;
    }

    /* ===== PROGRAM SELECT (Tom Select) ===== */
    .ts-wrapper .ts-control {
        min-height: 42px !important;
        padding: 6px 10px !important;
        font-size: 14px !important;
    }
    
    .ts-dropdown {
        font-size: 13px !important;
        max-height: 200px !important;
    }
    
    .ts-dropdown .option {
        padding: 8px 12px !important;
    }

    /* ===== PAYMENT MODAL ===== */
    .pm-modal {
        max-width: 95% !important;
        width: 95% !important;
        margin: 10px !important;
        border-radius: 12px !important;
    }
    
    .pm-modal-header {
        padding: 16px !important;
    }
    
    .pm-modal-title {
        font-size: 18px !important;
    }
    
    .pm-modal-body {
        padding: 16px !important;
    }
    
    .pm-payment-details {
        padding: 14px !important;
    }
    
    .pm-payment-row {
        padding: 10px 0 !important;
        font-size: 13px !important;
        flex-wrap: wrap;
        gap: 4px;
    }
    
    .pm-payment-row.pm-total-fee {
        font-size: 16px !important;
    }
    
    .pm-payment-actions {
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    .pm-payment-actions .pm-btn-cancel,
    .pm-payment-actions .pm-btn-confirm {
        width: 100% !important;
        padding: 12px !important;
        font-size: 14px !important;
    }
    
    .pm-close-btn {
        width: 28px !important;
        height: 28px !important;
        font-size: 14px !important;
    }

    /* ===== DOCUMENT UPLOAD MODAL ===== */
    .document-upload-modal .modal-dialog {
        max-width: 95% !important;
        width: 95% !important;
        margin: 10px !important;
    }
    
    .document-upload-modal .modal-content {
        padding: 14px !important;
        border-radius: 12px !important;
    }
    
    .document-upload-modal .modal-header {
        padding-bottom: 10px !important;
    }
    
    .document-upload-modal .modal-header h5 {
        font-size: 16px !important;
    }
    
    .document-upload-modal .modal-body {
        padding: 12px 0 !important;
    }
    
    .document-upload-modal .modal-footer {
        flex-direction: column !important;
        gap: 8px !important;
    }
    
    .document-upload-modal .modal-footer button {
        width: 100% !important;
        padding: 10px !important;
        font-size: 14px !important;
    }
    
    .document-upload-modal .form-group {
        margin-bottom: 12px !important;
    }
    
    .document-upload-modal .form-group label {
        font-size: 13px !important;
    }
    
    .document-upload-modal .form-control {
        padding: 10px 12px !important;
        font-size: 14px !important;
        min-height: 42px !important;
    }

    /* ===== ADMISSION STEPS ===== */
    .admission-steps-container {
        border-radius: 10px !important;
    }
    
    .admission-steps-header {
        padding: 20px !important;
    }
    
    .admission-steps-header h2 {
        font-size: 18px !important;
    }
    
    .admission-steps-header p {
        font-size: 13px !important;
    }
    
    .admission-steps-content {
        padding: 16px !important;
    }
    
    .admission-step {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        padding: 12px 0 !important;
        gap: 8px !important;
    }
    
    .admission-step-number {
        width: 34px !important;
        height: 34px !important;
        font-size: 14px !important;
        flex-shrink: 0 !important;
    }
    
    .admission-step-content h4 {
        font-size: 14px !important;
    }
    
    .admission-step-content p {
        font-size: 13px !important;
    }
    
    .admission-buttons-container {
        flex-direction: column !important;
        gap: 10px !important;
        margin-top: 16px !important;
    }
    
    .admission-buttons-container .admission-btn {
        width: 100% !important;
        justify-content: center !important;
        padding: 10px 16px !important;
        font-size: 13px !important;
    }
    
    .admission-documents-section {
        margin-top: 16px !important;
        padding-top: 16px !important;
    }
    
    .admission-documents-section h4 {
        font-size: 14px !important;
    }
    
    .admission-documents-section p {
        font-size: 13px !important;
    }

    /* ===== NOTIFICATION DROPDOWN ===== */
    .notification-dropdown {
        width: 280px !important;
        right: -20px !important;
        padding: 14px !important;
        max-height: 350px !important;
    }
    
    .notification-item {
        padding: 10px !important;
    }
    
    .notification-item i {
        font-size: 16px !important;
        margin-right: 10px !important;
    }
    
    .notification-content p {
        font-size: 13px !important;
    }

    /* ===== PROFILE DROPDOWN ===== */
    .profile-dropdown {
        width: 190px !important;
        right: -10px !important;
    }
    
    .profile-dropdown a {
        padding: 10px 14px !important;
        font-size: 13px !important;
    }

    /* ===== THEME DROPDOWN ===== */
    .theme-dropdown {
        width: 170px !important;
        right: -10px !important;
        padding: 10px !important;
    }

    /* ===== FAQ ===== */
    .faq-container {
        padding: 0 !important;
    }
    
    .faq-item {
        border-radius: 8px !important;
        margin-bottom: 10px !important;
    }
    
    .faq-question {
        padding: 12px 14px !important;
    }
    
    .faq-question strong {
        font-size: 14px !important;
    }
    
    .faq-answer.open {
        padding: 12px 14px !important;
    }
    
    .faq-answer p {
        font-size: 13px !important;
        line-height: 1.6 !important;
    }
    
    .faq-search-wrapper input {
        padding: 12px 16px !important;
        font-size: 14px !important;
        border-radius: 25px !important;
    }

    /* ===== FACULTY CARDS ===== */
    .faculty-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }
    
    .faculty-card {
        padding: 16px !important;
        border-radius: 10px !important;
    }
    
    .faculty-card .faculty-icon {
        width: 48px !important;
        height: 48px !important;
        font-size: 20px !important;
    }
    
    .faculty-card h3 {
        font-size: 15px !important;
    }

    /* ===== FOOTER ===== */
    .footer {
        flex-direction: column !important;
        text-align: center !important;
        padding: 14px 16px !important;
        gap: 8px !important;
    }
    
    .footer p {
        font-size: 12px !important;
    }
    
    .footer .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px !important;
    }
    
    .footer .footer-links a {
        font-size: 12px !important;
    }

    /* ===== MOBILE NAV ===== */
    .mobile-nav {
        display: block !important;
        padding: 4px 0 !important;
    }
    
    .mobile-nav-menu {
        padding: 6px 0 !important;
    }
    
    .mobile-nav-menu a {
        font-size: 10px !important;
        padding: 4px 8px !important;
    }
    
    .mobile-nav-menu i {
        font-size: 18px !important;
        margin-bottom: 2px !important;
    }

    /* ===== LOADER ===== */
    .modern-loader {
        width: 32px !important;
        height: 32px !important;
        border-width: 3px !important;
    }

    /* ===== TOGGLE SWITCH ===== */
    .toggle-switch {
        width: 42px !important;
        height: 22px !important;
    }
    
    .toggle-switch .toggle-thumb {
        width: 18px !important;
        height: 18px !important;
    }
    
    .toggle-switch input:checked + .toggle-track .toggle-thumb {
        transform: translateX(20px) !important;
    }
    
    .toggle-item {
        padding: 10px 0 !important;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .toggle-label {
        font-size: 13px !important;
    }

    /* ============================================= */
    /* PROGRESS BAR OVERLAY */
    /* ============================================= */
    #uploadProgressContainer .progress-box {
        padding: 20px !important;
        margin: 10px !important;
        border-radius: 12px !important;
    }
    
    #uploadProgressContainer .progress-box h3 {
        font-size: 18px !important;
    }
    
    #uploadProgressContainer .progress-box .progress-text {
        font-size: 13px !important;
    }
    
    #uploadProgressContainer .progress-box .progress-percent {
        font-size: 13px !important;
    }
    
    #uploadProgressContainer .progress-box .cancel-btn {
        padding: 8px 20px !important;
        font-size: 13px !important;
    }

    /* ============================================= */
    /* THEME SELECT CARDS */
    /* ============================================= */
    .theme-select-card {
        padding: 10px !important;
    }
    
    .theme-select-card .theme-preview {
        width: 32px !important;
        height: 32px !important;
    }
    
    .theme-select-card span {
        font-size: 12px !important;
    }

    /* ============================================= */
    /* INSTRUCTIONS CARD */
    /* ============================================= */
    .instructions-card {
        padding: 14px !important;
        border-radius: 10px !important;
        margin-bottom: 20px !important;
    }
    
    .instructions-card h4 {
        font-size: 15px !important;
    }
    
    .instructions-card ul {
        font-size: 13px !important;
        padding-left: 16px !important;
    }
    
    .instructions-card ul li {
        padding: 4px 0 !important;
    }

    /* ============================================= */
    /* VIEW APPLICATION MODAL */
    /* ============================================= */
    .application-detail-modal > div,
    .document-view-modal > div {
        padding: 16px !important;
        margin: 10px !important;
        border-radius: 12px !important;
        max-width: 95% !important;
    }
    
    .application-detail-modal > div h3,
    .document-view-modal > div h3 {
        font-size: 18px !important;
    }
    
    .application-detail-modal > div > div:not(:first-child):not(:last-child) {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }
    
    .application-detail-modal > div > div:not(:first-child):not(:last-child) div {
        padding: 4px 0 !important;
    }
    
    .application-detail-modal > div > div:not(:first-child):not(:last-child) strong {
        display: block !important;
        font-size: 13px !important;
    }
    
    .application-detail-modal > div > div:not(:first-child):not(:last-child) div span {
        font-size: 14px !important;
    }

    /* ============================================= */
    /* SUCCESS MESSAGE */
    /* ============================================= */
    .success-message {
        padding: 20px !important;
        border-radius: 10px !important;
    }
    
    .success-message h2 {
        font-size: 20px !important;
    }
    
    .success-message p {
        font-size: 14px !important;
    }
    
    .success-message .btn {
        padding: 10px 20px !important;
        font-size: 13px !important;
    }

    /* ============================================= */
    /* DOCUMENT LIST */
    /* ============================================= */
    .document-list-item {
        padding: 10px 12px !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }
    
    .document-list-item .doc-name {
        font-size: 13px !important;
    }
    
    .document-list-item .doc-btn {
        padding: 6px 14px !important;
        font-size: 12px !important;
    }

    /* ============================================= */
    /* SELECT DROPDOWNS */
    /* ============================================= */
    select.form-control {
        font-size: 14px !important;
        padding: 10px 12px !important;
        min-height: 42px !important;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236c757d' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 12px center;
        padding-right: 36px !important;
    }

    /* ============================================= */
    /* FILE INPUTS */
    /* ============================================= */
    input[type="file"] {
        font-size: 13px !important;
        padding: 8px !important;
        min-height: 42px !important;
    }
    
    input[type="file"]::file-selector-button {
        padding: 6px 12px !important;
        font-size: 12px !important;
        margin-right: 10px !important;
    }
}

/* ============================================= */
/* EXTRA SMALL SCREENS (max-width: 380px) */
/* ============================================= */
@media (max-width: 380px) {
    .welcome-banner {
        padding: 12px 14px !important;
    }
    
    .welcome-banner-left h1 {
        font-size: 18px !important;
    }
    
    .card {
        padding: 12px !important;
    }
    
    .form-group .input-wrapper input,
    .form-group .input-wrapper select,
    .form-group .input-wrapper textarea {
        padding: 8px 10px !important;
        font-size: 13px !important;
        min-height: 38px !important;
    }
    
    .btn {
        padding: 8px 14px !important;
        font-size: 12px !important;
    }
    
    .pm-modal {
        max-width: 98% !important;
        width: 98% !important;
    }
    
    .pm-modal-body {
        padding: 12px !important;
    }
    
    .document-upload-modal .modal-dialog {
        max-width: 98% !important;
        width: 98% !important;
    }
    
    .document-upload-modal .modal-content {
        padding: 10px !important;
    }
    
    .notification-dropdown {
        width: 260px !important;
        right: -30px !important;
    }
}

/* ============================================= */
/* SAFE AREA FOR NOTCHED PHONES */
/* ============================================= */
@supports (padding: max(0px)) {
    .content {
        padding-left: max(10px, env(safe-area-inset-left)) !important;
        padding-right: max(10px, env(safe-area-inset-right)) !important;
        padding-bottom: max(70px, env(safe-area-inset-bottom)) !important;
    }
    
    .mobile-nav {
        padding-bottom: max(4px, env(safe-area-inset-bottom)) !important;
    }
}

/* ============================================= */
/* TOUCH FRIENDLY TARGET SIZES */
/* ============================================= */
@media (max-width: 768px) {
    button, 
    .btn, 
    .admission-btn,
    .clickable,
    .theme-option,
    .theme-select-card,
    .faq-question,
    .nav-item,
    .toggle-switch {
        min-height: 44px !important;
        min-width: 44px !important;
    }
    
    .btn-sm,
    .btn-sm button {
        min-height: 36px !important;
        min-width: 36px !important;
    }
}

/* ============================================= */
/* SMOOTH SCROLLING */
/* ============================================= */
@media (max-width: 768px) {
    html {
        scroll-behavior: smooth;
        -webkit-tap-highlight-color: transparent;
    }
    
    * {
        -webkit-tap-highlight-color: transparent;
    }
}

/* ============================================= */
/* BETTER MODAL Z-INDEX FOR MOBILE */
/* ============================================= */
@media (max-width: 768px) {
    .pm-modal-overlay,
    .document-upload-modal,
    #uploadProgressContainer,
    .application-detail-modal,
    .document-view-modal {
        z-index: 99999 !important;
    }
}

/* ============================================= */
/* APPLICATION DETAIL MODAL - MOBILE OPTIMIZED */
/* ============================================= */

.application-detail-modal,
.document-view-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    padding: 20px;
}

.application-detail-modal > div,
.document-view-modal > div {
    background: white;
    border-radius: 16px;
    max-width: 700px;
    width: 100%;
    max-height: 92vh;
    overflow-y: auto;
    padding: 30px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease;
}

/* Close button */
.application-detail-modal .modal-close,
.document-view-modal .modal-close {
    position: sticky;
    top: 0;
    float: right;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    z-index: 10;
    padding: 5px 10px;
    transition: color 0.3s;
}

.application-detail-modal .modal-close:hover,
.document-view-modal .modal-close:hover {
    color: #333;
}

/* Modal Header */
.application-detail-modal h3,
.document-view-modal h3 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Application Details Grid */
.application-detail-modal .details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 20px;
    margin-bottom: 20px;
}

.application-detail-modal .details-grid .detail-item {
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
}

.application-detail-modal .details-grid .detail-item strong {
    display: block;
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.application-detail-modal .details-grid .detail-item span {
    font-size: 15px;
    color: #333;
    font-weight: 500;
}

/* Status Badges */
.application-detail-modal .status-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.application-detail-modal .status-section .status-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.application-detail-modal .status-section .status-item .status-label {
    color: #666;
}

.application-detail-modal .status-section .status-item .status-value {
    font-weight: 600;
}

.status-value.paid {
    color: #28a745;
}

.status-value.pending {
    color: #dc3545;
}

.status-value.review {
    color: #ffc107;
}

.status-value.approved {
    color: #28a745;
}

/* Action Buttons */
.application-detail-modal .action-buttons,
.document-view-modal .action-buttons {
    margin-top: 20px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.application-detail-modal .action-buttons .btn,
.document-view-modal .action-buttons .btn {
    padding: 10px 24px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.application-detail-modal .action-buttons .btn-primary,
.document-view-modal .action-buttons .btn-primary {
    background: var(--primary);
    color: white;
}

.application-detail-modal .action-buttons .btn-primary:hover,
.document-view-modal .action-buttons .btn-primary:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(137, 12, 37, 0.3);
}

.application-detail-modal .action-buttons .btn-success,
.document-view-modal .action-buttons .btn-success {
    background: #28a745;
    color: white;
}

.application-detail-modal .action-buttons .btn-success:hover,
.document-view-modal .action-buttons .btn-success:hover {
    background: #218838;
    transform: translateY(-2px);
}

.application-detail-modal .action-buttons .btn-outline,
.document-view-modal .action-buttons .btn-outline {
    background: transparent;
    border: 1px solid #ccc;
    color: #333;
}

.application-detail-modal .action-buttons .btn-outline:hover,
.document-view-modal .action-buttons .btn-outline:hover {
    background: #f5f5f5;
}

.application-detail-modal .action-buttons .btn-info,
.document-view-modal .action-buttons .btn-info {
    background: #17a2b8;
    color: white;
}

.application-detail-modal .action-buttons .btn-info:hover,
.document-view-modal .action-buttons .btn-info:hover {
    background: #138496;
}

/* ============================================= */
/* DOCUMENT VIEW MODAL - MOBILE OPTIMIZED */
/* ============================================= */

.document-view-modal .document-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.document-view-modal .document-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid var(--primary);
    transition: all 0.2s;
}

.document-view-modal .document-item:hover {
    background: #f0f0f0;
}

.document-view-modal .document-item .doc-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.document-view-modal .document-item .doc-info i {
    color: var(--primary);
    font-size: 18px;
    width: 24px;
}

.document-view-modal .document-item .doc-info .doc-name {
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.document-view-modal .document-item .doc-view-btn {
    padding: 6px 18px;
    font-size: 13px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.document-view-modal .document-item .doc-view-btn:hover {
    background: var(--secondary);
    transform: scale(1.02);
}

.document-view-modal .document-actions {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.document-view-modal .document-actions .btn {
    padding: 10px 24px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.document-view-modal .document-actions .btn-success {
    background: #28a745;
    color: white;
}

.document-view-modal .document-actions .btn-success:hover {
    background: #218838;
    transform: translateY(-2px);
}

.document-view-modal .document-actions .btn-outline {
    background: transparent;
    border: 1px solid #ccc;
    color: #333;
}

.document-view-modal .document-actions .btn-outline:hover {
    background: #f5f5f5;
}

.document-view-modal .no-documents {
    text-align: center;
    padding: 30px 0;
    color: #999;
    font-size: 16px;
}

/* ============================================= */
/* MOBILE RESPONSIVE - APPLICATION DETAIL MODAL */
/* ============================================= */

@media (max-width: 768px) {
    .application-detail-modal,
    .document-view-modal {
        padding: 10px;
        align-items: flex-start;
        padding-top: 20px;
    }
    
    .application-detail-modal > div,
    .document-view-modal > div {
        padding: 20px;
        max-height: 95vh;
        border-radius: 12px;
        margin-top: 0;
    }
    
    .application-detail-modal .modal-close,
    .document-view-modal .modal-close {
        font-size: 24px;
        padding: 5px;
    }
    
    .application-detail-modal h3,
    .document-view-modal h3 {
        font-size: 18px;
        margin-bottom: 16px;
    }
    
    .application-detail-modal .details-grid {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    
    .application-detail-modal .details-grid .detail-item {
        padding: 6px 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
    }
    
    .application-detail-modal .details-grid .detail-item strong {
        font-size: 12px;
        min-width: 100px;
        display: inline;
    }
    
    .application-detail-modal .details-grid .detail-item span {
        font-size: 14px;
        text-align: right;
        word-break: break-word;
        flex: 1;
    }
    
    .application-detail-modal .status-section {
        flex-direction: column;
        gap: 8px;
    }
    
    .application-detail-modal .action-buttons,
    .document-view-modal .action-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .application-detail-modal .action-buttons .btn,
    .document-view-modal .action-buttons .btn {
        width: 100%;
        justify-content: center;
        padding: 12px;
        font-size: 14px;
    }
    
    .application-detail-modal .action-buttons .btn span,
    .document-view-modal .action-buttons .btn span {
        display: none;
    }
    
    .document-view-modal .document-item {
        padding: 12px 14px;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .document-view-modal .document-item .doc-info {
        flex: 1;
        min-width: 120px;
    }
    
    .document-view-modal .document-item .doc-info .doc-name {
        font-size: 13px;
    }
    
    .document-view-modal .document-item .doc-view-btn {
        padding: 6px 14px;
        font-size: 12px;
        width: auto;
        min-width: 60px;
    }
    
    .document-view-modal .document-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .document-view-modal .document-actions .btn {
        width: 100%;
        justify-content: center;
        padding: 12px;
    }
}

/* ============================================= */
/* VERY SMALL SCREENS (max-width: 480px) */
/* ============================================= */

@media (max-width: 480px) {
    .application-detail-modal > div,
    .document-view-modal > div {
        padding: 16px;
        border-radius: 10px;
        max-height: 98vh;
    }
    
    .application-detail-modal h3,
    .document-view-modal h3 {
        font-size: 16px;
    }
    
    .application-detail-modal .details-grid .detail-item strong {
        font-size: 11px;
        min-width: 80px;
    }
    
    .application-detail-modal .details-grid .detail-item span {
        font-size: 13px;
    }
    
    .application-detail-modal .status-section .status-item {
        font-size: 13px;
    }
    
    .application-detail-modal .action-buttons .btn,
    .document-view-modal .action-buttons .btn {
        font-size: 13px;
        padding: 10px;
    }
    
    .document-view-modal .document-item {
        padding: 10px 12px;
    }
    
    .document-view-modal .document-item .doc-info .doc-name {
        font-size: 12px;
    }
    
    .document-view-modal .document-item .doc-view-btn {
        font-size: 11px;
        padding: 4px 12px;
        min-width: 50px;
    }
    
    .document-view-modal .modal-close,
    .application-detail-modal .modal-close {
        font-size: 20px;
    }
    
    /* Full screen on very small devices */
    .application-detail-modal > div,
    .document-view-modal > div {
        max-width: 100%;
        width: 100%;
        max-height: 100vh;
        border-radius: 0;
        padding: 16px;
        margin: 0;
    }
    
    .application-detail-modal,
    .document-view-modal {
        padding: 0;
    }
}

/* ============================================= */
/* ANIMATIONS */
/* ============================================= */

@keyframes modalSlideIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.application-detail-modal,
.document-view-modal {
    animation: fadeIn 0.2s ease;
}

/* ============================================= */
/* SCROLLBAR STYLING */
/* ============================================= */

.application-detail-modal > div::-webkit-scrollbar,
.document-view-modal > div::-webkit-scrollbar {
    width: 4px;
}

.application-detail-modal > div::-webkit-scrollbar-track,
.document-view-modal > div::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.application-detail-modal > div::-webkit-scrollbar-thumb,
.document-view-modal > div::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.application-detail-modal > div::-webkit-scrollbar-thumb:hover,
.document-view-modal > div::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

/* ============================================= */
/* FORM INPUTS - APPLICATION & ENROLLMENT FORMS */
/* ============================================= */

/* ===== FORM GROUP ===== */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
    letter-spacing: 0.3px;
}

.form-group label .text-danger {
    color: #dc3545;
    font-weight: 700;
    margin-left: 2px;
}

.form-group .form-text {
    display: block;
    margin-top: 4px;
    color: #6c757d;
    font-size: 12px;
}

/* ===== INPUT FIELDS ===== */
.form-control {
    width: 100%;
    padding: 11px 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 14px;
    color: #333;
    background: #fff;
    transition: all 0.3s ease;
    outline: none;
    font-family: inherit;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(137, 12, 37, 0.1);
    background: #fff;
}

.form-control:hover {
    border-color: #ced4da;
}

.form-control::placeholder {
    color: #adb5bd;
    font-size: 13px;
}

.form-control:disabled,
.form-control[readonly] {
    background: #e9ecef;
    cursor: not-allowed;
    opacity: 0.7;
}

/* ===== TEXTAREA ===== */
textarea.form-control {
    resize: vertical;
    min-height: 80px;
    max-height: 200px;
    font-family: inherit;
}

/* ===== SELECT DROPDOWNS ===== */
select.form-control {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236c757d' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}

select.form-control option {
    padding: 8px 12px;
}

select.form-control optgroup {
    font-weight: 700;
    color: var(--primary);
}

/* ===== FILE INPUTS ===== */
input[type="file"] {
    padding: 10px 12px;
    border: 2px dashed #e9ecef;
    border-radius: 10px;
    background: #fafbfc;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    width: 100%;
    color: #333;
}

input[type="file"]:hover {
    border-color: var(--primary);
    background: #f8f9fa;
}

input[type="file"]:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(137, 12, 37, 0.1);
    outline: none;
}

input[type="file"]::file-selector-button {
    padding: 8px 18px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    margin-right: 12px;
    transition: all 0.3s ease;
}

input[type="file"]::file-selector-button:hover {
    background: var(--secondary);
    transform: scale(1.02);
}

/* ===== RADIO BUTTONS ===== */
.form-check {
    display: inline-flex;
    align-items: center;
    margin-right: 18px;
    cursor: pointer;
    padding: 6px 0;
}

.form-check-input {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    accent-color: var(--primary);
    cursor: pointer;
    border: 2px solid #ced4da;
    border-radius: 50%;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.form-check-input:checked {
    border-color: var(--primary);
}

.form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(137, 12, 37, 0.15);
    outline: none;
}

.form-check-label {
    font-size: 14px;
    color: #333;
    cursor: pointer;
    user-select: none;
}

/* ===== CHECKBOXES ===== */
input[type="checkbox"] {
    width: 17px;
    height: 17px;
    accent-color: var(--primary);
    cursor: pointer;
    border: 2px solid #ced4da;
    border-radius: 4px;
    transition: all 0.2s ease;
}

input[type="checkbox"]:focus {
    box-shadow: 0 0 0 3px rgba(137, 12, 37, 0.15);
    outline: none;
}

/* ===== FORM ROW (Grid) ===== */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

/* ===== INSTRUCTION HEADER ===== */
.instruction-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: #2c3e50;
}

.instruction-header i {
    color: var(--primary);
    font-size: 22px;
}

.instruction-header h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: var(--dark);
}

.instruction-header h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: var(--dark);
}

/* ===== STEPS ===== */
.step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.step:last-child {
    border-bottom: none;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
}

.step strong {
    color: var(--dark);
    font-weight: 600;
}

.step span:not(.step-number) {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
}

/* ===== NOTE ===== */
.note {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 12px 16px;
    margin: 12px 0;
    border-radius: 0 6px 6px 0;
    font-size: 14px;
    color: #856404;
}

.note strong {
    color: #856404;
}

/* ===== WHATSAPP CONTACT ===== */
.whatsapp-contact {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.whatsapp-contact:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    color: white;
    text-decoration: none;
}

.whatsapp-contact i {
    font-size: 20px;
}

/* ===== FORM VALIDATION ===== */
.form-control.is-valid {
    border-color: #28a745;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2328a745' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px;
}

.form-control.is-invalid {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23dc3545' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='8' x2='12' y2='12'/%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .form-group {
        margin-bottom: 14px;
    }
    
    .form-group label {
        font-size: 13px;
    }
    
    .form-control {
        padding: 10px 12px;
        font-size: 13px;
        border-radius: 8px;
    }
    
    input[type="file"] {
        padding: 8px 10px;
        font-size: 13px;
    }
    
    input[type="file"]::file-selector-button {
        padding: 6px 14px;
        font-size: 12px;
    }
    
    .step {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .step-number {
        min-width: 24px;
        height: 24px;
        font-size: 12px;
    }
    
    .step span:not(.step-number) {
        font-size: 13px;
    }
    
    .whatsapp-contact {
        width: 100%;
        justify-content: center;
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .form-control {
        padding: 8px 10px;
        font-size: 13px;
        border-radius: 6px;
    }
    
    .form-group label {
        font-size: 12px;
    }
    
    .form-check {
        margin-right: 12px;
    }
    
    .form-check-input {
        width: 16px;
        height: 16px;
    }
    
    .form-check-label {
        font-size: 13px;
    }
    
    .instruction-header h3 {
        font-size: 16px;
    }
    
    .instruction-header i {
        font-size: 18px;
    }
}

/* ============================================= */
/* FILE UPLOAD PREVIEW */
/* ============================================= */
.file-upload-preview {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.file-upload-preview .file-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8f9fa;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    font-size: 13px;
}

.file-upload-preview .file-item i {
    color: var(--primary);
    font-size: 16px;
}

.file-upload-preview .file-item .remove-file {
    color: #dc3545;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.file-upload-preview .file-item .remove-file:hover {
    transform: scale(1.2);
}

/* ============================================= */
/* BUTTONS (Enhanced) */
/* ============================================= */
.btn-rounded {
    border-radius: 50px !important;
    padding: 12px 30px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.btn-rounded:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(137, 12, 37, 0.3);
}

.btn-primary {
    background: var(--primary) !important;
    color: white !important;
    border: none !important;
}

.btn-primary:hover {
    background: var(--secondary) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(137, 12, 37, 0.3);
}

.btn-success {
    background: #28a745 !important;
    color: white !important;
    border: none !important;
}

.btn-success:hover {
    background: #218838 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-outline {
    background: transparent !important;
    border: 2px solid var(--primary) !important;
    color: var(--primary) !important;
}

.btn-outline:hover {
    background: var(--primary) !important;
    color: white !important;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #6c757d !important;
    color: white !important;
    border: none !important;
}

.btn-secondary:hover {
    background: #5a6268 !important;
    transform: translateY(-2px);
}

.btn-danger {
    background: #dc3545 !important;
    color: white !important;
    border: none !important;
}

.btn-danger:hover {
    background: #c82333 !important;
    transform: translateY(-2px);
}

.btn-info {
    background: #17a2b8 !important;
    color: white !important;
    border: none !important;
}

.btn-info:hover {
    background: #138496 !important;
    transform: translateY(-2px);
}

.btn-warning {
    background: #ffc107 !important;
    color: #212529 !important;
    border: none !important;
}

.btn-warning:hover {
    background: #e0a800 !important;
    transform: translateY(-2px);
}

.btn-sm {
    padding: 6px 16px !important;
    font-size: 13px !important;
}

.btn-lg {
    padding: 14px 40px !important;
    font-size: 16px !important;
}

/* ============================================= */
/* LOADER OVERLAY FOR FORMS */
/* ============================================= */
.form-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    flex-direction: column;
}

.form-loader-overlay.active {
    display: flex;
}

.form-loader-overlay .loader-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.form-loader-overlay .loader-text {
    margin-top: 15px;
    font-size: 14px;
    color: var(--dark);
    font-weight: 500;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}









/* ============================================= */
/* ENROLLMENT FORM - CUSTOM GRID LAYOUT */
/* ============================================= */

/* Form Row Grids - Clean, no Bootstrap dependency */
.form-row-2,
.form-row-3,
.form-row-4 {
    display: grid;
    gap: 15px;
    margin-bottom: 10px;
}

/* 2 columns on large screens, 1 on small */
.form-row-2 {
    grid-template-columns: 1fr 1fr;
}

/* 3 columns on large screens, 1 on small */
.form-row-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

/* 4 columns on large screens, 1 on small */
.form-row-4 {
    grid-template-columns: 1fr 1fr 1fr 1fr;
}

/* ===== RADIO GROUP ===== */
.radio-group {
    display: flex;
    gap: 20px;
    padding-top: 5px;
    flex-wrap: wrap;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    cursor: pointer;
    font-weight: 400;
    color: #333;
}

.radio-label .form-check-input {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    cursor: pointer;
    margin: 0;
}

/* ===== FORM GROUP ENHANCEMENTS ===== */
.form-group {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
    font-size: 13px;
}

.form-group .form-control {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    background: #fff;
    transition: all 0.3s ease;
    outline: none;
   /*height: 42px;*/
}

.form-group .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(137, 12, 37, 0.1);
}

.form-group .form-control[readonly] {
    background: #f5f7fb;
    cursor: not-allowed;
}

/* ===== RESPONSIVE - TABLETS ===== */
@media (max-width: 992px) {
    .form-row-4 {
        grid-template-columns: 1fr 1fr;
    }
    
    .form-row-3 {
        grid-template-columns: 1fr 1fr;
    }
}

/* ===== RESPONSIVE - MOBILE ===== */
@media (max-width: 576px) {
    .form-row-2,
    .form-row-3,
    .form-row-4 {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .form-group label {
        font-size: 13px;
    }
    
    .form-group .form-control {
        height: 38px;
        font-size: 13px;
        padding: 8px 12px;
    }
    
    .radio-group {
        gap: 15px;
    }
    
    .radio-label {
        font-size: 13px;
    }
}

/* ===== FORM CARD ===== */
.enrollment-form .card {
    border-radius: 12px;
    overflow: hidden;
    border: none;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
}

.enrollment-form .card-body {
    padding: 30px;
}

/* ===== SECTION DIVIDERS ===== */
.enrollment-form hr {
    margin: 20px 0;
    border-top: 2px solid var(--primary);
    opacity: 0.3;
}

.enrollment-form .card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
}

/* ============================================= */
/* ENROLLMENT FORM - MOBILE OVERRIDES */
/* ============================================= */
@media (max-width: 576px) {
    .enrollment-form .card-body {
        padding: 15px;
    }
    
    .enrollment-form .card-title {
        font-size: 16px;
    }
    
    .enrollment-form hr {
        margin: 15px 0;
    }
    
    .btn-rounded {
        padding: 10px 30px !important;
        font-size: 14px !important;
        width: 100%;
        justify-content: center;
    }
    
    .button-outer {
        width: 100%;
    }
}