/* Mobile App Styles - Montridge */
/* Simple, reliable mobile navigation */

* {
    box-sizing: border-box;
}

body {
    -webkit-tap-highlight-color: transparent;
}

/* Desktop: Hide mobile UI */
@media (min-width: 769px) {
    .mobile-app-header,
    .mobile-bottom-nav {
        display: none !important;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    html, body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    /* Hide desktop header on mobile */
    .desktop-header {
        display: none !important;
    }
    
    /* ===== Mobile Header ===== */
    .mobile-app-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 64px;
        z-index: 1000;
        display: flex;
        align-items: center;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        padding: 0 1rem;
    }
    
    .mobile-app-header-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }
    
    .mobile-header-left {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    
    .mobile-back-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: rgba(0, 0, 0, 0.05);
        color: #374151;
    }
    
    .mobile-header-logo {
        height: 28px;
        width: auto;
    }
    
    .mobile-header-title {
        font-size: 0.95rem;
        font-weight: 600;
        color: #1f2937;
    }
    
    .mobile-header-right {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    
    .mobile-action-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: rgba(0, 0, 0, 0.05);
        color: #374151;
    }
    
    .mobile-action-btn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
        max-width: 36px !important;
        max-height: 36px !important;
        border-radius: 50% !important;
        background: rgba(0, 0, 0, 0.05) !important;
        color: #374151 !important;
        padding: 0 !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
        box-sizing: border-box !important;
    }
    
    .mobile-action-btn svg {
        width: 18px !important;
        height: 18px !important;
        max-width: 18px !important;
        max-height: 18px !important;
        min-width: 18px !important;
        min-height: 18px !important;
        display: block !important;
        flex-shrink: 0 !important;
        box-sizing: border-box !important;
    }
    
    .mobile-action-btn svg * {
        width: 18px !important;
        height: 18px !important;
        max-width: 18px !important;
        max-height: 18px !important;
    }
    
    .mobile-logout-btn {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
        max-width: 36px !important;
        max-height: 36px !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .mobile-logout-btn svg {
        width: 18px !important;
        height: 18px !important;
        max-width: 18px !important;
        max-height: 18px !important;
        min-width: 18px !important;
        min-height: 18px !important;
    }
    
    .mobile-logout-btn svg * {
        width: 18px !important;
        height: 18px !important;
        max-width: 18px !important;
        max-height: 18px !important;
    }
    
    /* Override any Tailwind classes */
    .mobile-action-btn.h-5,
    .mobile-action-btn.w-5,
    .mobile-logout-btn.h-5,
    .mobile-logout-btn.w-5 {
        width: 36px !important;
        height: 36px !important;
    }
    
    .mobile-action-btn svg.h-5,
    .mobile-action-btn svg.w-5,
    .mobile-logout-btn svg.h-5,
    .mobile-logout-btn svg.w-5 {
        width: 18px !important;
        height: 18px !important;
    }
    
    .mobile-user-name {
        font-size: 0.8rem;
        color: #374151;
        max-width: 120px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* ===== Bottom Navigation ===== */
    .mobile-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 1000;
        display: flex;
        background: transparent;
        padding: 0;
        margin: 0;
    }
    
    /* Hide navbar on login page */
    body.login-page .mobile-bottom-nav {
        display: none !important;
    }
    
    .mobile-bottom-nav-inner {
        display: flex;
        align-items: flex-end;
        justify-content: space-around;
        width: 100%;
        padding: 6px 6px calc(6px + env(safe-area-inset-bottom)) 6px;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
        gap: 2px;
    }
    
    .mobile-nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0;
        text-decoration: none;
        color: #6b7280;
        font-size: 9px;
        font-weight: 500;
        padding: 4px 2px;
        border-radius: 12px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        -webkit-tap-highlight-color: transparent;
        min-width: 0;
        position: relative;
    }
    
    .mobile-nav-item:active {
        transform: scale(0.92);
    }
    
    .mobile-nav-item.active {
        color: inherit;
    }
    
    /* Icon wrapper with colors - fully rounded (circular) */
    .mobile-nav-icon-wrapper {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: #f3f4f6;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
    }
    
    /* Color-specific backgrounds for each icon */
    .mobile-nav-item[data-nav="dashboard"] .mobile-nav-icon-wrapper {
        background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    }
    
    .mobile-nav-item[data-nav="attendance"] .mobile-nav-icon-wrapper {
        background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    }
    
    .mobile-nav-item[data-nav="concerns"] .mobile-nav-icon-wrapper {
        background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    }
    
    .mobile-nav-item[data-nav="fee-policy"] .mobile-nav-icon-wrapper {
        background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    }
    
    .mobile-nav-item[data-nav="profile"] .mobile-nav-icon-wrapper,
    .mobile-nav-item[data-nav="login"] .mobile-nav-icon-wrapper {
        background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
    }
    
    /* Active state - colored background */
    .mobile-nav-item.active .mobile-nav-icon-wrapper {
        background: var(--nav-color, #3b82f6) !important;
        transform: translateY(-4px) scale(1.05);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2), 0 0 0 4px rgba(var(--nav-color-rgb, 59, 130, 246), 0.1);
    }
    
    /* Specific active colors */
    .mobile-nav-item.active[data-nav="dashboard"] .mobile-nav-icon-wrapper {
        background: #6366f1 !important;
        box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3), 0 0 0 4px rgba(99, 102, 241, 0.1);
    }
    
    .mobile-nav-item.active[data-nav="attendance"] .mobile-nav-icon-wrapper {
        background: #10b981 !important;
        box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3), 0 0 0 4px rgba(16, 185, 129, 0.1);
    }
    
    .mobile-nav-item.active[data-nav="concerns"] .mobile-nav-icon-wrapper {
        background: #3b82f6 !important;
        box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3), 0 0 0 4px rgba(59, 130, 246, 0.1);
    }
    
    .mobile-nav-item.active[data-nav="fee-policy"] .mobile-nav-icon-wrapper {
        background: #f59e0b !important;
        box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3), 0 0 0 4px rgba(245, 158, 11, 0.1);
    }
    
    .mobile-nav-item.active[data-nav="profile"] .mobile-nav-icon-wrapper,
    .mobile-nav-item.active[data-nav="login"] .mobile-nav-icon-wrapper {
        background: #ec4899 !important;
        box-shadow: 0 8px 20px rgba(236, 72, 153, 0.3), 0 0 0 4px rgba(236, 72, 153, 0.1);
    }
    
    /* Icon colors */
    .mobile-nav-icon-wrapper svg {
        width: 26px;
        height: 26px;
        stroke: #6b7280;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1;
        position: relative;
    }
    
    /* Active icon - white */
    .mobile-nav-item.active .mobile-nav-icon-wrapper svg {
        stroke: #ffffff;
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    }
    
    /* Inactive icons - colored */
    .mobile-nav-item:not(.active)[data-nav="dashboard"] .mobile-nav-icon-wrapper svg {
        stroke: #6366f1;
    }
    
    .mobile-nav-item:not(.active)[data-nav="attendance"] .mobile-nav-icon-wrapper svg {
        stroke: #10b981;
    }
    
    .mobile-nav-item:not(.active)[data-nav="concerns"] .mobile-nav-icon-wrapper svg {
        stroke: #3b82f6;
    }
    
    .mobile-nav-item:not(.active)[data-nav="fee-policy"] .mobile-nav-icon-wrapper svg {
        stroke: #f59e0b;
    }
    
    .mobile-nav-item:not(.active)[data-nav="profile"] .mobile-nav-icon-wrapper svg,
    .mobile-nav-item:not(.active)[data-nav="login"] .mobile-nav-icon-wrapper svg {
        stroke: #ec4899;
    }
    
    /* Label - hidden by default, shown only for active */
    .mobile-nav-label {
        font-size: 9px;
        line-height: 1.1;
        text-align: center;
        color: #6b7280;
        font-weight: 600;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
        opacity: 0;
        height: 0;
        margin-top: 0;
        transform: translateY(-6px);
    }
    
    /* Show label only for active item */
    .mobile-nav-item.active .mobile-nav-label {
        opacity: 1 !important;
        height: auto !important;
        margin-top: 4px !important;
        transform: translateY(0) !important;
        display: block !important;
        visibility: visible !important;
        padding: 4px 10px !important;
        border-radius: 12px !important;
        background: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(10px) !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    }
    
    /* Label colors and backgrounds for active items - use nav color */
    .mobile-nav-item.active[data-nav="dashboard"] .mobile-nav-label {
        color: #6366f1 !important;
        background: rgba(99, 102, 241, 0.15) !important;
        box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2) !important;
    }
    
    .mobile-nav-item.active[data-nav="attendance"] .mobile-nav-label {
        color: #10b981 !important;
        background: rgba(16, 185, 129, 0.15) !important;
        box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2) !important;
    }
    
    .mobile-nav-item.active[data-nav="concerns"] .mobile-nav-label {
        color: #3b82f6 !important;
        background: rgba(59, 130, 246, 0.15) !important;
        box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2) !important;
    }
    
    .mobile-nav-item.active[data-nav="fee-policy"] .mobile-nav-label {
        color: #f59e0b !important;
        background: rgba(245, 158, 11, 0.15) !important;
        box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2) !important;
    }
    
    .mobile-nav-item.active[data-nav="profile"] .mobile-nav-label,
    .mobile-nav-item.active[data-nav="login"] .mobile-nav-label {
        color: #ec4899 !important;
        background: rgba(236, 72, 153, 0.15) !important;
        box-shadow: 0 2px 8px rgba(236, 72, 153, 0.2) !important;
    }
    
    /* Profile dropdown */
    .mobile-profile-menu {
        position: fixed;
        bottom: 80px;
        right: 1rem;
        width: 220px;
        border-radius: 1rem;
        background: #ffffff;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        overflow: hidden;
        z-index: 1001;
        border: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .mobile-profile-menu-header {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .mobile-profile-name {
        font-size: 0.9rem;
        font-weight: 600;
        color: #1f2937;
    }
    
    .mobile-profile-menu-item {
        padding: 0.25rem;
    }
    
    .mobile-profile-menu-link {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem 0.75rem;
        border-radius: 0.75rem;
        background: transparent;
        color: #374151;
        border: none;
        cursor: pointer;
    }

    .mobile-profile-logout {
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        gap: 0.5rem !important;
        padding: 0.5rem 0.75rem !important;
        border-radius: 0.75rem !important;
        background: transparent !important;
    }

    .mobile-profile-logout:hover {
        background: rgba(0, 0, 0, 0.05) !important;
    }
    
    .mobile-profile-logout svg {
        width: 18px !important;
        height: 18px !important;
    }
    .mobile-profile-menu-link:hover {
        background: rgba(0, 0, 0, 0.05);
    }
    
    /* Admin dropdown */
    .mobile-dropdown-menu {
        position: absolute;
        top: 52px;
        right: 0;
        width: 230px;
        border-radius: 1rem;
        background: #ffffff;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        padding: 0.35rem;
        z-index: 1001;
        border: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .mobile-dropdown-item {
        margin: 0.15rem 0;
    }
    
    .mobile-dropdown-link {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem 0.75rem;
        border-radius: 0.75rem;
        text-decoration: none;
        color: #374151;
    }
    
    .mobile-dropdown-link:hover {
        background: rgba(0, 0, 0, 0.05);
    }
    
    .mobile-dropdown-icon {
        font-size: 1rem;
    }
    
    .mobile-dropdown-text {
        font-size: 0.85rem;
    }
    
    /* ===== Content Spacing - Prevent Content Hidden Under Navbar ===== */
    /* Mobile header height is 64px, add extra padding for safety */
    .mobile-app-header {
        height: 64px;
    }
    
    /* Apply padding to all main content areas */
    body:not(.login-page) .mobile-app-content,
    body:not(.login-page) main,
    body:not(.login-page) .attendance-main {
        padding-top: 80px !important;
        padding-bottom: 70px !important;
        margin-top: 0 !important;
    }
    
    /* Fix for pages with max-w containers directly in body (like fee policy) */
    body:not(.login-page) > .max-w-7xl,
    body:not(.login-page) > .max-w-6xl,
    body:not(.login-page) > .max-w-4xl,
    body:not(.login-page) > div.max-w-7xl,
    body:not(.login-page) > div.max-w-6xl,
    body:not(.login-page) > div.max-w-4xl {
        padding-top: 80px !important;
        padding-bottom: 70px !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
    
    /* Fix for containers with mx-auto class */
    body:not(.login-page) > div.max-w-7xl.mx-auto,
    body:not(.login-page) > div.max-w-6xl.mx-auto,
    body:not(.login-page) > div.max-w-4xl.mx-auto {
        padding-top: 80px !important;
        padding-bottom: 70px !important;
    }
    
    /* Fix for pages with py-6 or similar padding classes */
    body:not(.login-page) .max-w-7xl.py-6,
    body:not(.login-page) .max-w-6xl.py-6,
    body:not(.login-page) .max-w-4xl.py-6 {
        padding-top: 80px !important;
        padding-bottom: 70px !important;
    }
    
    /* Fix for pages with py-12 or other padding */
    body:not(.login-page) .max-w-7xl.py-12,
    body:not(.login-page) .max-w-6xl.py-12,
    body:not(.login-page) .max-w-4xl.py-12 {
        padding-top: 80px !important;
        padding-bottom: 70px !important;
    }
    
    /* Fix for pages with min-h-screen and flex containers */
    body:not(.login-page) > div.min-h-screen,
    body:not(.login-page) > div.flex {
        padding-top: 80px !important;
        padding-bottom: 70px !important;
    }
    
    /* Hide desktop header on mobile - we use mobile header instead */
    body:not(.login-page) .desktop-header {
        display: none !important;
    }
    
    /* Fix for main content when desktop header is hidden - use mobile header spacing */
    body:not(.login-page) main.mobile-main-content {
        padding-top: 88px !important;
        padding-bottom: 70px !important;
    }
    
    /* Ensure main has proper spacing when it comes directly after mobile header */
    body:not(.login-page) .mobile-app-header + main.mobile-main-content {
        padding-top: 88px !important;
    }
    
    /* Ensure first content in main has proper spacing */
    body:not(.login-page) .desktop-header + main > *:first-child {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    
    /* Ensure dashboard content starts with proper spacing */
    body:not(.login-page) .desktop-header + main #dashboard-content {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
    
    /* Ensure welcome section has proper top spacing */
    body:not(.login-page) .desktop-header + main #dashboard-content > div:first-child {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
    
    /* Fix for welcome section and first content in main - ensure proper spacing */
    body:not(.login-page) main #dashboard-content > div:first-child {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
    
    /* Ensure welcome text is not hidden under mobile header */
    body:not(.login-page) main h1:first-child {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    
    body:not(.login-page) main p.text-gray-600:first-of-type {
        margin-top: 8px !important;
        padding-top: 0 !important;
    }
    
    /* Ensure first element in main has proper spacing from top */
    body:not(.login-page) main > *:first-child {
        margin-top: 0 !important;
    }
    
    /* Admin Quick Actions - mobile responsive grid */
    body:not(.login-page) #admin-actions .grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    @media (min-width: 768px) {
        body:not(.login-page) #admin-actions .grid {
            display: flex !important;
            flex-wrap: wrap !important;
        }
    }
    
    /* Fix for pages with min-h-screen wrapper */
    body:not(.login-page) > div.min-h-screen > .desktop-header {
        margin-top: 0 !important;
    }
    
    body:not(.login-page) > div.min-h-screen > .desktop-header + main {
        padding-top: 20px !important;
        padding-bottom: 70px !important;
    }
    
    body:not(.login-page) > div.min-h-screen {
        padding-bottom: 70px !important;
    }
    
    /* Fix for body with min-h-screen directly */
    body:not(.login-page).min-h-screen {
        padding-bottom: 70px !important;
    }
    
    /* Fix for first child elements that might be hidden */
    body:not(.login-page) .mobile-app-header + *:not(.desktop-header):not(.mobile-bottom-nav),
    body:not(.login-page) .mobile-app-header ~ div:first-of-type:not(.desktop-header):not(.mobile-bottom-nav) {
        padding-top: 80px !important;
        padding-bottom: 70px !important;
    }
    
    /* Fix for pages with max-w-2xl, max-w-3xl containers */
    body:not(.login-page) > .max-w-2xl,
    body:not(.login-page) > .max-w-3xl,
    body:not(.login-page) > div.max-w-2xl,
    body:not(.login-page) > div.max-w-3xl {
        padding-top: 80px !important;
        padding-bottom: 70px !important;
    }
    
    /* Fix for pages with max-w-xl containers */
    body:not(.login-page) > .max-w-xl,
    body:not(.login-page) > div.max-w-xl {
        padding-top: 80px !important;
        padding-bottom: 70px !important;
    }
    
    /* Fix for main elements with max-w classes */
    body:not(.login-page) main.max-w-2xl,
    body:not(.login-page) main.max-w-3xl,
    body:not(.login-page) main.max-w-xl {
        padding-top: 80px !important;
        padding-bottom: 70px !important;
    }
    
    /* Fix for header + main combinations */
    body:not(.login-page) .desktop-header + main.max-w-2xl,
    body:not(.login-page) .desktop-header + main.max-w-3xl,
    body:not(.login-page) .desktop-header + main.max-w-xl {
        padding-top: 20px !important;
        padding-bottom: 70px !important;
    }
    
    /* Fix for div containers after mobile header */
    body:not(.login-page) .mobile-app-header + div:not(.desktop-header):not(.mobile-bottom-nav) {
        padding-top: 80px !important;
    }
    
    /* Ensure all content containers have bottom padding */
    body:not(.login-page) .mobile-app-header ~ *:not(.mobile-bottom-nav):not(.desktop-header) {
        padding-bottom: 70px !important;
    }
    
    /* Fix for specific page structures - submit concern, feedback form */
    body:not(.login-page) header.desktop-header + main {
        padding-bottom: 70px !important;
    }
    
    /* Fix for pages with flex containers */
    body:not(.login-page) > div.flex.items-center {
        padding-top: 80px !important;
        padding-bottom: 70px !important;
    }
    
    /* Fix for hall tickets page structure */
    body:not(.login-page) #three-canvas {
        padding-top: 64px !important;
    }
    
    body:not(.login-page) #setup-wizard {
        padding-top: 80px !important;
        padding-bottom: 70px !important;
    }
    
    /* Ensure search inputs and forms are visible */
    body:not(.login-page) input[type="text"],
    body:not(.login-page) input[type="search"],
    body:not(.login-page) .search,
    body:not(.login-page) form:first-child {
        margin-top: 0 !important;
    }
    
    /* Fix for specific page structures */
    body:not(.login-page) .max-w-6xl.mx-auto.flex,
    body:not(.login-page) .max-w-7xl.mx-auto.flex {
        padding-top: 80px !important;
        padding-bottom: 70px !important;
    }
    
    /* Fix for footer elements - ensure they're above bottom nav */
    body:not(.login-page) footer {
        padding-bottom: 80px !important;
        margin-bottom: 0 !important;
        position: relative;
        z-index: 1;
    }
    
    /* Ensure footer text is visible */
    body:not(.login-page) footer p {
        padding-bottom: 10px !important;
    }
    
    /* Fix for last child elements that might be hidden */
    body:not(.login-page) > *:last-child:not(.mobile-bottom-nav):not(.mobile-app-header) {
        padding-bottom: 70px !important;
    }
    
    /* Fix for pages with tables or scrollable content */
    body:not(.login-page) .table-container,
    body:not(.login-page) .scrollable-content,
    body:not(.login-page) [class*="overflow"] {
        padding-bottom: 70px !important;
    }
    
    /* Fix for card containers and content wrappers */
    body:not(.login-page) .card,
    body:not(.login-page) .content-wrapper,
    body:not(.login-page) .page-content {
        padding-bottom: 70px !important;
    }
    
    /* Login page adjustments */
    body.login-page .mobile-app-content {
        padding-top: 0;
        padding-bottom: 1rem;
    }
    
    /* Ensure no content overlaps navbar */
    body:not(.login-page) > *:not(.mobile-app-header):not(.mobile-bottom-nav) {
        position: relative;
        z-index: 1;
    }
}
