﻿
div {
    user-select: none;
}

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

.layout-grid {
    display: grid;
    width: 100vw;
    max-width: 100vw;
    min-width: 0;
    overflow-x: hidden;
    grid-template:
        "header header" var(--top-bar-height-mobile)
        "aside main"
        /minmax(0, auto) minmax(0, 1fr);
}

.layout__top-bar {
    grid-area: header;
    background-color: var(--top-bar-color);
    width: 100vw;
    max-width: 100vw;
    min-width: 0;
    height: 100%;
    display: flex;
    box-sizing: border-box;
    overflow: hidden;
}

.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;
    min-width: 0;
    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;
}

.styrke-page-shell {
    background: linear-gradient(180deg, #f7f9fc 0%, #eef3f8 100%);
    border: 1px solid rgba(15, 23, 42, 0.06);
    padding: 0.25rem;
}

.styrke-surface-card {
    background-color: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 0.75rem 1.75rem rgba(15, 23, 42, 0.08) !important;
}

    .styrke-surface-card .card-body {
        padding: 1rem !important;
    }

.styrke-subtle-panel {
    background-color: #f3f6fb;
    border: 1px solid rgba(15, 23, 42, 0.10);
    border-radius: 1rem;
}

.styrke-soft-badge {
    background-color: #eaf0f8;
    color: #27405f;
    border: 1px solid rgba(39, 64, 95, 0.14);
}

.styrke-list-item {
    background-color: transparent;
    border-color: rgba(15, 23, 42, 0.08);
}

    .styrke-list-item:hover,
    .styrke-list-item:focus {
        background-color: rgba(234, 240, 248, 0.7);
    }

.styrke-modal-actions .btn.standard,
.styrke-modal-actions .btn.btn-success,
.styrke-modal-actions .btn.btn-primary {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

.styrke-program-select {
    min-width: 0;
    width: min(100%, 220px);
}

.styrke-inline-filter {
    border: 1px solid rgba(39, 64, 95, 0.16);
    background-color: rgba(255, 255, 255, 0.72);
    color: #35506f;
}

    .styrke-inline-filter:hover,
    .styrke-inline-filter:focus {
        border-color: rgba(39, 64, 95, 0.24);
        background-color: rgba(255, 255, 255, 0.92);
        color: #27405f;
    }

.styrke-modal-option {
    border: 1px solid rgba(15, 23, 42, 0.10);
    border-radius: 0.9rem;
    background-color: rgba(243, 246, 251, 0.7);
    padding: 0.85rem 0.95rem;
}

    .styrke-modal-option:hover,
    .styrke-modal-option:focus {
        border-color: rgba(39, 64, 95, 0.18);
        background-color: rgba(255, 255, 255, 0.95);
    }

    .styrke-modal-option.active {
        border-color: rgba(25, 95, 229, 0.28);
        background-color: rgba(229, 238, 255, 0.8);
    }

.styrke-exercise-compact {
    background-color: #ffffff;
    border: 1px solid rgba(39, 64, 95, 0.18);
    border-radius: 0.75rem;
    padding: 0.6rem 0.75rem;
    box-shadow: 0 0.35rem 0.9rem rgba(15, 23, 42, 0.05);
}

.styrke-rutine-group {
    background-color: #e5edf8;
    border: 1px solid rgba(39, 64, 95, 0.16);
    border-radius: 1rem;
}

    .styrke-rutine-group .text-body-secondary {
        color: #50657f !important;
    }

    .styrke-exercise-compact a {
        color: #163a63;
    }

    .styrke-exercise-compact a:hover,
    .styrke-exercise-compact a:focus {
        color: #0f2f53;
    }

    .styrke-exercise-compact .text-body-secondary {
        color: #556a84 !important;
    }

    .styrke-exercise-compact:hover {
        border-color: rgba(22, 58, 99, 0.24);
        box-shadow: 0 0.45rem 1rem rgba(15, 23, 42, 0.08);
    }

.styrke-exercise-list-item {
    position: relative;
    padding: 0.55rem 0.7rem;
}

    .styrke-exercise-list-item h3 {
        line-height: 1.2;
    }

.styrke-exercise-description {
    margin-bottom: 0.15rem;
}

.styrke-empty-state {
    display: grid;
    justify-items: center;
    gap: .6rem;
    border: 1px dashed var(--bs-border-color);
    border-radius: .75rem;
    padding: 2rem 1rem;
    text-align: center;
}

    .styrke-empty-state > i {
        color: var(--bs-secondary-color);
        font-size: 2rem;
    }

    .styrke-empty-state p {
        max-width: 32rem;
        margin: 0;
        color: var(--bs-secondary-color);
    }

@media (min-width: 768px) {
    .styrke-page-shell {
        padding: 0.75rem;
    }

    .styrke-surface-card .card-body {
        padding: 1.25rem !important;
    }

    .styrke-page-actions {
        display: flex;
        flex-wrap: wrap;
        width: auto;
    }

        .styrke-page-actions > * {
            width: auto;
        }

        .styrke-page-actions .btn {
            width: auto;
        }
}

@media (min-width: 992px) {
    .styrke-page-shell {
        padding: 1rem;
    }

    .styrke-surface-card .card-body {
        padding: 1.5rem !important;
    }
}

@media (min-width: 1200px) {
    .styrke-page-actions,
    .styrke-page-actions-compact {
        align-self: flex-start;
    }
}


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

.meal-planner-container {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    padding: 12px;
}

.week-card {
}

.day-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 12px 16px 8px 16px;
    gap: 16px;
}

.day-container {
    margin-top: 10px
}

.day-row:last-child {
    border-bottom: none;
}

.day-row__label {
    min-width: 36px;
    padding-top: 2px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #6c757d;
    letter-spacing: 0.3px;
}

.day-row__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.meal-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    background: #f8f9fa;
    border-radius: 8px;
    gap: 8px;
}

.meal-item__info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.meal-item__name {
    font-weight: 500;
    font-size: 0.95rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.meal-item__tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #6c757d;
    background: #e9ecef;
    border-radius: 4px;
    padding: 1px 5px;
    margin-left: 6px;
    vertical-align: middle;
}

.meal-item__note {
    font-size: 0.8rem;
    color: #6c757d;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.meal-item__actions {
    display: flex;
    gap: 2px;
    flex-shrink: 0;
}

.meal-item__empty {
    font-size: 0.85rem;
    color: #adb5bd;
    padding: 4px 0;
}

.day-row__add {
    align-self: center;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.5px solid #dee2e6;
    background: transparent;
    color: #adb5bd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    padding: 0;
    cursor: pointer;
    transition: border-color 150ms, color 150ms;
}

.day-row__add:hover {
    border-color: #6c757d;
    color: #6c757d;
}

/**********************************/
/*        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) {
}
