/* 
   MOBILE-APP.CSS 
   Dedicated styles for Android/Mobile Web App View 
*/

.stats-grid-app { display: none; }

@media (max-width: 768px) {
    /* 1. Global App Body */
    body {
        padding-top: 60px; /* Space for Top Bar */
        padding-bottom: 80px; /* Space for Bottom Nav */
        background-color: #f8fafc;
    }

    .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* 2. Simplified Mobile Header (Top Bar) */
    .header-container {
        height: 60px;
        top: 0;
        left: 0;
        width: 100% !important;
        border-radius: 0 !important;
        padding: 0 15px !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05) !important;
        border: none !important;
        background: rgba(255,255,255,0.95) !important;
    }
    
    .main-header { top: 0 !important; }

    .nav-links, .mobile-toggle, .btn-logout-top, .btn-admin-top {
        display: none !important;
    }

    .header-right { gap: 10px; }
    
    .header-right .wallet-badge-mobile {
        display: flex;
        align-items: center;
        gap: 5px;
        background: var(--primary-light);
        color: var(--primary);
        padding: 6px 12px;
        border-radius: 50px;
        font-weight: 800;
        font-size: 11px;
    }

    .header-right .profile-icon-mobile {
        width: 32px;
        height: 32px;
        background: var(--dark);
        color: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        text-decoration: none;
    }

    /* 3. Bottom Navigation Bar */
    .bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 70px;
        background: white;
        display: flex;
        justify-content: space-around;
        align-items: center;
        box-shadow: 0 -5px 20px rgba(0,0,0,0.05);
        z-index: 3000;
        padding-bottom: env(safe-area-inset-bottom);
        border-top: 1px solid #f1f5f9;
    }

    .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: var(--gray-500);
        font-weight: 600;
        font-size: 10px;
        transition: 0.3s;
        gap: 4px;
    }

    .nav-item i {
        font-size: 20px;
        transition: 0.3s;
    }

    .nav-item.active {
        color: var(--primary);
    }

    .nav-item.active .icon-bg {
        background: var(--primary-light);
        color: var(--primary);
        padding: 8px 16px;
        border-radius: 20px;
        margin-bottom: -4px;
    }

    /* 4. Dashboard App Tiles */
    .stats-grid-app {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        margin-top: 20px;
    }

    .app-tile {
        background: white;
        padding: 25px 15px;
        border-radius: 24px;
        border: 1px solid rgba(0,0,0,0.03);
        box-shadow: 0 10px 20px rgba(0,0,0,0.02);
        text-decoration: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
    }

    .app-tile::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(0,0,0,0.01) 100%);
        pointer-events: none;
    }

    .app-tile:active { 
        transform: scale(0.92);
        background: #f1f5f9;
    }

    .app-tile .tile-icon {
        font-size: 32px;
        margin-bottom: 12px;
        filter: drop-shadow(0 5px 10px rgba(0,0,0,0.1));
    }

    .app-tile h3 {
        font-size: 11px;
        color: var(--gray-500);
        margin: 0;
        font-weight: 800;
        letter-spacing: 0.5px;
        text-transform: uppercase;
    }

    .app-tile .tile-value {
        font-size: 16px;
        font-weight: 900;
        color: var(--slate);
        margin-top: 6px;
    }

    /* Wallet Hero Mobile Polish */
    .wallet-hero-premium {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px !important;
        gap: 20px;
    }

    .wallet-actions { width: 100%; }
    .wallet-actions .btn-premium { width: 100% !important; }

    .txn-table-premium thead { display: none; }
    .txn-table-premium td { 
        display: block; 
        text-align: right; 
        padding: 10px 15px !important;
        border: none !important;
    }
    .txn-table-premium td::before {
        content: attr(data-label);
        float: left;
        font-weight: 800;
        font-size: 10px;
        color: var(--gray-400);
        text-transform: uppercase;
    }
    .txn-table-premium tr {
        display: block;
        border-bottom: 1px solid #f1f5f9;
        padding: 10px 0;
    }

    /* 5. Mobile Page Headers */
    .app-page-header {
        margin-bottom: 25px;
        text-align: left;
    }

    .app-page-header h1 {
        font-size: 24px;
        font-weight: 900;
        letter-spacing: -0.5px;
    }

    .app-page-header p {
        font-size: 13px;
        color: var(--gray-500);
        font-weight: 600;
    }

    /* 6. List Layout Improvements */
    .report-card-premium {
        border-radius: 20px !important;
        margin-bottom: 20px;
    }

    .report-filters-premium {
        padding: 15px !important;
    }

    .report-filters-premium .filter-group {
        min-width: 100% !important;
    }

    /* 7. Full Screen Auth Optimization */
    .auth-card {
        padding: 30px 20px !important;
        border-radius: 30px !important;
    }
}

@media (min-width: 769px) {
    .bottom-nav, .stats-grid-app { display: none !important; }
}
