/* Dark Theme Base Styles */
html, body {
    font-family: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #0E0E10;
    color: #EFEFF1;
    margin: 0;
    padding: 0;
}

/* Custom scrollbar for dark theme */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #1F1F23;
}

::-webkit-scrollbar-thumb {
    background: #464649;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #8BC34A;
}

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

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

.loading-progress circle:last-child {
    stroke: #8BC34A;
    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;
    color: #EFEFF1;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

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

/* Error UI */
#blazor-error-ui {
    background: #1F1F23;
    border-top: 2px solid #8BC34A;
    bottom: 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    color: #EFEFF1;
}

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

#blazor-error-ui .dismiss:hover {
    color: #EFEFF1;
}

#blazor-error-ui a {
    color: #8BC34A;
    text-decoration: none;
}

#blazor-error-ui a:hover {
    text-decoration: underline;
}

.blazor-error-boundary {
    background: linear-gradient(135deg, #8BC34A 0%, #689F38 100%);
    padding: 1rem;
    color: white;
    border-radius: 4px;
    margin: 1rem 0;
}

.blazor-error-boundary::after {
    content: "An error has occurred. Please refresh the page.";
}

/* Custom utility classes for streaming theme */
.text-white {
    color: #FFFFFF !important;
}

.soft-green {
    color: #8BC34A !important;
}

.stream-live {
    background-color: #ef5350;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Custom card hover effects */
.mud-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.mud-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(139, 195, 74, 0.2);
}