html, body {
    font-family: 'Inter', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    margin: 0;
    padding: 0;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #4CAF50;
}

.invalid {
    outline: 1px solid #EF5350;
}

.validation-message {
    color: #EF5350;
    font-size: 0.75rem;
    margin-top: 4px;
}

#blazor-error-ui {
    color-scheme: dark only;
    background: #1A1A2E;
    color: #E0E0E0;
    bottom: 0;
    box-shadow: 0 -1px 8px rgba(0, 0, 0, 0.4);
    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;
    }

.blazor-error-boundary {
    background: #C62828;
    padding: 1rem 1rem 1rem 1.5rem;
    color: white;
    border-radius: 4px;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loading-screen {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #0F0F1A;
    z-index: 9999;
}

.loading-spinner {
    position: relative;
    width: 140px;
    height: 140px;
}

.loading-ring {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    animation: loading-rotate 1.8s linear infinite;
}

.loading-ring-track {
    fill: none;
    stroke: rgba(255, 255, 255, 0.06);
    stroke-width: 4;
}

.loading-ring-fill {
    fill: none;
    stroke: #00BCD4;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 90, 250;
    stroke-dashoffset: 0;
    animation: loading-dash 1.8s ease-in-out infinite;
}

.loading-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    object-fit: contain;
    animation: loading-pulse 2s ease-in-out infinite;
}

.loading-progress-text {
    margin-top: 24px;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: #90A4AE;
}

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

@keyframes loading-rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes loading-dash {
    0% {
        stroke-dasharray: 10, 250;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 140, 250;
        stroke-dashoffset: -40;
    }
    100% {
        stroke-dasharray: 10, 250;
        stroke-dashoffset: -180;
    }
}

@keyframes loading-pulse {
    0%, 100% {
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.06);
    }
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 4px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 255, 255, 0.2);
    }

.animate-pulse {
    animation: pipeline-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pipeline-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}