/* Custom styles for Admission System */

:root {
    --primary-color: #2563eb;
    --border-radius: 16px;
    --box-shadow: 0 12px 30px rgba(4, 11, 29, 0.12);
    --box-shadow-lg: 0 20px 55px rgba(4, 11, 29, 0.18);
}

html {
    scroll-behavior: auto;
}

body {
    line-height: 1.6;
    overflow-anchor: none; /* Prevent browser anchor-based auto scrolling on dynamic dashboards */
    overflow-x: hidden;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    border: none;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.min-vh-100 {
    min-height: 100vh;
}

/* Login Page Styles */
.login-page {
    background: linear-gradient(135deg, #0c4cb3 0%, #092e6d 50%, #04153a 100%);
    min-height: 100vh;
    color: #eaf1ff;
    overflow-x: hidden;
    position: relative;
}
.login-page::before {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.12), transparent 55%),
                radial-gradient(circle at 80% 80%, rgba(58,181,255,0.12), transparent 45%);
    pointer-events: none;
    z-index: 0;
}

.login-wrapper {
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.login-hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 70px 60px;
    overflow: hidden;
    background: linear-gradient(135deg, #0c4cb3 0%, #092e6d 55%, #04153a 100%);
}
.login-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.25), transparent 55%);
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 580px;
    text-align: left;
    animation: heroFade 0.9s ease forwards;
}
.hero-content .brand-title {
    font-size: 48px;
    font-weight: 700;
    margin: 18px 0 8px;
}
.hero-content .brand-lead {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 28px;
}

.hero-ambient {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-ambient .orb {
    position: absolute;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.25), rgba(255,255,255,0));
    filter: blur(0.5px);
    opacity: 0.65;
}

.hero-ambient .orb-1 {
    top: 15%;
    left: -5%;
}

.hero-ambient .orb-2 {
    top: 40%;
    right: 20%;
    width: 280px;
    height: 280px;
}

.hero-ambient .orb-3 {
    bottom: -8%;
    left: 18%;
    width: 200px;
    height: 200px;
}

.login-grid {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 70px;
    align-items: center;
}

.brand-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-bottom: 22px;
}

.brand-features .feature {
    background: rgba(6, 24, 65, 0.45);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 18px;
    padding: 16px 18px;
    box-shadow: 0 18px 40px rgba(4, 10, 26, 0.35);
}

.brand-features .feature h4 {
    font-size: 18px;
    margin-bottom: 6px;
}

.brand-features .feature p {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.82);
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.metric-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 18px;
    padding: 18px;
    backdrop-filter: blur(8px);
    box-shadow: 0 20px 45px rgba(5,12,27,0.25);
    animation: float 14s ease-in-out infinite;
}

.metric-card:nth-child(2) {
    animation-delay: 0.4s;
}

.metric-card:nth-child(4) {
    animation-delay: 0.8s;
}

.metric-card h4 {
    font-size: 20px;
    margin-bottom: 8px;
}

.metric-card p {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.82);
}

.login-panel {
    flex: 0 0 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.panel-inner {
    width: 100%;
    max-width: 420px;
    animation: slideUp 0.9s ease 0.2s both;
    border: none;
}

.glass-card.login-card {
    background: #f4f6fb;
    border-radius: 22px;
    padding: 26px 30px 32px;
    border: none;
    box-shadow: 0 12px 30px rgba(4,11,29,0.25);
}

.login-panel label {
    color: #0f172a;
    font-weight: 600;
}

.login-panel .input-group-text {
    border-color: rgba(15,23,42,0.15);
    background: #edf1ff;
}

.login-panel .form-control {
    border-color: rgba(15,23,42,0.15);
    box-shadow: 0 0 0 2px transparent;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    background: #ffffff;
}

.login-panel .form-control:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.login-panel .btn-primary {
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    border: none;
    box-shadow: 0 18px 30px rgba(37, 99, 235, 0.35);
    font-weight: 600;
    border-radius: 16px;
    padding: 12px 18px;
}

.login-panel .btn-primary:hover {
    background: linear-gradient(90deg, #1d4ed8, #2563eb);
}

.login-panel .form-check-input:checked {
    background-color: #2563eb;
    border-color: #1d4ed8;
}

.login-panel .btn-outline-secondary {
    border-color: rgba(15,23,42,0.25);
    color: #0f172a;
}

.login-panel .btn-outline-secondary:hover {
    background: rgba(15,23,42,0.05);
}

@media (max-width: 992px) {
    .login-hero {
        padding: 50px 24px 120px;
        align-items: flex-start;
    }

    .login-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .login-panel {
        padding: 8px;
    }

    .panel-inner {
        padding: 28px 24px;
    }
}

@media (max-width: 576px) {
    .hero-content .brand-title {
        font-size: 36px;
    }

    .brand-features,
    .hero-metrics {
        grid-template-columns: 1fr;
    }

    .top-nav {
        flex-wrap: wrap;
        gap: 12px;
        align-items: flex-start;
    }

    .top-nav > .d-flex {
        width: 100%;
        flex-wrap: wrap;
        gap: 10px;
    }

    .top-nav > .d-flex:first-child {
        justify-content: space-between;
    }

    .top-nav > .d-flex:last-child {
        justify-content: flex-start;
    }

    .top-nav form,
    .top-nav select,
    .top-nav button,
    .top-nav .badge,
    .top-nav .dropdown {
        width: auto;
        flex: 0 1 auto;
    }

    #branchSwitcherForm {
        width: 100%;
        flex-wrap: wrap;
        gap: 8px;
    }

    #branchSwitcherForm select,
    #branchSwitcherForm label,
    #branchSwitcherForm input,
    #branchSwitcherForm button {
        flex: 1 1 100%;
    }

    #branchSwitcherForm label {
        width: 100%;
    }
}
.sidebar {
    width: 272px;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 45%, #0b1120 100%);
    color: #fff;
    min-height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1040;
    box-shadow: 0 20px 45px rgba(3, 6, 23, 0.4);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.sidebar-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.2) transparent;
}

.sidebar-inner::-webkit-scrollbar {
    width: 6px;
}

.sidebar-inner::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.25);
    border-radius: 3px;
}

.sidebar-inner::-webkit-scrollbar-track {
    background: transparent;
}
.sidebar-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0 0 0.5rem;
}

.sidebar-brand-logo {
    width: 150px;
    max-width: 100%;
    max-height: 64px;
    object-fit: contain;
    padding: 10px 18px;
    border-radius: 18px;
    background: rgba(255,255,255,0.1);
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    display: block;
    margin: 0 auto;
}

.sidebar.sidebar-collapsed .sidebar-brand-logo {
    width: 52px;
    height: 52px;
    padding: 8px;
}

.sidebar-brand-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: rgba(255,255,255,0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.6rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

.sidebar-brand-text h5 {
    font-size: 1.05rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sidebar-divider {
    border-color: rgba(255,255,255,0.08) !important;
    margin: 0.35rem 0;
}

.sidebar-footer a {
    text-decoration: none;
}

.sidebar-collapsed {
    width: 86px;
}

.sidebar.sidebar-collapsed .sidebar-inner {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    align-items: center;
}

.sidebar.sidebar-collapsed .sidebar-brand-text,
.sidebar.sidebar-collapsed .menu-text,
.sidebar.sidebar-collapsed .sidebar-footer,
.sidebar.sidebar-collapsed .sidebar-divider {
    display: none !important;
}

.sidebar.sidebar-collapsed .sidebar-brand {
    margin-bottom: 0.5rem;
}

.sidebar.sidebar-collapsed .nav-link {
    justify-content: center;
    padding: 10px 0;
    width: 52px;
    border-radius: 16px;
    margin: 6px auto;
}

.sidebar.sidebar-collapsed .nav-link i {
    margin-right: 0;
    font-size: 1.2rem;
}

.sidebar .nav {
    gap: 0.35rem;
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.85);
    padding: 10px 18px;
    margin: 0;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateX(5px);
}

.sidebar .nav-link i {
    width: 20px;
    text-align: center;
    margin-right: 10px;
    flex-shrink: 0;
}

.sidebar .menu-text {
    display: inline-block;
    flex: 1 1 auto;
}

.main-content {
    margin-left: 272px;
    transition: all 0.3s ease;
    min-height: 100vh;
}

.main-content.expanded {
    margin-left: 86px;
}

/* Top Navigation */
.top-nav {
    background: white;
    box-shadow: var(--box-shadow);
    padding: 15px 30px;
    margin-bottom: 30px;
}

#installAppButton {
    white-space: nowrap;
}

@media (max-width: 768px) {
    #installAppButton {
        display: none !important;
    }
}

.notification-badge {
    position: absolute;
    top: 2px;
    right: 0;
    font-size: 0.65rem;
    padding: 2px 5px;
    border-radius: 999px;
}

.notification-dropdown {
    width: 320px;
    max-width: 90vw;
}

.notification-item {
    padding: 8px 12px;
    border-bottom: 1px solid #f1f1f1;
    white-space: normal;
    word-break: break-word;
    line-height: 1.35;
}

.notification-item.unread {
    background-color: #f0f6ff;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-title {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.notification-message {
    font-size: 0.85rem;
    margin-top: 2px;
}

.notification-meta {
    font-size: 0.75rem;
    margin-top: 6px;
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    position: fixed;
    inset: auto 0 20px;
    display: none;
    justify-content: center;
    padding: 0 12px;
    z-index: 1050;
    pointer-events: none;
}

.mobile-bottom-nav .mobile-nav-link {
    text-decoration: none;
}

.mobile-bottom-nav .mobile-nav-shell {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(9, 13, 28, 0.94);
    backdrop-filter: blur(20px);
    padding: 10px 14px;
    border-radius: 24px;
    box-shadow: 0 28px 48px rgba(4, 9, 32, 0.6);
    width: 100%;
    max-width: clamp(340px, 90vw, 420px);
}

.mobile-bottom-nav .mobile-nav-shell.mobile-nav-compact {
    gap: 12px;
}

.mobile-bottom-nav .mobile-nav-tabs {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.mobile-bottom-nav .mobile-nav-tab {
    flex: 1;
    max-width: 58px;
    height: 48px;
    border-radius: 18px;
    border: none;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.75);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1rem;
    position: relative;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
    cursor: pointer;
}

.mobile-bottom-nav .mobile-nav-tab i {
    pointer-events: none;
}

.mobile-bottom-nav .mobile-nav-menu {
    flex: 0 0 52px;
    height: 52px;
    background: linear-gradient(135deg, #facc15, #f97316);
    color: #0f172a;
    box-shadow: 0 18px 36px rgba(249, 115, 22, 0.45);
}

.mobile-bottom-nav .mobile-nav-tab::after {
    content: '';
    position: absolute;
    width: 28px;
    height: 28px;
    border-radius: 14px;
    background: transparent;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    transition: opacity 0.2s ease;

}

.mobile-bottom-nav .mobile-nav-tab.active {
    color: #fff;
    background: rgba(37, 99, 235, 0.22);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 12px 24px rgba(15, 23, 42, 0.35);
    transform: translateY(-3px);
}

.mobile-bottom-nav .mobile-nav-tab.active::after {
    background: radial-gradient(circle, rgba(37, 99, 235, 0.7) 0%, rgba(37, 99, 235, 0) 70%);
    opacity: 1;
    filter: blur(8px);
}

@media (max-width: 480px) {
    .mobile-bottom-nav {
        inset: auto 0 16px;
    }

    .mobile-bottom-nav .mobile-nav-shell {
        padding: 9px 12px;
        max-width: clamp(320px, 92vw, 360px);
    }

    .mobile-bottom-nav .mobile-nav-tab {
        max-width: 52px;
        height: 44px;
        font-size: 0.94rem;
        border-radius: 16px;
    }

    .mobile-bottom-nav .mobile-nav-menu {
        flex-basis: 48px;
        height: 48px;
        border-radius: 16px;
    }
}

@media (min-width: 481px) and (max-width: 640px) {
    .mobile-bottom-nav {
        inset: auto 0 18px;
    }

    .mobile-bottom-nav .mobile-nav-shell {
        max-width: clamp(360px, 85vw, 460px);
    }

    .mobile-bottom-nav .mobile-nav-tab {
        max-width: 60px;
        height: 50px;
        font-size: 1.05rem;
    }

    .mobile-bottom-nav .mobile-nav-menu {
        flex-basis: 54px;
        height: 54px;
    }
}

.mobile-bottom-nav .mobile-nav-tab:focus-visible {
    outline: 2px solid #60a5fa;
    outline-offset: 3px;
}

@media (max-width: 900px) {
    .mobile-bottom-nav {
        display: flex;
    }

    body.has-mobile-nav-padding {
        padding-bottom: 110px;
    }
}

.mobile-table-wrapper {
    background: #ffffff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-table-wrapper table {
    margin-bottom: 0;
    min-width: 640px;
}

@media (max-width: 576px) {
    .mobile-table-wrapper table {
        min-width: 520px;
    }
}

/* Cards */
.stat-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
}

.stat-card .stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    margin-bottom: 15px;
}

.stat-card .stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 5px;
}

.stat-card .stat-label {
    color: #6c757d;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Tables */
.table-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.table-card .card-header {
    background: linear-gradient(90deg, var(--primary-color), #004080);
    border: none;
    padding: 20px 25px;
}

.table-card .card-header h5 {
    color: white;
    margin: 0;
    font-weight: 600;
}

.table {
    margin: 0;
}

.table th {
    background-color: #f8f9fa;
    border-top: none;
    font-weight: 600;
    color: #495057;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.table td {
    vertical-align: middle;
    padding: 15px;
}

/* Badges */
.badge {
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: 20px;
}

.badge-enquiry {
    background-color: #17a2b8;
    color: white;
}

.badge-processing {
    background-color: #ffc107;
    color: #212529;
}

.badge-admitted {
    background-color: #28a745;
    color: white;
}

.badge-rejected {
    background-color: #dc3545;
    color: white;
}

.badge-partial {
    background-color: #ffc107;
    color: #212529;
}

/* Buttons */
.btn {
    border-radius: var(--border-radius);
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn.btn-primary {
    background: linear-gradient(90deg, var(--primary-color), #004080) !important;
    background-color: var(--primary-color) !important;
    border: none !important;
    color: #fff !important;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.25);
}



.btn-primary:hover {
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 102, 204, 0.3);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.875rem;
}

/* Forms */
.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

.form-control,
.form-select {
    border-radius: var(--border-radius);
    border: 1px solid #ced4da;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}

.form-select.is-busy {
    opacity: 0.65;
    pointer-events: none;
}

/* Charts */
.chart-container {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 240px;
        transform: translateX(-100%);
        min-height: 100vh;
        position: fixed;
        z-index: 1050;
        box-shadow: var(--box-shadow-lg);
    }
    
    .sidebar.sidebar-mobile-visible {
        transform: translateX(0);
    }
    
    .sidebar.sidebar-collapsed {
        transform: translateX(-100%);
    }
    
    .main-content,
    .main-content.expanded {
        margin-left: 0;
        padding-bottom: 80px;
    }

    #main-content {
        padding: 12px 12px 100px;
    }

    #main-content .container,
    #main-content .container-fluid {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    #main-content .row {
        margin-left: 0;
        margin-right: 0;
    }

    #main-content [class*="col-"],
    #main-content .col,
    #main-content .col-auto {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .top-nav {
        padding: 12px 16px;
        margin-bottom: 20px;
    }

    .top-nav h4 {
        font-size: 1.1rem;
    }

    body {
        padding-bottom: 120px;
    }

    .stat-card {
        padding: 20px;
        text-align: center;
    }
    
    .stat-card .stat-value {
        font-size: 2rem;
    }

    .mobile-bottom-nav {
        display: block;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        padding: 0 14px calc(14px + env(safe-area-inset-bottom));
        z-index: 2000;
        pointer-events: none;
    }

    .mobile-bottom-nav .mobile-nav-shell {
        pointer-events: auto;
        display: flex;
        align-items: center;
        gap: 12px;
        background: rgba(9, 12, 28, 0.95);
        backdrop-filter: blur(22px);
        padding: 10px 14px;
        border-radius: 24px;
        box-shadow: 0 22px 40px rgba(4, 5, 20, 0.58);
    }

    .mobile-bottom-nav .mobile-nav-menu {
        flex: 0 0 56px;
        height: 56px;
        border-radius: 18px;
        border: none;
        background: linear-gradient(135deg, #facc15, #f97316);
        color: #0f172a;
        font-weight: 700;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        box-shadow: 0 15px 30px rgba(249, 115, 22, 0.45);
        cursor: pointer;
    }

    .mobile-bottom-nav .mobile-nav-menu .mobile-nav-icon {
        background: rgba(255, 255, 255, 0.18);
        color: inherit;
        width: 32px;
        height: 32px;
        border-radius: 12px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 3px;
    }

    .mobile-bottom-nav .mobile-nav-slider {
        flex: 1;
        display: flex;
        align-items: center;
        gap: 6px;
        position: relative;
    }

    .mobile-bottom-nav .mobile-nav-slider::before,
    .mobile-bottom-nav .mobile-nav-slider::after {
        content: '';
        position: absolute;
        top: 8px;
        bottom: 8px;
        width: 22px;
        pointer-events: none;
        z-index: 2;
        opacity: 0;
        transition: opacity 0.2s ease;
    }

    .mobile-bottom-nav .mobile-nav-slider::before {
        left: 34px;
        background: linear-gradient(90deg, rgba(9, 12, 28, 0.95), rgba(9, 12, 28, 0));
    }

    .mobile-bottom-nav .mobile-nav-slider::after {
        right: 6px;
        background: linear-gradient(270deg, rgba(9, 12, 28, 0.95), rgba(9, 12, 28, 0));
    }

    .mobile-bottom-nav .mobile-nav-slider.mobile-nav-can-scroll::before,
    .mobile-bottom-nav .mobile-nav-slider.mobile-nav-can-scroll::after {
        opacity: 1;
    }

    .mobile-bottom-nav .mobile-nav-scroll {
        flex: 1;
        display: flex;
        align-items: stretch;
        gap: 12px;
        overflow-x: auto;
        padding: 0 6px;
        scrollbar-width: none;
        -ms-overflow-style: none;
        scroll-snap-type: x proximity;
        scroll-behavior: smooth;
    }

    .mobile-bottom-nav .mobile-nav-scroll::-webkit-scrollbar {
        display: none;
    }

    .mobile-bottom-nav .mobile-nav-link {
        min-width: 80px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        border: none;
        background: transparent;
        color: rgba(255, 255, 255, 0.78);
        text-decoration: none;
        padding: 4px 0;
        border-radius: 16px;
        cursor: pointer;
        position: relative;
        transition: color 0.2s ease;
        scroll-snap-align: center;
    }

    .mobile-bottom-nav .mobile-nav-icon {
        width: 36px;
        height: 36px;
        border-radius: 14px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.1);
        font-size: 1rem;
        transition: background 0.2s ease, transform 0.2s ease;
    }

    .mobile-bottom-nav .mobile-nav-label {
        line-height: 1.1;
        font-size: 0.68rem;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        font-weight: 600;
    }

    .mobile-bottom-nav .mobile-nav-link::after {
        content: '';
        position: absolute;
        left: 50%;
        bottom: -3px;
        width: 6px;
        height: 6px;
        border-radius: 50%;
        transform: translateX(-50%);
        background: transparent;
        transition: background 0.25s ease;
    }

    .mobile-bottom-nav .mobile-nav-link.active,
    .mobile-bottom-nav .mobile-nav-link:focus-visible,
    .mobile-bottom-nav .mobile-nav-link:hover {
        color: #ffffff;
    }

    .mobile-bottom-nav .mobile-nav-link.active .mobile-nav-icon,
    .mobile-bottom-nav .mobile-nav-link:focus-visible .mobile-nav-icon,
    .mobile-bottom-nav .mobile-nav-link:hover .mobile-nav-icon {
        background: linear-gradient(135deg, #2563eb, #0ea5e9);
        transform: translateY(-2px);
    }

    .mobile-bottom-nav .mobile-nav-link.active::after {
        background: #2563eb;
    }

    .mobile-bottom-nav .mobile-nav-scroll-btn {
        width: 34px;
        height: 44px;
        border-radius: 14px;
        border: none;
        background: rgba(255, 255, 255, 0.1);
        color: #ffffff;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
        z-index: 3;
    }

    .mobile-bottom-nav .mobile-nav-scroll-btn i {
        font-size: 0.9rem;
    }

    .mobile-bottom-nav .mobile-nav-slider.mobile-nav-can-scroll .mobile-nav-scroll-btn {
        opacity: 0.85;
        pointer-events: auto;
    }

    .mobile-bottom-nav .mobile-nav-scroll-btn:disabled {
        opacity: 0.25;
        pointer-events: none;
    }
}

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

.sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1040;
}

body.sidebar-mobile-open {
    overflow: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Print Styles */
@media print {
    .sidebar,
    .top-nav,
    .btn,
    .no-print {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .table {
        font-size: 12px;
    }
}


