html, body {
    background-color: #121212;
    color: #e0e0e0;
    margin: 0;
    font-family: Roboto, sans-serif;
}

a, .btn-link {
    color: #90caf9;
}

.content {
    background-color: #121212;
}

.card, .mud-card {
    background-color: #1e1e1e;
    color: #ffffff;
}

.start-btn:hover {
    box-shadow: 0 0 12px rgba(25, 118, 210, 0.8);
    transform: scale(1.05);
}

.start-quiz-btn {
    display: inline-block;
    background-color: #1976d2;
    color: white;
    padding: 16px 40px;
    font-size: 1.1rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.start-quiz-btn:hover {
    background-color: #1565c0;
    box-shadow: 0 0 12px rgba(25, 118, 210, 0.7);
    transform: scale(1.05);
}

.glow-button {
    box-shadow: 0 0 5px rgba(56, 189, 248, 0.6);
    transition: box-shadow 0.3s ease-in-out;
}

.glow-button:hover {
    box-shadow: 0 0 25px rgba(56, 189, 248, 1);
}

/* Loading spinner */
.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

.loading-progress circle {
    fill: none;
    stroke: #1976d2;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: #38bdf8;
    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;
    color: #90caf9;
}

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

/* Blazor error UI */
#blazor-error-ui {
    background: #ffebee;
    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;
    color: #c62828;
}

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

.glow-preselect {
    box-shadow:
        0 0 10px rgba(0, 229, 255, 0.9),
        0 0 30px rgba(0, 229, 255, 0.6),
        0 0 50px rgba(0, 229, 255, 0.35);
    transform: scale(1.04);
    background-color: #00e5ff !important; /* neon cyan/blue */
    color: black !important;
    border-color: rgba(0, 229, 255, 0.25) !important;
}

.glow-selected {
    box-shadow:
            0 0 10px rgba(0,255,110,0.95),
            0 0 30px rgba(0,255,110,0.6),
            inset 0 0 12px rgba(0,255,110,0.25);

    transform: scale(1.07);
    background-color: #00ff66 !important; /* neon green */
    color: black !important;
    border-color: rgba(0,255,110,0.25) !important;
}

.glow-wrong {
    box-shadow:
            0 0 10px rgba(255,50,50,0.95),
            0 0 30px rgba(255,50,50,0.6),
            inset 0 0 12px rgba(255,50,50,0.25);

    transform: scale(1.02);
    background-color: #ff2d2d !important; /* neon red */
    color: white !important;
    border-color: rgba(255,50,50,0.25) !important;
}

/* Code block styling to ensure visibility */
.code-block {
    color: #e5e7eb;
    background: #020617;
    padding: 12px;
    border-radius: 10px;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-x: auto;
    margin: 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
}
