:root {
    --bg-primary: #0d0a14;
    --bg-secondary: #110d1a;
    --border-color: #2d1f45;
    --text-primary: #e2d4f0;
    --text-muted: #7c5fa0;
    --purple: #c084fc;
    --accent: #9b1c4a;
    --accent-light: #3b0e1f;
}

    :root[data-theme="teal"] {
        --accent: #0d9488;
        --accent-light: #042f2e;
    }

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

body {
    background: var(--bg-primary);
    color: var(--accent);
    font-family: var(--font-sans, system-ui);
}

html, body {
}

h1:focus {
    outline: none;
}

.blazor-error-boundary {
    background: #b32121;
    padding: 1rem;
    color: white;
}

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

#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;
    }

.main-content {
    margin-top: 56px;
    margin-left: 200px;
    padding: 24px;
}

.btn-primary {
    background: var(--accent);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
}

.btn-secondary {
    background: none;
    color: var(--text-muted);
    border: 0.5px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

    .page-header h1 {
        font-size: 22px;
        font-weight: 500;
        color: var(--text-primary);
    }

.loading, .empty {
    color: var(--text-muted);
    font-size: 14px;
}

.error {
    font-size: 12px;
    color: #e05a5a;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

    .form-group label, .form-group-inline label {
        font-size: 13px;
        color: var(--text-muted);
    }

.form-group-inline {
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
}

.modal {
    background: var(--bg-secondary);
    border: 0.5px solid var(--border-color);
    border-radius: 12px;
    padding: 32px;
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

    .modal h3 {
        font-size: 16px;
        font-weight: 500;
        color: var(--text-primary);
    }

    .modal input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
    .modal select {
        background: var(--bg-primary);
        border: 0.5px solid var(--border-color);
        border-radius: 8px;
        padding: 10px 14px;
        font-size: 14px;
        color: var(--text-primary);
        width: 100%;
        outline: none;
    }

        .modal input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):focus,
        .modal select:focus {
            border-color: var(--accent);
        }

.modal-footer {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    align-items: center;
}

.score-slider {
    width: 100%;
    accent-color: var(--accent);
    cursor: pointer;
}

.score-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    gap: 32px;
}

    .login-container h1 {
        font-size: 56px;
        font-weight: 500;
        color: var(--accent);
        letter-spacing: -2px;
        animation: glow 3s ease-in-out infinite;
    }

@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 20px var(--accent-light), 0 0 40px var(--accent-light);
    }

    50% {
        text-shadow: 0 0 30px var(--accent), 0 0 60px var(--accent-light);
    }
}

.login-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 380px;
    background: var(--bg-secondary);
    border: 0.5px solid var(--border-color);
    border-radius: 12px;
    padding: 32px;
}

    .login-card input {
        background: var(--bg-primary);
        border: 0.5px solid var(--border-color);
        border-radius: 8px;
        padding: 12px 16px;
        font-size: 14px;
        color: var(--text-primary);
        outline: none;
        width: 100%;
    }

        .login-card input:focus {
            border-color: var(--accent);
        }

    .login-card button {
        background: var(--accent);
        color: white;
        border: none;
        border-radius: 8px;
        padding: 12px;
        font-size: 15px;
        font-weight: 500;
        cursor: pointer;
        width: 100%;
        margin-top: 4px;
    }

.link {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
}

    .link a {
        color: var(--accent);
        text-decoration: none;
    }

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

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 999px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: var(--accent);
    }

/* Custom Checkbox */
input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    min-width: 16px;
    border: 1.5px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-primary);
    cursor: pointer;
    position: relative;
    transition: all 0.15s;
}

    input[type="checkbox"]:hover {
        border-color: var(--accent);
    }

    input[type="checkbox"]:checked {
        background: var(--accent);
        border-color: var(--accent);
    }

        input[type="checkbox"]:checked::after {
            content: '';
            position: absolute;
            left: 4px;
            top: 1px;
            width: 5px;
            height: 9px;
            border: 2px solid white;
            border-top: none;
            border-left: none;
            transform: rotate(45deg);
        }

/* Custom Radio */
input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    min-width: 16px;
    border: 1.5px solid var(--border-color);
    border-radius: 50%;
    background: var(--bg-primary);
    cursor: pointer;
    position: relative;
    transition: all 0.15s;
}

    input[type="radio"]:hover {
        border-color: var(--accent);
    }

    input[type="radio"]:checked {
        border-color: var(--accent);
    }

        input[type="radio"]:checked::after {
            content: '';
            position: absolute;
            left: 3px;
            top: 3px;
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: var(--accent);
        }

.btn-filter-toggle {
    background: none;
    border: 0.5px solid var(--border-color);
    color: var(--text-muted);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s;
    position: relative;
}

    .btn-filter-toggle:hover {
        border-color: var(--accent);
        color: var(--accent);
    }

.filter-badge {
    background: var(--accent);
    color: white;
    font-size: 10px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.season-tab {
    background: none;
    border: 0.5px solid var(--border-color);
    color: var(--text-muted);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

    .season-tab:hover {
        border-color: var(--accent);
        color: var(--accent);
    }

    .season-tab.active {
        background: var(--accent);
        border-color: var(--accent);
        color: white;
    }