:root {
    background-color: #F6F6F7;

    /* Fonts Settings */
    --font-family: "Mulish", sans-serif;
    --second-family: "Lato", sans-serif;
    --third-family: "Montserrat Alternates", sans-serif;
    --font3: "Roboto", sans-serif;
    --font4: "Montserrat", sans-serif;
    --font5: "Raleway", sans-serif;
    --font6: "Geologica", sans-serif;
    --font7: "Onest", sans-serif;
    /* Colors Settings */
    --blue-color: #4B9FFF;
    --green-color: #1CCD9D;
    --yellow-color: #FCAF2A;
    --red-color: #FF6951;
    --text-gray-color: #8794A8;
    --text-dark-color: #161E27;
    --text-gray-dark: #474E64;
    --text-gray-dark-color: #54596b;
    
    --blue-700: #3C85ED;
    --blue-800: #2C6CDC;

    --gray-200: #F6F6F7;
    --gray-300: #D3D7DE;
    --gray-500: #8794A8;
    --gray-600: #6C7589;
    --gray-700: #54596B;
    --gray-800: #161E27;
}

/* ---------- Base (Mobile First) ---------- */

html, body, #app {
    height: 100%;
    min-height: 100%;
    margin: 0;
}

html {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: #CFDBED;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    background-color: var(--gray-200);
    color: var(--text-gray-dark-color);
}

main {
    box-sizing: border-box;
    width: 100%;
    min-height: 100vh;
}

.overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, .5);
    z-index: 1;
    transition: opacity .3s ease-in-out;
}

/* Layout (mobile): single column */
.layout {
    box-sizing: border-box;
    width: 100%;
    padding: 20px 12px;
    display: block;
    gap: 16px;
}

p {
    margin: 0px;
}

/* Header: compact, burger visible on mobile */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
}

.logo-container {

}

.logo {
    max-height: 40px;
    content: url('/images/logo.svg');
}

.header-body {
    display: none; /* hidden on mobile */
}

.header-body-nav {
    display: none; /* hidden on mobile */
}

.default-button {
    /* Button */
    cursor: pointer;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 10px 32px;
    gap: 10px;
    border-radius: 12px;
    /* Text */
    font-family: var(--font-family);
    font-style: normal;
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
}

.outline-button {
    background-color: transparent;
    color: var(--gray-700);
    border: 1px solid var(--gray-700);
}

.green-button {
    background-color: var(--green-color);
    color: white;
    border: none;
}

.blue-button {
    background-color: var(--blue-color);
    color: white;
    border: none;
}

/* Burger button */
.mobile-nav-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
}

.mobile-nav-button svg {
    width: 24px;
    height: 24px;
    fill: var(--text-gray-dark-color);
}

/* Mobile nav modal */
.mobile-nav {
    box-sizing: border-box;
    transition: opacity 0.2s ease-in-out;
}
    .mobile-nav.overlay {
        transition: background-color 240ms cubic-bezier(.2,.9,.2,1);
        background-color: rgba(0, 0, 0, 0);
        -webkit-tap-highlight-color: transparent;
    }

        .mobile-nav.overlay.d-flex {
            background-color: rgba(9, 10, 11, 0.45);
        }

/* panel inside modal */
.mobile-nav-panel {
    box-sizing: border-box;
    width: 100%;
    height: auto;
    background: white;
    padding: 12px 12px 24px 12px;
    box-shadow: -6px 0 24px rgba(0,0,0,0.12);
    transition: transform 0.22s ease-in-out;
}

.mobile-nav.d-flex {
    flex-direction: column;
    justify-content: flex-start;
    padding: 12px;
}

/* Sidebar for desktop is hidden on mobile */
.sidebar {
    display: none;
}

a.nav-item {
    box-sizing: border-box;
    display: flex;
    padding: 24px 12px;
    width: auto;
    height: 48px;
    flex-direction: row;
    gap: 12px;
    justify-content: start;
    align-items: center;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    line-height: 150%;
    color: #1D1F26;
    background-color: transparent;
    border-width: 0;
    margin: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    fill: white;
}

    a.nav-item:hover {
        background-color: transparent;
    }

    a.nav-item:hover {
        background-color: #f5f5f5;
    }

    a.nav-item.active {
        border-radius: 12px;
        background-color: var(--blue-color);
        color: white;
    }

        a.nav-item.active svg path {
            fill: white;
        }

/* Body card */
.body {
    border-radius: 20px;
    padding: 16px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(22, 30, 57, 0.06);
    overflow: visible;
    margin-top: 25px;
}

/* Breadcrumbs / small utilities */
.breadcrumbs-container {
    display: flex;
    flex-direction: row;
    gap: 8px;
}

/* InDevelopment component related (mobile defaults) */
.title {
    font-family: var(--third-family);
    color: var(--text-gray-dark-color);
    font-weight: 600;
    font-size: 20px;
    line-height: 1.15;
    text-align: center;
}

.subtitle {
    font-family: var(--font-family);
    color: var(--gray-500);
    font-weight: 600;
    font-size: 14px;
    text-align: center;
}

.poster {
    align-self: center;
    width: 100%;
    max-width: 320px;
    height: auto;
    object-fit: contain;
}

/* loaders kept as-is (desktop-like sizes ok) */
.wasm-loading-progress {
    position: absolute;
    display: block;
    width: 6rem;
    height: 6rem;
    inset: 18vh 0 auto 0;
    margin: 0 auto 0 auto;
}

    .wasm-loading-progress circle {
        fill: none;
        stroke: var(--blue-color);
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .wasm-loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.wasm-loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .wasm-loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

.loader {
    position: relative;
    width: 60px;
    height: 60px;
    margin: 50px auto;
}

.loader-circle {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: rotate 1.5s linear infinite;
}

    .loader-circle:nth-child(1) {
        background-color: #1CCD9D;
        top: 0;
        left: 0;
    }

    .loader-circle:nth-child(2) {
        background-color: #4B9FFF;
        top: 0;
        right: 0;
    }

    .loader-circle:nth-child(3) {
        background-color: #FCAF2A;
        bottom: 0;
        right: 0;
    }

    .loader-circle:nth-child(4) {
        background-color: #FF6951;
        bottom: 0;
        left: 0;
    }

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loader-square {
    position: relative;
    width: 40px;
    height: 40px;
    margin: 50px auto;
    animation: rotate 2s linear infinite;
}

.square-circle {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
}

    .square-circle:nth-child(1) {
        background-color: #1CCD9D;
        top: -5px;
        left: -5px;
    }

    .square-circle:nth-child(2) {
        background-color: #4B9FFF;
        top: -5px;
        right: -5px;
    }

    .square-circle:nth-child(3) {
        background-color: #FCAF2A;
        bottom: -5px;
        right: -5px;
    }

    .square-circle:nth-child(4) {
        background-color: #FF6951;
        bottom: -5px;
        left: -5px;
    }


.breadcrumbs-container {
    display: flex;
    flex-direction: row;
    gap: 8px;
}

.breadcrumb-item {
    box-sizing: border-box;
    padding: 4px 0px;
    min-height: 28px;
    display: flex;
    flex-direction: row;
    gap: 4px;

    font-family: var(--font-family);
    font-weight: 500;
    font-size: 14px;
    color: #A8B4CA;
    text-decoration: none;
}

.beta-indicator {
    height: 16px;
    padding: 2px 4px;
    align-content: center;
    align-self: flex-start;
    font-family: var(--font-family);
    line-height: 120%;
    color: #fff;
    background: var(--yellow-color);
    -ms-user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    user-select: none;
}

.footer {
    grid-area: footer;
    box-sizing: border-box;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 16px;
    margin: 28px 12px;
}

.footer-link-item {
    height: 24px;
    text-decoration: none;
    font-family: var(--font-family);
    font-style: normal;
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    color: var(--gray-600);
}

.copyright-container {
    margin-top: 40px;
    align-self: center;
}

.footer-copyright {
    font-family: var(--font-family);
    font-style: normal;
    font-weight: 600;
    font-size: 12px;
    line-height: 15px;
    color: var(--text-gray-color);
}

/* ---------- Tablet and up ---------- */
@media (min-width: 768px) {
    .layout {
        padding-left: 6%;
        padding-right: 6%;
    }

    .header {
        padding: 12px 0;
    }

    .body {
        margin-top: 0px;
    }

    .header-body {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        flex-grow: 1;
    }

    .header-body-nav {
        display: flex;
        align-items: center;
        gap: 24px;
    }

    .logo {
        max-height: 24px;
        content: url('/images/testoria.svg');
    }

    .mobile-nav-button {
        display: none;
    }

    a.nav-item.active {
        border-radius: 0;
        background-color: var(--blue-color);
        color: white;
    }

    .body {
        border-radius: 16px;
        padding: 24px;
        border-radius: 18px;
    }

    .poster {
        max-width: 420px;
    }

    .title {
        font-size: 26px;
    }

    .subtitle {
        font-size: 16px;
    }

    .footer {
        margin: 0;
        width: 100%;
        flex-direction: row;
        align-items: center;
        gap: 40px;
    }

    .footer-link-item {

    }

    .footer-copyright {
        justify-self: end;
    }

    .copyright-container {
        margin-top: 0;
        flex: 1;
    }
}

/* ---------- Desktop and wider ---------- */
@media (min-width: 1024px) {
    .layout {
        display: grid;
        grid-gap: 20px;
        grid-template-areas:
            "header header"
            "sidebar body"
            "footer footer";
        grid-template-columns: 1.5fr 8.5fr;
        grid-template-rows: 56px 1fr 88px;
        padding-left: 8%;
        padding-right: 8%;
        height: 100vh;
    }

    .header {
        grid-area: header;
        display: grid;
        grid-template-columns: 1.5fr 8.5fr;
        grid-gap: 20px;
        align-items: center;
    }

    .sidebar {
        display: block;
        grid-area: sidebar;
        width: auto;
        box-sizing: border-box;
        border-radius: 30px;
        padding: 32px 0;
        box-shadow: 0 3px 20px 0 rgba(31, 46, 70, 0.05);
        background: #fff;
        overflow: auto;
        min-height: 0;
        -webkit-overflow-scrolling: touch;
    }

    .header-body-nav > a {
        font-family: var(--font-family);
        font-weight: 600;
        font-size: 18px;
        line-height: 156%;
        color: #54596b;
    }

    .body {
        border-radius: 12px;
        grid-area: body;
        border-radius: 30px;
        padding: 32px 10px;
        box-shadow: 0 4px 15px 0 rgba(22, 30, 57, 0.1);
        background: #fff;
        max-width: 100%;
        overflow: hidden;
    }

    .poster {
        max-width: 547px;
        max-height: 355px;
    }

    .title {
        font-size: 32px;
    }

    .subtitle {
        font-size: 18px;
    }
}