:root {
    --accent-primary: #d4f01e;
    --accent-light: #dfff4f;
    --accent-dark: #b8d41a;
    --surface-primary: #1a233b;
    --surface-secondary: #1f2b42;
    --surface-tertiary: #243049;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-subtle: rgba(148, 163, 184, 0.08);
    --border-active: rgba(212, 240, 30, 0.25);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow: hidden;
}

h1:focus, h2:focus, h3:focus {
    outline: none;
}

::selection {
    background: rgba(212, 240, 30, 0.25);
    color: #e2e8f0;
}

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

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

::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.12);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.22);
}

.glass {
    background: rgba(26, 35, 59, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(148, 163, 184, 0.06);
}

.glass-hover:hover {
    background: rgba(26, 35, 59, 0.75);
    border-color: rgba(212, 240, 30, 0.12);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.blazor-error-boundary {
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.3);
    padding: 1rem;
    color: #fca5a5;
    border-radius: 8px;
    margin: 1rem;
}

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

#blazor-error-ui {
    background: rgba(220, 38, 38, 0.95);
    color: white;
    bottom: 0;
    box-shadow: 0 -2px 10px rgba(220, 38, 38, 0.3);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.75rem 1.5rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.875rem;
}

#blazor-error-ui .reload {
    color: white;
    text-decoration: underline;
    margin-left: 1rem;
}

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

.valid.modified:not([type=checkbox]) {
    outline: 1px solid var(--accent-primary);
}

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

.validation-message {
    color: #ef4444;
}

.rich-text-editor:empty::before {
    content: attr(data-placeholder);
    color: #475569;
    pointer-events: none;
}

.rich-text-editor ul {
    list-style-type: disc;
    padding-left: 1.25rem;
}

.rich-text-editor ol {
    list-style-type: decimal;
    padding-left: 1.25rem;
}

.rich-text-editor b,
.rich-text-editor strong {
    font-weight: 600;
}

.rich-text-editor i,
.rich-text-editor em {
    font-style: italic;
}
