/* ===== MOBILE GLOBAL FIXES ===== */

/* Tables scroll on mobile */
.table-mobile-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Cards stack on mobile */
@media (max-width: 576px) {
    .stats-card-row .col {
        flex: 0 0 50%;
        max-width: 50%;
    }

    /* Full width buttons on mobile */
    .btn-mobile-full {
        width: 100%;
        margin-bottom: 8px;
    }

    /* Reduce padding on mobile */
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    /* Hero text size */
    .hero-title {
        font-size: 1.8rem !important;
    }

    /* Hide text, show icon only on mobile */
    .mobile-icon-only .btn-text {
        display: none;
    }

    /* Exam screen navigation panel */
    .question-nav-panel {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        max-height: 200px;
        overflow-y: auto;
        z-index: 1000;
        background: white;
        border-top: 2px solid #dee2e6;
        padding: 10px;
    }

    /* Fix notification dropdown on mobile — full-width below navbar */
    .notification-dropdown {
        position: fixed !important;
        top: 56px !important;
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        border-radius: 0 !important;
    }
}

@media (max-width: 767.98px) {
    /* Pricing cards: full width */
    .pricing-popular {
        transform: scale(1) !important;
    }

    /* Feature cards: single column */
    .feature-card-col {
        margin-bottom: 1rem;
    }

    /* Comparison table */
    .comparison-table-wrapper {
        overflow-x: auto;
    }

    /* Navbar: hide user display name, show only avatar */
    .navbar-user-name {
        display: none;
    }

    /* Navbar school name: truncate */
    .navbar-school-name {
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        display: inline-block;
        vertical-align: middle;
    }

    /* Touch-friendly minimum target size */
    .btn,
    .nav-link {
        min-height: 44px;
    }

    /* Stack button groups */
    .btn-group-mobile .btn {
        width: 100%;
        margin-bottom: 6px;
        border-radius: 6px !important;
    }
}
