﻿/* Global Variables */
body {
    --nav-height: 45px;
    --client-nav-height: 80px;
    --menu-width: 320px;
    overscroll-behavior: none;
}

.main {
    min-height: calc(100vh - var(--nav-height) - 20px);
}

#app:has(.wrapper-link) > main {
    margin: 10px;
}

/* Mobile menu width adjustments */
@media only screen and (max-width: 768px) {
    body {
        --menu-width: 280px;
    }
}

@media only screen and (max-width: 480px) {
    body {
        --menu-width: 100%;
    }
}

/* 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;
    }
}


/* Other */
.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 > .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;
}


tr:has(.image-view):hover .image-view {
    display: block;
}

.image-view {
    display: none;
    position: fixed;
    min-width: 10vw;
    max-width: 25vw;
    max-height: 25vh;
    object-fit: contain;
    bottom: 10px;
    left: 10px;
}

.grey-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: start;
    background-color: color-mix(in srgb, lightgray, transparent 70%);
    border: lightgray 2px solid;
    border-radius: 10px;
    padding: 10px;
}
