/* mobile.css - Swat Sehat Link Mobile Optimization */

@media (max-width: 768px) {
    /* Improve touch targets and text scaling on mobile */
    body {
        -webkit-tap-highlight-color: transparent;
        font-size: 14px;
        padding-bottom: 70px; /* Space for sticky bottom mobile nav */
    }

    /* Container adjustments */
    .max-w-7xl {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    /* Card padding compactness for small screens */
    .bg-white {
        padding: 1rem !important;
        border-radius: 0.75rem !important;
    }

    /* Tables horizontal scroll indicators */
    .overflow-x-auto {
        -webkit-overflow-scrolling: touch;
        margin-left: -1rem;
        margin-right: -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    table th, table td {
        white-space: nowrap;
        padding: 0.65rem 0.5rem !important;
        font-size: 13px !important;
    }

    /* Form buttons full width on mobile */
    button[type="submit"], input[type="submit"] {
        width: 100% !important;
    }
}

/* Sticky Mobile Bottom Navigation Bar */
.mobile-bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #ffffff;
        border-top: 1px solid #e2e8f0;
        box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.05);
        z-index: 1000;
        justify-content: space-around;
        padding: 8px 0;
    }

    .mobile-bottom-nav a {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: #64748b;
        font-size: 11px;
        font-weight: 600;
    }

    .mobile-bottom-nav a.active, .mobile-bottom-nav a:hover {
        color: #059669;
    }

    .mobile-bottom-nav a i {
        font-size: 18px;
        margin-bottom: 2px;
    }
}