/* =========================================
   LADLI E-RIKSHA
   NAVBAR SYSTEM
========================================= */


/* =========================================
   DESKTOP NAVBAR
========================================= */

.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-nav a {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 10px 15px;

    color: #444;
    text-decoration: none;

    font-size: 14px;
    font-weight: 600;

    border-radius: 8px;

    transition:
        color 0.25s ease,
        background 0.25s ease,
        transform 0.25s ease;
}

.main-nav a:hover {
    color: #f57c00;
    background: #fff3e0;
}

.main-nav a.active {
    color: #f57c00;
    background: #fff3e0;
}


/* =========================================
   ACTIVE NAVBAR LINE
========================================= */

.main-nav a.active::after {
    content: "";

    position: absolute;

    left: 15px;
    right: 15px;
    bottom: 4px;

    height: 2px;

    background: #f57c00;

    border-radius: 10px;
}


/* =========================================
   MOBILE BOTTOM NAVBAR
========================================= */

.mobile-bottom-nav {
    display: none;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px) {

    .main-nav {
        display: none;
    }

    .mobile-bottom-nav {

        position: fixed;

        left: 0;
        right: 0;
        bottom: 0;

        z-index: 9999;

        display: flex;

        align-items: stretch;
        justify-content: space-around;

        width: 100%;

        background: #ffffff;

        border-top: 1px solid #eeeeee;

        box-shadow:
            0 -5px 20px rgba(0, 0, 0, 0.10);

        padding:
            7px 5px
            calc(7px + env(safe-area-inset-bottom));

    }


    .mobile-bottom-nav a {

        position: relative;

        flex: 1;

        min-width: 0;

        display: flex;

        flex-direction: column;

        align-items: center;
        justify-content: center;

        gap: 4px;

        padding: 7px 3px;

        color: #777;

        text-decoration: none;

        border-radius: 10px;

        transition:
            color 0.2s ease,
            background 0.2s ease,
            transform 0.2s ease;
    }


    .mobile-bottom-nav a:hover {
        color: #f57c00;
        background: #fff8f0;
    }


    .mobile-bottom-nav a.active {

        color: #f57c00;

        background: #fff3e0;
    }


    .mobile-bottom-nav a span {

        display: flex;

        align-items: center;
        justify-content: center;

        width: 25px;
        height: 25px;

        font-size: 19px;

        line-height: 1;
    }


    .mobile-bottom-nav a small {

        display: block;

        max-width: 100%;

        overflow: hidden;

        white-space: nowrap;

        text-overflow: ellipsis;

        font-size: 10px;

        font-weight: 600;

        line-height: 1.2;
    }


    /* Active indicator */

    .mobile-bottom-nav a.active::before {

        content: "";

        position: absolute;

        top: 0;

        left: 50%;

        transform: translateX(-50%);

        width: 30px;

        height: 3px;

        background: #f57c00;

        border-radius:
            0 0 5px 5px;
    }


    /* Space for fixed navbar */

    body {

        padding-bottom:
            calc(
                72px +
                env(safe-area-inset-bottom)
            );
    }

}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 380px) {

    .mobile-bottom-nav {
        padding-left: 2px;
        padding-right: 2px;
    }


    .mobile-bottom-nav a {
        padding-left: 1px;
        padding-right: 1px;
    }


    .mobile-bottom-nav a span {
        font-size: 18px;
    }


    .mobile-bottom-nav a small {
        font-size: 9px;
    }

}