@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;500;600;700;800&family=Sarabun:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-light: #eef2ff;
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    --secondary: #64748b;
    --accent-cyan: #06b6d4;
    --accent-violet: #8b5cf6;
    --accent-pink: #ec4899;
    --success: #10b981;
    --success-light: #ecfdf5;
    --danger: #f43f5e;
    --danger-light: #fff1f2;
    --warning: #f59e0b;
    --warning-light: #fffbeb;
    --info: #3b82f6;
    --info-light: #eff6ff;
    --dark: #0f172a;
    --light: #f8fafc;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-600: #475569;
    --gray-800: #1e293b;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 10px 25px -5px rgba(79, 70, 229, 0.08), 0 4px 6px -2px rgba(15, 23, 42, 0.03);
    --shadow-lg: 0 20px 35px -10px rgba(79, 70, 229, 0.15), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
    --font-sans: 'Prompt', 'Sarabun', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body, button, input, select, textarea, p, span, div, a, label, h1, h2, h3, h4, h5, h6, th, td {
    font-family: var(--font-sans);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Prompt', var(--font-sans);
    font-weight: 700;
    color: var(--dark);
    letter-spacing: -0.01em;
}

/* Preserve FontAwesome Icons Font Family */
i.fa, i.fas, i.far, i.fab, i.fa-solid, i.fa-regular, i.fa-brands, [class*="fa-"], [class*="fa-"]::before, [class*="fa-"]::after {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
}

/* Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Navigation Bar */
.navbar {
    background: #ffffff;
    border-bottom: 1px solid var(--gray-200);
    padding: 0.8rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    min-height: 70px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--dark);
    flex-shrink: 0;
}

.navbar-logo {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: white;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.brand-text {
    white-space: nowrap;
}

.brand-text h1 {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    white-space: nowrap;
}

.brand-text p {
    font-size: 0.78rem;
    color: var(--secondary);
    margin: 0;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
    white-space: nowrap;
}

.nav-link {
    text-decoration: none;
    color: var(--gray-600);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
    font-weight: 600;
}

.user-display-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    color: var(--gray-800);
    font-weight: 600;
    white-space: nowrap;
    background: #f8fafc;
    padding: 0.35rem 0.8rem;
    border-radius: 20px;
    border: 1px solid var(--gray-200);
}

/* Forms & Buttons */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    color: var(--gray-800);
}

.form-label .required {
    color: var(--danger);
}

.form-control, .form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-family: inherit;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    background-color: white;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus, .form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

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

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

.btn-secondary {
    background-color: var(--gray-200);
    color: var(--gray-800);
}

.btn-secondary:hover {
    background-color: var(--gray-300);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--gray-300);
    color: var(--gray-800);
}

.btn-outline:hover {
    background-color: var(--gray-100);
    border-color: var(--gray-600);
}

.btn-block {
    width: 100%;
}

.btn-lg {
    padding: 0.9rem 2rem;
    font-size: 1.05rem;
}

/* Cards & Layout */
.card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.75rem;
}

.col {
    padding: 0 0.75rem;
    flex: 1;
}

.col-12 { flex: 0 0 100%; max-width: 100%; }
.col-8  { flex: 0 0 66.666%; max-width: 66.666%; }
.col-6  { flex: 0 0 50%; max-width: 50%; }
.col-4  { flex: 0 0 33.333%; max-width: 33.333%; }
.col-3  { flex: 0 0 25%; max-width: 25%; }

/* Mobile Menu Toggle Button (Hamburger) */
.mobile-toggle-btn {
    display: none;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #0f172a;
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    font-size: 1.2rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

/* Autocomplete Dropdown Box */
.autocomplete-wrapper {
    position: relative;
    width: 100%;
}

.autocomplete-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    max-height: 280px;
    overflow-y: auto;
    display: none;
}

.autocomplete-dropdown.active {
    display: block !important;
}

.autocomplete-item {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    cursor: pointer;
    border-bottom: 1px solid var(--gray-100);
    transition: background 0.15s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.autocomplete-item:hover, .autocomplete-item.active {
    background-color: var(--primary-light);
    color: var(--primary);
}

.autocomplete-item .sec-badge, .autocomplete-item .school-badge {
    font-size: 0.75rem;
    background: #eff6ff;
    color: #2563eb;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 500;
    margin-left: 6px;
    white-space: nowrap;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    transform: translateY(20px);
    transition: transform 0.25s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-600);
    cursor: pointer;
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    font-size: 0.95rem;
    line-height: 1.7;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--gray-200);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.table th, .table td {
    padding: 0.85rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.table th {
    background: var(--gray-100);
    color: var(--gray-800);
    font-weight: 600;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 500;
}

.badge-info { background: #e0f2fe; color: #0369a1; }
.badge-success { background: #d1fae5; color: #047857; }
.badge-warning { background: #fef3c7; color: #b45309; }
.badge-danger { background: #ffe4e6; color: #be123c; }

/* Icon Badge Container Component */
.icon-badge {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
    transition: all 0.25s ease;
}
.icon-badge-primary { background: #eef2ff; color: #4f46e5; }
.icon-badge-success { background: #ecfdf5; color: #10b981; }
.icon-badge-warning { background: #fffbeb; color: #f59e0b; }
.icon-badge-danger  { background: #fff1f2; color: #f43f5e; }
.icon-badge-cyan    { background: #e0f2fe; color: #0284c7; }
.icon-badge-violet  { background: #f3e8ff; color: #7e22ce; }

/* Modern Student Hero Banner */
.hero-student-banner {
    background: linear-gradient(135deg, #312e81 0%, #4338ca 50%, #4f46e5 100%);
    border-radius: var(--radius-lg);
    padding: 2.2rem 2.5rem;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 14px 35px -10px rgba(79, 70, 229, 0.35);
    margin-bottom: 2rem;
}
.hero-student-banner::before {
    content: '';
    position: absolute;
    top: -50px; right: -50px;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    pointer-events: none;
}
.hero-student-banner .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 0.4rem 1rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.8rem;
}
.hero-student-banner h1 {
    font-size: 2.1rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.6rem;
    line-height: 1.25;
}
.hero-student-banner p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    max-width: 680px;
    line-height: 1.6;
}

/* ==========================================================================
   Compact 2-Column Dashboard & Admission Steps Flow
   ========================================================================== */
.compact-dashboard-wrapper {
    margin-bottom: 1.8rem;
}
.compact-dashboard-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 1.25rem;
    align-items: stretch;
}

/* Left Hero & Stats Panel */
.compact-hero-panel {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 55%, #3b82f6 100%);
    border-radius: 18px;
    padding: 1.35rem 1.5rem;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.18);
    position: relative;
    overflow: hidden;
}
.compact-hero-panel::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 180px; height: 180px;
    background: radial-gradient(circle, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    pointer-events: none;
}
.compact-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.2rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.4rem;
    letter-spacing: 0.3px;
}
.compact-hero-title {
    font-size: 1.28rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 0.2rem;
}
.compact-hero-sub {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 0.85rem;
    line-height: 1.35;
}

.compact-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.55rem;
    margin-bottom: 0.9rem;
}
.compact-stat-pill {
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    padding: 0.5rem 0.6rem;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: all 0.2s ease;
}
.compact-stat-pill:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-2px);
}
.compact-stat-pill.highlight-pill {
    background: rgba(16, 185, 129, 0.3);
    border-color: rgba(110, 231, 183, 0.6);
}
.stat-pill-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}
.stat-pill-icon.icon-white {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}
.stat-pill-val {
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.1;
    color: #ffffff;
}
.stat-pill-lbl {
    font-size: 0.68rem;
    color: #e0e7ff;
    white-space: nowrap;
}

.compact-hero-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}
.compact-action-btn {
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}
.compact-action-btn.btn-white {
    background: #ffffff;
    color: #1d4ed8;
    box-shadow: 0 3px 10px rgba(0,0,0,0.12);
}
.compact-action-btn.btn-white:hover {
    background: #f8fafc;
    transform: translateY(-1px);
}
.compact-action-btn.btn-glass {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(6px);
}
.compact-action-btn.btn-glass:hover {
    background: rgba(255, 255, 255, 0.26);
}

/* Right Steps Flow Panel */
.compact-steps-panel {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 1.25rem 1.35rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}
.compact-steps-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 0.45rem;
}
.compact-steps-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 7px;
}
.compact-steps-sub {
    font-size: 0.74rem;
    color: #64748b;
    font-weight: 500;
}

.compact-steps-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
}
.compact-step-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.55rem 0.7rem;
    display: flex;
    align-items: center;
    gap: 9px;
    transition: all 0.2s ease;
}
.compact-step-item:hover {
    background: #ffffff;
    border-color: #93c5fd;
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.07);
}
.compact-step-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #eff6ff;
    color: #2563eb;
    border: 1.5px solid #bfdbfe;
    font-weight: 800;
    font-size: 0.78rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.compact-step-body {
    overflow: hidden;
}
.compact-step-heading {
    font-size: 0.8rem;
    font-weight: 700;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}
.compact-step-desc {
    font-size: 0.7rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
}

/* ==========================================================================
   Mobile Dashboard Collapsible Bar & Toggle Behavior
   ========================================================================== */
.mobile-dashboard-toggle-bar {
    display: none;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border: 1.5px solid #bfdbfe;
    border-radius: 14px;
    padding: 0.8rem 1.1rem;
    margin-bottom: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.08);
    transition: all 0.25s ease;
    user-select: none;
}
.mobile-dashboard-toggle-bar:hover, .mobile-dashboard-toggle-bar:active {
    background: #f8fafc;
    border-color: #60a5fa;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.14);
}
.mobile-dashboard-toggle-bar.active {
    background: #eff6ff;
    border-color: #2563eb;
    margin-bottom: 0.85rem;
}
.mobile-toggle-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #1e293b;
    flex-wrap: wrap;
}
.mobile-toggle-pill {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
    padding: 0.15rem 0.55rem;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 700;
}
.mobile-toggle-right {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: #2563eb;
    font-weight: 700;
    white-space: nowrap;
    margin-left: auto;
}
.mobile-toggle-right .toggle-icon {
    font-size: 0.8rem;
    transition: transform 0.25s ease;
}

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

@media (max-width: 1100px) {
    .compact-dashboard-grid {
        grid-template-columns: 1fr;
    }
    .compact-stats-row {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    }
}

@media (max-width: 768px) {
    .mobile-dashboard-toggle-bar {
        display: flex !important;
    }
    .compact-dashboard-wrapper {
        display: none;
    }
    .compact-dashboard-wrapper.mobile-expanded {
        display: block !important;
        animation: slideDownDashboard 0.25s ease-out forwards;
    }
}

@media (max-width: 640px) {
    .compact-steps-list {
        grid-template-columns: 1fr;
    }
    .compact-stats-row {
        grid-template-columns: 1fr 1fr;
    }
}

/* Quick Admission Steps Timeline (Classic fallback) */
.steps-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
    margin-bottom: 2rem;
}
.step-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 1.1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
}
.step-card:hover {
    border-color: #c7d2fe;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.step-number {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 700;
    font-size: 1rem;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.step-info h4 { font-size: 0.95rem; font-weight: 700; color: var(--dark); margin: 0 0 2px 0; }
.step-info p { font-size: 0.78rem; color: var(--secondary); margin: 0; }

/* Hero section fallback */
.hero {
    background: linear-gradient(135deg, #312e81, #4f46e5);
    color: white;
    border-radius: var(--radius-lg);
    padding: 2.5rem 2.2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.hero-content h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: #ffffff;
}

.hero-content p {
    font-size: 1.05rem;
    opacity: 0.9;
    margin-bottom: 1.8rem;
    max-width: 700px;
}

/* ==========================================================================
   Global Sidebar & Page Layout Engine
   ========================================================================== */
.calendar-layout { display: flex; min-height: 100vh; background-color: #f1f5f9; }
.sidebar-menu {
    width: 280px;
    background: #ffffff;
    border-right: 1px solid #e2e8f0;
    padding: 1.8rem 1.2rem;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.sidebar-brand-wrapper {
    margin-bottom: 2.2rem;
}
.sidebar-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.sidebar-brand-icon {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
    flex-shrink: 0;
}
.sidebar-brand-logo-img {
    width: 44px; height: 44px;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 2px;
}
.sidebar-brand-title { font-size: 1.2rem; font-weight: 700; color: #0f172a; line-height: 1.2; }
.sidebar-brand-sub { font-size: 0.78rem; color: #64748b; }

.side-nav-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.side-nav-item { margin-bottom: 0; }
.side-nav-link {
    display: flex; align-items: center; gap: 12px;
    padding: 0.8rem 1.1rem; color: #475569;
    text-decoration: none; font-weight: 500; font-size: 0.92rem;
    border-radius: 12px; transition: all 0.2s ease;
}
.side-nav-link:hover { background: #f8fafc; color: #2563eb; }
.side-nav-link.active { background: #eff6ff; color: #2563eb; font-weight: 600; }
.side-nav-link i { width: 20px; text-align: center; font-size: 1.05rem; }

.calendar-content {
    flex-grow: 1;
    padding: 2rem 2.5rem;
    overflow-y: auto;
}

/* Footer */
footer {
    background: white;
    border-top: 1px solid var(--gray-200);
    padding: 1.5rem 0;
    text-align: center;
    color: var(--gray-600);
    font-size: 0.88rem;
    margin-top: auto;
}

/* ==========================================================================
   Responsive Breakpoints & Collapsible Mobile Hamburger Menu
   ========================================================================== */
@media (max-width: 1200px) {
    .navbar {
        flex-wrap: wrap;
        gap: 1rem;
    }
    .nav-links {
        overflow-x: auto;
        max-width: 100%;
        padding-bottom: 0.2rem;
    }
}

@media (max-width: 992px) {
    .mobile-toggle-btn {
        display: flex !important;
    }
    .calendar-layout {
        flex-direction: column;
    }
    .sidebar-menu {
        width: 100% !important;
        border-right: none !important;
        border-bottom: 1px solid #e2e8f0;
        padding: 1rem 1.2rem !important;
    }
    .sidebar-brand-wrapper {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    
    /* Collapsible Navigation Menu on Mobile */
    .sidebar-nav-collapsible {
        display: none;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid #e2e8f0;
    }
    .sidebar-nav-collapsible.active {
        display: block !important;
    }

    .side-nav-list {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }
    .side-nav-item {
        margin-bottom: 0;
    }
    .main-calendar-content {
        padding: 1.2rem !important;
        max-width: 100% !important;
    }
    .calendar-card-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0.8rem;
        padding-top: 0.8rem;
        border-top: 1px solid #e2e8f0;
    }
    .nav-links.active {
        display: flex !important;
    }
}

@media (max-width: 768px) {
    .row {
        flex-direction: column;
    }
    .col, .col-12, .col-8, .col-6, .col-4, .col-3 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        margin-bottom: 0.5rem;
    }
    .calendar-topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }
    .calendar-title-header {
        font-size: 1.4rem;
    }
    .hero {
        padding: 1.8rem 1.2rem;
    }
    .hero-content h1 {
        font-size: 1.5rem;
    }
    /* Hide system stats bar and admission steps timeline on mobile screen, showing rounds section for PR */
    .stats-bar-grid,
    .steps-timeline {
        display: none !important;
    }
    .rounds-poster-grid {
        grid-template-columns: 1fr !important;
    }
    .majors-grid {
        grid-template-columns: 1fr !important;
    }
    .poster-img-wrapper {
        height: 170px;
    }
    .modal-content {
        width: 95%;
        margin: 10px;
    }
}

@media (max-width: 576px) {
    .side-nav-link {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
    .card {
        padding: 1.2rem;
    }
    .btn {
        width: 100%;
    }
}

/* ==========================================================================
   Home Page Enhanced Premium Components (Stats, Features, Docs, FAQ, Footer)
   ========================================================================== */

/* Quick Stats Bar */
.stats-bar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}
.stat-card-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 1.2rem 1.4rem;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
}
.stat-card-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}
.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}
.stat-icon-indigo { background: #eef2ff; color: #4f46e5; }
.stat-icon-emerald { background: #ecfdf5; color: #10b981; }
.stat-icon-amber { background: #fffbeb; color: #d97706; }
.stat-icon-sky { background: #f0f9ff; color: #0284c7; }

.stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}
.stat-label {
    font-size: 0.82rem;
    color: #64748b;
    font-weight: 500;
    margin-top: 2px;
}

/* Key Features Grid */
.features-section-wrapper {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid #e2e8f0;
    padding: 2rem;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-sm);
}
.section-heading-box {
    margin-bottom: 1.8rem;
}
.section-heading-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 10px;
}
.section-heading-sub {
    font-size: 0.88rem;
    color: #64748b;
    margin-top: 4px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}
.feature-card-item {
    background: #f8fafc;
    border-radius: var(--radius-md);
    padding: 1.4rem;
    border: 1px solid #f1f5f9;
    transition: all 0.25s ease;
}
.feature-card-item:hover {
    background: #ffffff;
    border-color: #c7d2fe;
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.feature-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #4f46e5, #3730a3);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}
.feature-card-item h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.4rem;
}
.feature-card-item p {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.55;
}

/* Document Checklist & Downloads Section */
.docs-section-card {
    background: linear-gradient(135deg, #0f2b5c 0%, #1e3a8a 55%, #2563eb 100%);
    color: #ffffff;
    border-radius: var(--radius-lg);
    padding: 2.2rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 10px 30px rgba(30, 58, 138, 0.25);
    border: 1px solid #3b82f6;
}
.docs-grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
@media (max-width: 992px) {
    .docs-grid-layout {
        grid-template-columns: 1fr;
    }
}
.doc-checklist-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.doc-checklist-item {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius-md);
    padding: 1rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 14px;
}
.doc-checklist-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #ffffff;
    color: #1e3a8a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}
.doc-checklist-text strong {
    display: block;
    font-size: 0.92rem;
    color: #ffffff;
    margin-bottom: 2px;
}
.doc-checklist-text span {
    font-size: 0.82rem;
    color: #e0e7ff;
}

/* FAQ Accordion Section */
.faq-grid-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.8rem;
    margin-bottom: 2.5rem;
}
@media (max-width: 992px) {
    .faq-grid-layout {
        grid-template-columns: 1fr;
    }
}
.faq-accordion-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.faq-item-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 1.2rem 1.4rem;
    box-shadow: var(--shadow-sm);
}
.faq-question-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.5rem;
}
.faq-answer-text {
    font-size: 0.88rem;
    color: #475569;
    line-height: 1.6;
    padding-left: 28px;
}

.help-contact-box {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #ffffff;
    border-radius: var(--radius-lg);
    padding: 1.8rem;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* System Main Footer */
.system-main-footer {
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    padding: 2.5rem 2.5rem 1.5rem 2.5rem;
    margin-top: 3rem;
    border-radius: 20px 20px 0 0;
}
.footer-top-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 2rem;
    margin-bottom: 2rem;
}
@media (max-width: 992px) {
    .footer-top-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 576px) {
    .footer-top-grid {
        grid-template-columns: 1fr;
    }
}
.footer-brand-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.6rem;
}
.footer-brand-desc {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.6;
}
.footer-heading {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1rem;
}
.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.footer-links-list a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}
.footer-links-list a:hover {
    color: #2563eb;
}
.footer-bottom-bar {
    border-top: 1px solid #f1f5f9;
    padding-top: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.82rem;
    color: #94a3b8;
}

