/* ==========================================
   1. Desktop View (Screens wider than 768px)
   ========================================== */
@media (min-width: 769px) {
    /* Hide the mobile bottom navigation on Desktop */
    .mobile-bottom-nav {
        display: none !important;
    }

    /* Show Desktop Footer */
    .desktop-footer {
        display: block;
        background-color: var(--card-bg);
        border-top: 1px solid var(--border-color);
        padding: 20px;
        text-align: center;
        margin-top: 40px;
    }

    /* Desktop Content Container */
    .main-content {
        max-width: 1200px;
        margin: 0 auto;
        padding: 30px 20px;
        min-height: calc(100vh - 150px);
    }
}

/* ==========================================
   2. Mobile App View (Screens smaller than 768px)
   ========================================== */
@media (max-width: 768px) {
    /* Hide Desktop Footer on Mobile */
    .desktop-footer {
        display: none !important;
    }

    /* Add padding to bottom so content isn't hidden by Bottom Nav */
    body {
        padding-bottom: 70px; 
    }

    .main-content {
        padding: 15px;
    }

    /* Mobile Bottom Navigation (App Style) */
    .mobile-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: var(--card-bg);
        border-top: 1px solid var(--border-color);
        display: flex;
        justify-content: space-around;
        align-items: center;
        height: 65px;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
        z-index: 9999;
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
    }

    .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: var(--text-muted);
        font-size: 0.75rem;
        flex: 1;
        text-decoration: none;
        transition: color 0.3s ease;
    }

    .nav-item i {
        font-size: 1.2rem;
        margin-bottom: 4px;
    }

    /* Active Menu Item in App */
    .nav-item.active {
        color: var(--primary-color);
        font-weight: 600;
    }

    .nav-item.active i {
        transform: scale(1.1);
    }
}