/* Mobile & Tablet Optimizations - DARK GLASS EDITION */

@media (max-width: 991px) {

    /* 1. Header & Navigation Fixes */
    .navbar-collapse {
        background: rgba(15, 23, 42, 0.95);
        /* Deep Dark Background */
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 16px;
        padding: 1rem;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
        margin-top: 1rem;
    }

    .nav-link {
        color: white !important;
        padding: 1rem;
        border-radius: 12px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        transition: 0.2s;
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .nav-link:active,
    .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

    .dropdown-menu {
        background: rgba(0, 0, 0, 0.3) !important;
        border: none;
    }

    .dropdown-item {
        color: rgba(255, 255, 255, 0.8) !important;
    }

    .dropdown-item:hover {
        background: rgba(255, 255, 255, 0.1);
        color: white !important;
    }

    /* 2. Hero Section Fixes */
    .modern-hero {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
        text-align: center;
    }

    /* Hide Floating Notifications on Mobile (Too Crowded) */
    .floating-notification {
        display: none !important;
    }

    /* Resize 3D Content */
    .div-3d-wrapper,
    .hero-3d-card,
    .glass-card {
        transform: none !important;
        /* Disable 3D tilt */
        margin-top: 2rem !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .glass-card {
        padding: 1.5rem !important;
        /* Smaller padding */
    }

    .glass-card h3 {
        font-size: 1.5rem !important;
        /* Smaller text */
    }

    /* 3. General Layout */
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    /* Buttons Stack */
    .d-flex.gap-3 {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    /* 4. Auth Pages Fixes */
    .auth-wrapper {
        padding: 1rem !important;
        align-items: flex-start !important;
        /* Move to top slightly */
        padding-top: 2rem !important;
    }

    .auth-card-premium {
        padding: 1.5rem !important;
    }

    /* 5. Tables & Cards */
    .table-responsive {
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
    }

    .card {
        background: rgba(30, 41, 59, 0.5) !important;
        /* Dark card bg */
        color: white;
        border: 1px solid rgba(255, 255, 255, 0.05);
    }
}