/* Responsive CSS for Employee Dashboard - Refined for Professional Mobile View */

/* Large Tablets & Small Laptops */
@media (max-width: 1199.98px) {
    .main-heading h1 {
        font-size: 26px;
    }
}

/* Tablets (Portrait) */
@media (max-width: 991.98px) {
    .main-left {
        width: 100%;
        position: static;
        height: auto;
        padding: 10px 15px;
        border-bottom: 1px solid #e2e8f0;
    }

    .main-right {
        width: 100%;
        padding-left: 0;
    }

    .nav-bar-list {
        display: flex;
        flex-direction: row;
        overflow-x: auto; /* Allow horizontal scroll if many items */
        padding-bottom: 5px;
        gap: 8px;
        -webkit-overflow-scrolling: touch;
    }

    .nav-bar-list::-webkit-scrollbar {
        height: 2px;
    }

    .nav-bar-list li {
        flex: 0 0 auto;
        margin-top: 0 !important;
    }

    .nav-link {
        padding: 8px 15px;
        white-space: nowrap;
        border-radius: 8px;
    }

    .main-wrapper {
        padding-top: 0px;
    }

    header {
        position: sticky;
        top: 0;
        z-index: 1000;
        background: #fff;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    }

    .main-heading h1 {
        font-size: 22px;
        text-align: left;
    }

    .main-heading p {
        text-align: left;
        font-size: 14px;
    }
}

/* Small Tablets & Large Phones */
@media (max-width: 767.98px) {
    .navbar {
        padding: 10px 15px !important;
    }

    .custom-header-cta {
        width: 100%;
        justify-content: flex-end;
        gap: 10px;
        margin-top: 10px;
    }

    .nav-brand img {
        height: 35px;
    }

    /* Grid boxes to 2 columns */
    .attendance-cover-box ul,
    .activity-cover-box ul,
    .communication-cover-box ul,
    .excel-hire-cover-box ul {
        display: flex;
        flex-wrap: wrap;
        margin: 0 -5px;
    }

    .attendance-cover-box ul li,
    .activity-cover-box ul li,
    .communication-cover-box ul li,
    .excel-hire-cover-box ul li {
        width: 50%;
        padding: 5px;
    }

    .attendance-box, .activity-box, .communication-box, .excel-hire-box {
        padding: 15px !important;
        height: 100%;
    }

    .custom-cover {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .custom-activity-cover {
        width: 100%;
        flex-wrap: wrap;
    }

    .custom-activity-cover .input-group {
        max-width: 100% !important;
        flex: 1 1 100%;
    }

    .overview-cover {
        padding: 20px !important;
    }

    .employee-cover {
        padding: 40px 20px !important;
    }
}

/* Phones (Portrait) */
@media (max-width: 575.98px) {
    .attendance-cover-box ul li,
    .activity-cover-box ul li,
    .communication-cover-box ul li,
    .excel-hire-cover-box ul li {
        width: 100%; /* Single column on very small screens */
    }

    .nav-link-content {
        display: none; /* Only icons on small mobile */
    }

    .nav-link {
        padding: 10px;
        width: 45px;
        height: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .main-heading h1 {
        font-size: 18px;
    }

    .attendance-box h3,
    .activity-box h3,
    .communication-box h3,
    .excel-hire-box h3 {
        font-size: 18px;
    }

    .bottom-footer-content {
        flex-direction: column;
        text-align: center;
        gap: 8px;
        font-size: 12px;
    }

    .footer-content h2, .quick-link-content h2, .resources-container h2 {
        font-size: 18px;
    }

    .custom-btn {
        padding: 8px 12px;
        font-size: 12px;
    }

    /* Better spacing for role selection */
    .select-box .row > div:first-child {
        margin-bottom: 15px;
    }
}
