﻿


/**********************************/
/*        MAIN-LAYOUT             */
/**********************************/
.layout {
}

.layout-grid {
    display: grid;
    width: 100vw;
    grid-template:
        "header header" var(--top-bar-height-mobile)
        "aside main"
        /auto auto;
}

.layout__top-bar {
    grid-area: header;
    background-color: var(--top-bar-color);
    width: 100%;
    height: 100%;
}

.layout__side-bar {
    grid-area: aside;
    background-color: var(--side-bar-color);
    width: 0;
    overflow: hidden;
    height: 100%;
    transition: width 150ms;
    min-height: calc(100vh - var(--top-bar-height-mobile));
}

.layout__side-bar__nav {
    display: flex;
    flex-direction: column;
    padding: 2px;
}

.layout__side-bar__nav__item {
    display: flex;
    width: 100%;
    font-size: 17px;
    align-items: center;
    justify-content: flex-start;
    padding: 10px 5px;
    cursor: pointer;
}

    .layout__side-bar__nav__item i {
        color: var(--side-bar-color-icon);
        margin-right: 10px;
    }

    .layout__side-bar__nav__item span {
        color: white;
    }

    .layout__side-bar__nav__item.active {
        background-color: var(--side-bar-clor-active);
    }


.layout__side-bar.open {
    width: var(--side-bar-width-mobile);
}

    .layout__side-bar.open .sidebar-link {
        animation-name: delayed-display;
        animation-duration: 100ms;
    }

.layout__main {
    grid-area: main;
    overflow-y: auto;
    overflow-x: hidden;
    height: calc(100vh - var(--top-bar-height-mobile));
}

    .layout__main.closed {
        transition: width 150ms;
        width: 100vw;
    }

    .layout__main.open {
        width: calc(100vw - var(--side-bar-width-mobile));
    }

@keyframes delayed-display {
    0% {
        opacity: 0;
    }

    99% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}


@media (min-width: 992px) {

    .layout__main {
        height: calc(100vh - var(--top-bar-height));
    }

        .layout__main.open {
            width: calc(100vw - var(--side-bar-width));
        }

    .layout__side-bar {
        min-height: calc(100vh - var(--top-bar-height));
    }

        .layout__side-bar.open {
            width: var(--side-bar-width);
        }
}



/**********************************/
/*        FORM                    */
/**********************************/


/**********************************/
/*        Multi Select            */
/**********************************/

.bx-multi-select {
    width: 300px;
}

    .bx-multi-select .dropdown-toggle {
        width: 300px;
    }

    .bx-multi-select .dropdown-menu {
        width: 300px;
        font-size: 19px;
    }

    .bx-multi-select .selected-list {
        width: 300px;
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
        margin-top: 5px;
    }


/**********************************/
/*        Alert                   */
/**********************************/
.bx-alert-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 98%;
    display: flex;
    flex-direction: column-reverse;
    justify-content: end;
    align-items: center;
    z-index: 9999;
    user-select: none;
    pointer-events: none;
    gap: 5px;
}

.bx-alert-single-container {
    max-width: 500px;
    width: 100%;
    animation: bx-alert-ascend-and-fade 350ms ease-in-out forwards;
}

.alert button {
    user-select: auto;
    pointer-events: auto;
}

@keyframes bx-alert-decend-and-fade {
    0% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(50px);
    }
}

@keyframes bx-alert-ascend-and-fade {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/**********************************/
/*        DIVERSE                 */
/**********************************/

.bought-items-item-area li {
    background-color: #ededed;
}

/**********************************/
/*        FormWizardProgress      */
/**********************************/
.fwp {
    width: fit-content;
    padding: 5px 0px;
    flex-direction: column;
    height: 90px;
    margin-right: auto;
    margin-left: auto;
}

.fwp-elementList {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.fwp-element {
    width: fit-content;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 80px;
}

    .fwp-element .fwp-title {
        width: 150px;
        text-align: center;
        background-color: #dbdbdb;
        border-radius: 5px;
        height: 40px;
        font-size: 12px;
    }

    .fwp-element .fwp-arrowDown {
        margin: 3px auto 1px auto;
        width: 0;
        height: 0;
        border-left: 0.4rem solid transparent;
        border-right: 0.4rem solid transparent;
        border-top: 0.7rem solid #dbdbdb; /* Use current text color */
    }

    .fwp-element .fwp-circle {
        margin-top: auto;
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 50%;
        width: 20px;
        height: 20px;
        background-color: #dbdbdb;
    }

        .fwp-element .fwp-circle .fwp-inner-circle {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            z-index: 10;
        }

            .fwp-element .fwp-circle .fwp-inner-circle.fwp-inner-circle--upcoming {
                z-index: 10;
                background-color: white;
            }

            .fwp-element .fwp-circle .fwp-inner-circle.fwp-inner-circle--current {
                z-index: 10;
                background-color: var(--color-primary);
            }

            .fwp-element .fwp-circle .fwp-inner-circle.fwp-inner-circle--completed {
                z-index: 10;
                display: flex;
                justify-content: center;
                align-items: center;
                background-color: var(--color-primary);
                width: 20px;
                height: 20px;
                color: white;
            }


.fwp .fwp-separator {
    height: 5px;
    margin: -11px auto 0 auto;
    background-color: #dbdbdb;
    width: calc(100% - 50px);
    z-index: -5;
}

/**********************************/
/*        Ukeplan                 */
/**********************************/

.meal-planner-container {
    max-width: 450px;
    width: 100vw;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
}

@media (min-width: 768px) {
    .meal-planner-container {
        width: 100vw;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
        padding: 10px;
        max-width: 100vw;
    }
}

.day-column {
    border: 1px solid lightgrey;
    border-radius: 10px;
    padding: 10px;
    width: 300px;
}

@media (max-width: 768px) {
    .day-column {
        width: 90%;
        margin: auto;
    }
}

.day-column-header {
    text-align: center;
}

/**********************************/
/*        BUTTONS                */
/**********************************/
.fab-container {
    justify-content: center;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: end;
    justify-content: center;
}

    .fab-container:hover .fab-buttons {
        height: fit-content;
    }

        .fab-container:hover .fab-buttons .fab-button {
            animation: fab-button-animation 150ms ease-in-out;
            animation-fill-mode: forwards;
            display: flex;
            justify-content: space-around;
            align-items: center;
            cursor: pointer;
            gap: 10px;
        }

.fab-buttons {
    height: 0;
    overflow: hidden;
    display: flex;
    gap: 10px;
    padding-bottom: 10px;
    flex-direction: column;
    align-items: end;
    color: black;
}

    .fab-buttons .text {
        font-size: 25px;
        background-color: rgba(255, 255, 255, 0.7);
        padding: 2px 5px;
        border-radius: 3px;
    }

    .fab-buttons .icon-container {
        font-size: 20px;
        border-radius: 50%;
        border: 1px solid black;
        padding: 10px;
        width: 50px;
        height: 50px;
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: var(--bl-purple);
        color: white;
    }

        .fab-buttons .icon-container i {
        }

.fab-button {
    font-size: 50px;
}

@keyframes fab-button-animation {
    100% {
        transform: translateY(0);
    }
}

.swipe-item {
    transition: transform 0.3s ease, opacity 0.3s ease;
    will-change: transform, opacity;
}

textarea {
    field-sizing: content;
}




/**********************************/
/*        CHARTS                  */
/**********************************/
.bl-chart {
    width: 360px;
    overflow: hidden;
    margin: auto;
}

    .bl-chart.half-width {
        width: 360px;
        padding-left: 10px;
        padding-right: 10px;
        display: inline-block;
    }

@media (min-width: 576px) { /* sm */
    .bl-chart {
        width: 510px;
    }

        .bl-chart.half-width {
            width: 510px;
        }

        .bl-chart.full-width {
            width: 510px;
        }
}

@media (min-width: 768px) { /* md */
    .bl-chart {
        width: 550px;
    }

        .bl-chart.half-width {
            width: 510px;
        }

        .bl-chart.full-width {
            width: 690px;
        }
}

@media (min-width: 992px) { /* lg */
    .bl-chart {
        width: 650px;
    }

        .bl-chart.half-width {
            width: 445px;
        }

        .bl-chart.full-width {
            width: 930px;
        }
}

@media (min-width: 1200px) { /* xl */
    .bl-chart {
        width: 800px;
    }

        .bl-chart.half-width {
            width: 555px;
        }

        .bl-chart.full-width {
            width: 1110px;
        }
}

@media (min-width: 1400px) { /* xxl */
    .bl-chart {
        width: 950px;
    }

        .bl-chart.half-width {
            width: 625px;
        }

        .bl-chart.full-width {
            width: 1290px;
        }
}


/**********************************/
/*        BREAKPOINTS             */
/**********************************/
/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
}

/* Extra extra large devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
}
