html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    padding: 0px;
    margin: 0px;
    background-color: #121212;
    color: #FFFFFF;
    width: 100%;
    height: 100%;
}

h1:focus {
    outline: none;
}

a {
    /* Removes the blue highlight on iOS/Android */
    -webkit-tap-highlight-color: transparent;
    /* Removes the default focus outline on some browsers */
    outline: none !important;
}

.app-container {
    padding: env(safe-area-inset-top) 20px env(safe-area-inset-bottom) 20px;
    background-color: #121212;
    min-height: 100vh;
    user-select: none;
    -webkit-user-select: none;
}


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

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODM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NGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

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

/* Premium Glassmorphism Spinner */
.loading-progress {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100px;
    height: 100px;
    inset: 40vh 0 auto 0;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

    .loading-progress circle {
        fill: none;
        stroke: rgba(255, 179, 71, 0.2); /* Faint amber track */
        stroke-width: 4px;
    }

        .loading-progress circle:last-child {
            stroke: #FFB347; /* Bright amber glow */
            stroke-linecap: round;
            filter: drop-shadow(0 0 8px rgba(255, 179, 71, 0.8));
            animation: spin 1.5s ease-in-out infinite;
        }

@keyframes spin {
    0% {
        stroke-dasharray: 1, 200;
        stroke-dashoffset: 0;
    }

    50% {
        stroke-dasharray: 89, 200;
        stroke-dashoffset: -35;
    }

    100% {
        stroke-dasharray: 89, 200;
        stroke-dashoffset: -124;
    }
}

.loading-progress-text {
    position: absolute;
    bottom: -40px;
    width: 100%;
    text-align: center;
    color: #FFB347;
    font-family: -apple-system, sans-serif;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}


/* Container & Background */
.app-container {
    background-color: #121212;
    color: #FFFFFF;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    height: 100vh;
    padding: 20px;
    /*max-width: 400px;*/
    margin: 0 auto;
}

/* Header */
.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

    .status-bar h1 {
        font-size: 1.2rem;
        font-weight: 600;
    }

/* Sliders */
.control-group {
    margin-bottom: 30px;
}

    .control-group label {
        display: block;
        font-size: 1.1rem;
        margin-bottom: 12px;
/*        color: #e0e0e0;*/
/*        font-size: 0.75rem;*/
        font-weight: 500;
        color: #666; /* Subtle gray for off state */
        text-transform: uppercase;
        letter-spacing: 0.5px;
        -webkit-font-smoothing: antialiased;
    }

    .control-group.active label {
        color: rgba(255, 179, 71, 0.9); /* Dimmer amber for the label */
    }


.ios-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 12px;
    background: #333;
    border-radius: 10px;
    outline: none;
}
                /* The Slider Thumb (The "Glow" indicator) */
    .ios-slider::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 24px;
        height: 24px;
        background: #666;
        border-radius: 50%;
        cursor: pointer;
        box-shadow: 0 0 0px rgba(255, 179, 71, 0.8);
        color: #666; /* Subtle gray for off state */
        transition: opacity 0.3s ease, filter 0.3s ease;
    }

    .ios-slider.active::-webkit-slider-thumb {
        box-shadow: 0 0 15px rgba(255, 179, 71, 0.8);
        background: #FFB347;
    }

            /* Responsive Grid */
.light-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 40px;
}

.grid-item {
    aspect-ratio: 1 / 1;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    display: flex;
    flex-direction: column; /* Stack Icon and Label */
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 10px;
}

.item-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px; /* Space between icon and text */
    z-index: 2; /* Ensure text stays above the glow effect */
}

.grid-item i {
    font-size: 1.8rem; /* Icon size */
    color: #888;
    transition: color 0.3s ease;
}
            /* Active State (Amber Glow) */
.grid-item.active {
    border-color: #FFB347;
    color: #FFB347;
    box-shadow: inset 0 0 15px rgba(255, 179, 71, 0.2);
}

.light-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #666; /* Subtle gray for off state */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    -webkit-font-smoothing: antialiased;
}
            /* Active State Colors */
.grid-item.active i {
    color: #FFB347;
}

.grid-item.active .light-label {
    color: rgba(255, 179, 71, 0.9); /* Dimmer amber for the label */
}

.glow-effect {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 24px;
    box-shadow: 0 0 20px rgba(255, 179, 71, 0.3);
    pointer-events: none;
}


/* Landscape / Horizontal Style */
@media (orientation: landscape) and (max-height: 500px) {
    .app-container {
        padding: 10px 30px;
    }

    .status-bar {
        margin-bottom: 15px;
    }

    .content {
        display: flex;
        gap: 40px;
        align-items: flex-start;
    }
    /* Sliders take left half */
    .sliders {
        flex: 1;
    }
    /* Grid takes right half */
    .light-grid {
        flex: 1.5;
        margin-top: 0;
        grid-template-columns: repeat(3, 1fr); /* Keep it 3 wide but smaller */
        gap: 10px;
    }





}