/**
 * responsive.css
 * Contains media queries to make the admin platform layout responsive.
 */

/* ==========================================================================
   1. Tablet Devices (e.g., iPads in portrait mode)
   ========================================================================== */
@media (max-width: 768px) {
    /* --- General Layout --- */
    .main-container {
        padding: 15px;
        /* Adjust top padding for a potentially smaller header */
        padding-top: calc(var(--header-height) + 15px);
    }

    /* --- Header Adjustments --- */
    .main-header {
        padding: 0 15px;
        /* Reduce header height slightly on smaller screens */
        height: 65px;
        /* Adjust position to be closer to the edge */
        top: 5px;
        left: 5px;
        right: 5px;
    }

    .main-nav {
        gap: 10px; /* Reduce space between nav items */
    }

    /* Hide the "Welcome" text to save space */
    .user-info {
        display: none;
    }

    .logo a {
        font-size: 20px; /* Make logo text smaller */
    }

    /* --- Authentication Form --- */
    .auth-container {
        padding: 30px; /* Reduce padding on the login box */
    }

    .auth-header h2 {
        font-size: 24px; /* Smaller heading on login page */
    }
}

/* ==========================================================================
   2. Mobile Devices (e.g., iPhones, Android phones)
   ========================================================================== */
@media (max-width: 480px) {
    /* --- Body & Font Adjustments --- */
    body {
        font-size: 14px; /* Reduce base font size for better readability on small screens */
    }

    /* --- Header Adjustments --- */
    .main-header {
        height: 60px;
        padding: 0 10px;
    }

    /* Further simplify the nav bar for very small screens */
    .main-nav {
        gap: 8px;
    }

    .btn {
        padding: 10px 15px;
        font-size: 14px;
    }

    /* --- Authentication Form --- */
    .auth-wrapper {
        padding: 10px; /* Reduce wrapper padding */
        align-items: flex-start; /* Align form to the top */
        padding-top: 5vh;
    }

    .auth-container {
        padding: 20px; /* Further reduce padding on the login box */
        width: 100%;
    }

    .auth-header h2 {
        font-size: 22px;
    }

    .auth-header p {
        margin-bottom: 20px;
        font-size: 13px;
    }

    .form-group input {
        padding: 10px 12px;
        font-size: 14px;
    }
}