﻿/*Navigation Menu*/
body {
    --nav-height: 45px;
    --client-nav-height: 80px;
    overscroll-behavior: none;
}

.main {
    min-height: calc(100vh - var(--nav-height) - 20px);
}

#app:has(.wrapper-link) > main {
    margin: 10px;
}


.top-bar {
    position: fixed;
    z-index: 300;
    background: var(--DarkColor);
    width: 100%;
    border-bottom: 2px #5788e2 solid;
}


.bar-height {
    height: var(--nav-height);
}


.menu-btn {
    height: 100%;
    width: 50px;
    text-align: center;
    font-size: 20px;
    color: white;
    border: none;
    background: none;
}

    .menu-btn:focus {
        outline: none;
    }


.wrapper-link {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: #000;
    clip-path: circle(0px at 100% 0px);
    transition: all 0.3s ease-in-out;
    z-index: 150;
    overflow: auto;
}

    .wrapper-link.active {
        clip-path: circle(75%);
    }

.menu-con {
    height: 100%;
    width: 100%;
    padding-top: var(--nav-height);
    display: flex;
    flex-direction: row;
    -ms-flex-wrap: wrap;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
    align-content: center;
    background: var(--DarkerColor);
}


.nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5px;
    width: 180px;
    height: 120px;
    border: none;
    border-radius: 15px;
    color: black;
    background: white;
    font-size: 1.2rem;
    text-decoration: none;
    white-space: nowrap;
    transition-property: color, background;
    transition-duration: 0.3s;
    transition-timing-function: ease-in-out
}

    .nav-btn > span {
        font-family: 'icon';
        font-size: 40px;
    }

    .nav-btn:hover {
        color: white;
        background: var(--PrimaryDarkColor);
    }

        .nav-btn:hover > span {
            font-family: 'iconBold';
        }

    .nav-btn.active {
        outline: 3px var(--PrimaryColor) solid;
        background: white;
        color: var(--PrimaryDarkColor);
    }

@media only screen and (max-device-width: 480px) {
    .menu-con {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: start;
        padding-block: calc(var(--nav-height) + 15px) 15px;
        padding-inline: 15px;
        height: auto;
        gap: 15px;
        align-content: center;
        justify-content: start;
    }

    .nav-btn {
        width: unset;
        height: unset;
    }
}

/* Client Navigation */
#app:has(.client-nav) > main {
    padding-bottom: var(--client-nav-height) !important;
    margin: 10px;
}

.client-nav {
    height: var(--client-nav-height);
    position: fixed;
    bottom: 0px;
    left: 0px;
    right: 0px;
    z-index: 200;
    border-radius: 20px 20px 0px 0px;
    background-color: var(--DarkColor);
    display: flex;
}

    .client-nav > img {
        display: none;
    }

.cn-items {
    display: flex;
    flex-grow: 1;
    justify-content: space-around;
    align-items: center;
}

    .cn-items > a {
        display: flex;
        color: white;
        text-decoration: none;
        flex-direction: row;
        align-items: center;
        gap: 8px;
        opacity: 0.8;
        transition: opacity 250ms ease-out;
    }

        .cn-items > a > span {
            font-family: 'icon';
            font-size: 24px;
        }

        .cn-items > a > div {
            font-size: 0em;
            transition: font-size 250ms ease-out;
        }

        .cn-items > a::after {
            content: '';
            position: absolute;
            bottom: -4px;
            background-color: transparent;
            width: 0px;
            opacity: 0;
            height: 4px;
            box-shadow: 0px -0px 35px 4px var(--PrimaryLightColor);
            transition-property: opacity, width;
            transition-duration: 500ms;
            transition-timing-function: ease-out;
        }

    .cn-items > .active::after {
        width: 100px;
        opacity: 1;
    }

    .cn-items > .active {
        opacity: 1;
    }

        .cn-items > .active > span {
            font-family: 'iconBold';
        }

        .cn-items > .active > div {
            font-size: 1.05em;
        }

/* Desktop */
@media (min-width: 700px) {
    #app:has(.client-nav) > main {
        padding-top: var(--client-nav-height) !important;
        padding-bottom: 0px;
    }

    .client-nav {
        padding-inline: 40px;
        top: 0px;
        bottom: unset;
        border-radius: 0px 0px 20px 20px;
    }

    .cn-items {
        justify-content: end;
        gap: 50px;
    }

    .client-nav > img {
        display: block;
        height: 70%;
        align-self: center;
    }

    .cn-items > a > div {
        font-size: 1em;
        transition: font-size 250ms ease-out;
    }
}

.car-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

@media screen and (min-width: 768px) {
    .car-wrapper {
        grid-template-columns: repeat(auto-fit, minmax(150px, 220px));
    }
}


.product-sel {
    overflow: hidden;
    border-radius: 15px;
    background-color: lightgray;
}


    .product-sel > img {
        --padding: 4px;
        width: calc(100% - (var(--padding) * 2 ));
        margin-left: var(--padding);
        margin-block-start: var(--padding);
        border-radius: 12px 12px 0px 0px;
        aspect-ratio: 1 / 1;
        object-fit: cover;
    }


    .product-sel > div {
        padding-inline: 5px;
    }



.dashboard-con {
    margin: -0.5rem;
    padding: 10px 20px;
    background-color: #d5d5d5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.num, .d-chart > * {
    background-color: white;
    border-radius: 15px;
    padding: 10px;
}

.num {
    --color: red;
    display: flex;
    gap: 20px;
}

    .num > .icon {
        display: flex;
        justify-content: center;
        align-items: center;
        font-family: iconBold;
        font-size: 25px;
        width: 50px;
        align-self: center;
        aspect-ratio: 1 / 1;
        background-color: var(--color);
        color: white;
        border-radius: 50%;
    }

    .num > .info {
    }

        .num > .info > .title {
            color: var(--color);
        }

        .num > .info > .det {
            color: black;
            font-size: 1.5em;
            font-weight: 800;
        }

.dashboard-con > .bar {
    background-color: white;
    border-radius: 15px;
    padding: 10px;
}


.page-control {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}