@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

/* Override all default styling with dark theme */
html, body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    background-color: #0f172a !important;
    color: #f1f5f9 !important;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #6366f1 !important;
}

.btn-primary {
    color: #fff !important;
    background-color: #6366f1 !important;
    border-color: #6366f1 !important;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem #6366f1, 0 0 0 0.25rem rgba(99, 102, 241, 0.25) !important;
}

.content {
    padding-top: 1.1rem;
}

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

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

.validation-message {
    color: #ef4444 !important;
}

/* Dark theme error UI */
#blazor-error-ui {
    background: #334155 !important;
    color: #f1f5f9 !important;
    border-top: 1px solid #ef4444 !important;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.3);
    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;
    color: #f1f5f9 !important;
}

/* Dark theme error boundary - NO MORE RAINBOW! */
.blazor-error-boundary {
    background: #334155 !important;
    border: 1px solid #ef4444 !important;
    border-radius: 8px !important;
    padding: 1rem 1rem 1rem 1rem !important;
    color: #f1f5f9 !important;
    margin: 1rem 0;
}

.blazor-error-boundary::after {
    content: "An error has occurred." !important;
    color: #ef4444 !important;
    font-weight: 600;
}
