/* ============================================
   Mobile App Design - Premium Gradient Style
   Based on provided mockup design
   ============================================ */

/* Hide mobile layout on desktop - IMPORTANT */
.mobile-app-layout {
    display: none !important;
}

/* Desktop-only elements are visible by default */
.desktop-only {
    display: block !important;
}

/* Mobile-only styles */
@media (max-width: 768px) {

    /* Show mobile layout */
    .mobile-app-layout {
        display: block !important;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #e91e63 100%);
        min-height: 100vh;
        padding-bottom: 80px;
    }

    /* Hide desktop dashboard on mobile */
    .dashboard-welcome.desktop-only,
    .quick-actions.desktop-only {
        display: none !important;
    }

    /* Hide standard header content on mobile */
    body .main-header {
        display: none !important;
    }

    /* Hide footer on mobile */
    body .main-footer {
        display: none !important;
    }

    /* Remove main content padding */
    body .main-content {
        padding-top: 0 !important;
    }

    body .main-content>.container {
        padding: 0 !important;
        max-width: 100% !important;
    }

    /* App Header */
    .mobile-app-header {
        padding: 30px 20px 10px;
        color: white;
        text-align: left;
    }

    .mobile-app-logo {
        font-size: 1.8rem;
        font-weight: 700;
        margin-bottom: 12px;
    }

    .mobile-app-logo span {
        color: #ffd54f;
    }

    .mobile-app-welcome {
        font-size: 1.3rem;
        font-weight: 600;
        margin-bottom: 4px;
    }

    .mobile-app-email {
        font-size: 0.85rem;
        opacity: 0.9;
    }

    /* Stats Row - 3 columns */
    .mobile-stats-row {
        display: flex;
        justify-content: center;
        gap: 14px;
        padding: 25px 16px;
    }

    .mobile-stat-card {
        background: white;
        padding: 18px 14px;
        border-radius: 20px;
        text-align: center;
        flex: 1;
        max-width: 100px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s;
    }

    .mobile-stat-card:active {
        transform: scale(0.95);
    }

    .mobile-stat-icon {
        font-size: 1.6rem;
        margin-bottom: 6px;
        display: block;
    }

    .mobile-stat-value {
        font-size: 1.4rem;
        font-weight: 700;
        color: #333;
        display: block;
    }

    .mobile-stat-label {
        font-size: 0.7rem;
        color: #888;
        font-weight: 500;
    }

    /* Main Content Card */
    .mobile-content-card {
        background: #f8f9ff;
        border-radius: 30px 30px 0 0;
        padding: 30px 20px 100px;
        min-height: calc(100vh - 300px);
    }

    .mobile-section-title {
        font-size: 1.1rem;
        font-weight: 600;
        color: #333;
        margin-bottom: 20px;
    }

    /* Action Cards - Rounded style */
    .mobile-action-cards {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .mobile-action-card {
        display: flex;
        align-items: center;
        gap: 16px;
        background: white;
        padding: 18px 20px;
        border-radius: 20px;
        text-decoration: none;
        color: #333;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        transition: all 0.3s;
    }

    .mobile-action-card:active {
        transform: scale(0.98);
        background: #fce4ec;
    }

    .mobile-action-icon {
        width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 16px;
        font-size: 1.5rem;
        flex-shrink: 0;
    }

    .mobile-action-card:nth-child(1) .mobile-action-icon {
        background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    }

    .mobile-action-card:nth-child(2) .mobile-action-icon {
        background: linear-gradient(135deg, #fce4ec, #f8bbd0);
    }

    .mobile-action-card:nth-child(3) .mobile-action-icon {
        background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    }

    .mobile-action-card:nth-child(4) .mobile-action-icon {
        background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    }

    .mobile-action-content h4 {
        font-size: 1rem;
        font-weight: 600;
        margin: 0 0 2px 0;
        color: #333;
    }

    .mobile-action-content p {
        font-size: 0.8rem;
        color: #888;
        margin: 0;
    }

    /* Enhanced Bottom Nav */
    .bottom-nav {
        background: white !important;
        border-radius: 24px 24px 0 0 !important;
        box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.1) !important;
        height: 70px !important;
    }

    .bottom-nav-item.active {
        color: #667eea !important;
    }
}

/* Very small phones adjustments */
@media (max-width: 390px) {
    .mobile-app-header {
        padding: 20px 16px 8px;
    }

    .mobile-app-logo {
        font-size: 1.5rem;
    }

    .mobile-app-welcome {
        font-size: 1.1rem;
    }

    .mobile-stats-row {
        gap: 10px;
        padding: 20px 12px;
    }

    .mobile-stat-card {
        padding: 14px 10px;
    }

    .mobile-stat-value {
        font-size: 1.2rem;
    }

    .mobile-stat-icon {
        font-size: 1.4rem;
    }

    .mobile-content-card {
        padding: 24px 16px 100px;
    }

    .mobile-action-card {
        padding: 14px 16px;
    }

    .mobile-action-icon {
        width: 44px;
        height: 44px;
        font-size: 1.3rem;
    }
}