﻿/* layout.razor.css */
.page {
    position: relative;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.sidebar {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row ::deep a, .top-row ::deep .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row ::deep a:hover, .top-row ::deep .btn-link:hover {
        text-decoration: underline;
    }

    .top-row ::deep a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

.hero-section {
    width: min(1096px, 100%);
    margin: 0 auto;
}

.hero-intro {
    width: 100%;
    box-sizing: border-box;
    margin: 0 0 24px 0;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-radius: 18px;
    background: rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.08);
    font-family: Inter, Segoe UI, system-ui, sans-serif;
    color: #f8fafc;
}

.hero-eyebrow {
    color: #f0c84b;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.hero-intro h3 {
    margin: 0 0 6px 0;
    font-size: clamp(32px, 3vw, 48px);
    line-height: 1.05;
    font-weight: 800;
}

.hero-intro p {
    max-width: 700px;
    margin: 0;
    color: #cbd5e1;
    font-size: clamp(16px, 1.35vw, 21px);
    line-height: 1.35;
}

.hero-button {
    flex: 0 0 auto;
    border: 1px solid rgba(240,200,75,.55);
    background: rgba(240,200,75,.12);
    color: #f0c84b;
    border-radius: 999px;
    /*padding: 10px 22px;*/
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.service-strip {
    margin: 22px 0 0 0;
}

a.download-btn {
    flex: 0 0 auto;
    /*border: 1px solid rgba(240,200,75,.55);
            background: rgba(240,200,75,.12);*/
    color: #f0c84b;
    text-decoration: none;
    /* border-radius: 999px; */
    /*padding: 10px 22px;*/
    font-size: 23px;
    font-weight: 400;
    cursor: pointer;
    outline: none;
    height: 25px;
}

    a.download-btn:hover {
        background-color: none;
    }

@media (max-width: 640.98px) {
    .top-row {
        justify-content: space-between;
    }

    .top-row ::deep a, .top-row ::deep .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 ::deep 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 {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    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;
    }

/* spinner */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.spinner {
    width: 64px;
    height: 64px;
    border: 7px solid #333;
    border-top: 7px solid #f0c84b;
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

.loading-text {
    margin-top: 16px;
    color: #f0c84b;
    font-size: 20px;
    font-weight: bold;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.image-title {
    color: #ffd84d;
    text-align: left;
    margin-top: 20px;
    padding: 0;
    line-height: 1.2;
}



/* Final homepage layout overrides */

html,
body {
    overflow-x: hidden;
    overflow-y: auto;
}

.dashboard-main {
    padding: 36px 48px 48px 48px;
}

.hero-section {
    width: min(1096px, 100%);
    margin: 0 auto;
}

.hero-intro {
    width: 100%;
    box-sizing: border-box;
    margin: 0 0 24px 0;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-radius: 18px;
    background: rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.08);
}

    .hero-intro h3 {
        margin: 0 0 6px 0;
        font-size: clamp(32px, 3vw, 48px);
        line-height: 1.05;
    }

    .hero-intro p {
        margin: 0;
        max-width: 720px;
        font-size: clamp(16px, 1.35vw, 21px);
        line-height: 1.35;
    }

.hero-button {
    flex: 0 0 auto;
}

.hero-photo-container {
    width: 100%;
    max-width: none;
    margin: 0;
}

.hero-photo-img {
    width: 100%;
    margin: 0;
    max-width: 100%;
}

.service-strip {
    width: 100%;
    box-sizing: border-box;
    margin: 22px 0 0 0;
}

@media (max-width: 640.98px) {
    .top-row {
        justify-content: space-between;
    }

        .top-row ::deep a, .top-row ::deep .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 ::deep 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 {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    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;
    }

/* spinner */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.spinner {
    width: 64px;
    height: 64px;
    border: 7px solid #333;
    border-top: 7px solid #f0c84b;
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

.loading-text {
    margin-top: 16px;
    color: #f0c84b;
    font-size: 20px;
    font-weight: bold;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.image-title {
    color: #ffd84d;
    text-align: left;
    margin-top: 20px;
    padding: 0;
    line-height: 1.2;
}
