html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#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;
    }

.blazor-error-boundary {
    background: url("data:image/svg+xml;base64,...") no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred.";
    }

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .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;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: #c02d76;
}

/* NEW NAVIGATION STYLES */

.page {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.top-row {
    height: 56px;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.glass-header {
    background: rgba(30, 58, 138, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
}

.layout-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.glass-sidebar {
    width: 250px;
    background: rgba(15, 23, 42, 0.3);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: white;
    padding: 1rem;
    flex-shrink: 0;
    flex-direction: column;
    transition: all 0.3s ease;
}

.nav-link {
    color: #dbeafe;
    margin-bottom: 0.5rem;
    padding: 10px;
    border-radius: 6px;
    transition: background 0.3s ease, color 0.2s;
    text-decoration: none;
}

    .nav-link.active,
    .nav-link:hover {
        background-color: #2563eb;
        color: white;
        font-weight: 600;
    }

.main-content {
    flex: 1;
    padding: 2rem;
    background-color: #f8f9fa;
    overflow-y: auto;
}

/* Mobile-only sidebar toggle */
@media (max-width: 768px) {
    .glass-sidebar {
        position: absolute;
        top: 56px;
        left: 0;
        height: calc(100% - 56px);
        z-index: 1040;
        display: none;
    }

        .glass-sidebar.d-flex {
            display: flex !important;
        }

    .navbar-toggler {
        display: block;
        background-color: rgba(255, 255, 255, 0.15);
    }
}

/* Desktop-only: keep sidebar visible, hide hamburger */
@media (min-width: 769px) {
    .navbar-toggler {
        display: none;
    }
}
