.page {
    position: relative;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.sidebar {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.main-layout {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    --main-header-height: 0rem;
}

.rz-layout.rz-software.main-layout {
    background: linear-gradient(145deg, rgba(242, 249, 246, 0.95), rgba(198, 236, 225, 0.75));
}

.layout-shell {
    display: flex;
    flex-direction: row;
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
}

.jans-burger {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 12;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}

.jans-burger:hover {
    background: #f1f5f9;
}

.main-body {
    flex: 1 1 auto;
    height: 100vh;
    min-width: 0;
    width: 100%;
}

.content-wrap {
    min-height: 70vh;
}

.eyebrow {
    text-align: center;
}

.content-wrap .eyebrow {
    width: 100%;
    margin-inline: auto;
    text-align: center;
}

.top-row {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

.rz-header {
    display: flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    min-height: 3.5rem;
    height: auto;
    box-sizing: border-box;
    position: sticky;
    top: 0;
    z-index: 10;
} .rz-header .rz-sidebar-toggle {
    margin-top: 0;
    margin-right: 0;
    align-self: center;
} .rz-header .main-header-content {
    width: 100%;
    flex-wrap: nowrap;
    align-items: center;
} .rz-header .main-header-right {
    display: flex;
    align-items: center;
    min-width: 0;
    flex: 1 1 auto;
    justify-content: flex-end;
} .rz-header .main-header-left {
    flex: 0 0 auto;
} .rz-header .main-header-title-wrapper {
    margin-left: 20px;
    margin-top: 10px;
}

.main-layout .rz-sidebar {
    top: var(--main-header-height);
    height: calc(100vh - var(--main-header-height));
}

@media (max-width: 640.98px) { .rz-header .main-header-content {
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
    } .rz-header .main-header-left {
        justify-content: flex-start;
    } .rz-header .main-header-right {
        flex: 1 1 auto;
        justify-content: flex-end;
    }
    .rz-header {
        padding: 0.15rem 0.5rem;
        min-height: 2.5rem;
    }
    .rz-header .main-header-title-wrapper {
        margin-top: 0;
        margin-left: 0.5rem;
    }
}

    .top-row a, .top-row .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row a:hover, .top-row .btn-link:hover {
        text-decoration: underline;
    }

    .top-row a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row {
        justify-content: space-between;
    }

    .top-row a, .top-row .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page {
        flex-direction: row;
    }

    .sidebar {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row, article {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.overlay-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
}

.timer {
    font-size: 1.5rem;
    margin-top: 1rem;
    white-space: pre-line;
}

.ai-terminal {
    width: min(92vw, 720px);
    max-height: 320px;
    display: flex;
    flex-direction: column;
    border: 1px solid #1f2937;
    border-radius: 10px;
    background: #0b1220;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.ai-progress-card {
    width: min(92vw, 720px);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.85rem 1rem;
    border: 1px solid #1f2937;
    border-radius: 12px;
    background: #0b1220;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.ai-progress-copy {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.ai-progress-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #dbeafe;
}

.ai-progress-count {
    font-size: 0.82rem;
    color: #bfdbfe;
}

.ai-progress-bar {
    width: 100%;
}

.ai-progress-card .rz-progressbar {
    background: #111827;
    border: 1px solid #1f2937;
}

.ai-progress-card .rz-progressbar-value {
    background: linear-gradient(90deg, #2563eb 0%, #38bdf8 100%);
}

.ai-terminal-header {
    padding: 0.55rem 0.75rem;
    font-size: 0.8rem;
    color: #dbeafe;
    background: #111827;
    border-bottom: 1px solid #1f2937;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ai-terminal-status {
    padding: 0.55rem 0.75rem;
    font-size: 0.78rem;
    color: #bfdbfe;
    background: #0f172a;
    border-bottom: 1px solid #1f2937;
}

.ai-terminal-body {
    margin: 0;
    padding: 0.75rem;
    white-space: pre-wrap;
    overflow: auto;
    font-size: 0.82rem;
    line-height: 1.35;
    color: #86efac;
    font-family: Consolas, "Courier New", monospace;
}
