/* Mobile Account/Logout/Theme Fixes - December 2025 */
/* Fixes: sidebar cutoff, slogan visible, hamburger menu access */

/* Hide mobile account section by default (desktop) */
.mobile-account-section {
    display: none;
}

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

    /* Hide slogan on mobile */
    #rotating-slogan {
        display: none !important;
    }

    /* Hide right hamburger menu on mobile (features now in sidebar) */
    .user-menu-container {
        display: none !important;
    }

    /* Hide header logout button on mobile (already in sidebar menu) */
    .logout-btn {
        display: none !important;
    }

    /* Hide user greeting/trial info on mobile (saves vertical space) */
    .user-greeting {
        display: none !important;
    }

    /* Reduce nav item padding for more compact sidebar */
    .sidebar .nav-item {
        padding: 0.45rem 1rem;
        margin: 0.05rem 0.5rem;
    }

    .sidebar .nav-section {
        margin-bottom: 0.3rem;
        padding-top: 0.3rem;
    }

    .sidebar .nav-title {
        padding: 0.2rem 1rem;
        margin-bottom: 0.1rem;
    }

    /* Show mobile account section */
    .mobile-account-section {
        display: block;
        border-top: 2px solid #e5e7eb;
        margin: 15px 10px 10px 10px;
        padding-top: 12px;
        padding-bottom: 20px;
    }

    /* Account/Logout buttons side by side */
    .mobile-account-buttons {
        display: flex;
        gap: 8px;
        margin-bottom: 12px;
    }

    .mobile-account-btn,
    .mobile-logout-btn {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 10px 8px;
        border-radius: 10px;
        text-decoration: none;
        border: 1px solid #e5e7eb;
        transition: all 0.2s ease;
    }

    .mobile-account-btn {
        background: #f9fafb;
        color: #374151;
    }

    .mobile-account-btn:hover {
        background: #f3f4f6;
        border-color: #d1d5db;
    }

    .mobile-account-btn i {
        font-size: 1rem;
        color: #6b7280;
        margin-bottom: 3px;
    }

    .mobile-account-btn span {
        font-size: 0.7rem;
        color: #374151;
    }

    .mobile-logout-btn {
        background: #fef2f2;
        border-color: #fecaca;
        color: #dc2626;
    }

    .mobile-logout-btn:hover {
        background: #fee2e2;
        border-color: #f87171;
    }

    .mobile-logout-btn i {
        font-size: 1rem;
        color: #dc2626;
        margin-bottom: 3px;
    }

    .mobile-logout-btn span {
        font-size: 0.7rem;
        color: #dc2626;
    }

    /* Theme section */
    .mobile-theme-section {
        text-align: center;
    }

    .mobile-theme-label {
        font-size: 0.6rem;
        font-weight: 600;
        color: #9ca3af;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        margin-bottom: 6px;
    }

    .mobile-theme-colors {
        display: flex;
        gap: 6px;
        justify-content: center;
    }

    .mobile-theme-colors .color-option {
        width: 22px;
        height: 22px;
    }

    /* Add padding at bottom of sidebar to ensure scrollability to theme colors */
    .sidebar {
        padding-bottom: 100px;
    }

    /* Extra bottom margin on mobile account section for scroll access */
    .mobile-account-section {
        margin-bottom: 80px;
    }

    /* Recent Reports & Cost Estimates - stack vertically on mobile */
    #recent-reports-container > div,
    #recent-estimates-container > div {
        display: flex !important;
        flex-direction: column;
        gap: 1rem;
    }

    #recent-reports-container > div > .report-preview-card,
    #recent-estimates-container > div > .estimate-preview-card {
        width: 100%;
    }

    /* Hide "View All" buttons on mobile - they navigate incorrectly */
    .hide-on-mobile {
        display: none !important;
    }
}
