/* CSS Mínimo — Splash screen y layout base */
/* Paleta dark: Background=#111111, Surface=#1a1a1a, Primary=#3b82f6, Text=#e5e5e5 */

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

#app {
    height: 100vh;
    width: 100vw;
}

/* ==========================================================================
   SPLASH SCREEN
   ========================================================================== */

.splash-screen {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111111;
    z-index: 9999;
}

.splash-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem 4rem;
    background: #1a1a1a;
    border: 1px solid #404040;
    border-radius: 16px;
    min-width: 300px;
}

.splash-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 1.5rem;
    animation: spin-gear 8s linear infinite;
}

.splash-icon svg { width: 100%; height: 100%; }

@keyframes spin-gear {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.splash-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: #e5e5e5;
}

.splash-subtitle {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
    color: #a3a3a3;
}

.splash-progress-track {
    width: 180px;
    height: 3px;
    background: #404040;
    border-radius: 2px;
    overflow: hidden;
}

.splash-progress-fill {
    height: 100%;
    width: var(--blazor-load-percentage, 0%);
    background: #3b82f6;
    border-radius: 2px;
    transition: width 0.15s ease-out;
}

.splash-status {
    margin-top: 1rem;
    font-size: 1.1rem;
    color: #e5e5e5;
}

.splash-status:after {
    content: var(--blazor-load-percentage-text, "Conectando...");
}

/* ==========================================================================
   MUDSELECT DROPDOWN — oscura con borde visible
   ========================================================================== */

.mud-popover .mud-select-dropdown {
    background: #262626 !important;
    border: 1px solid #404040;
}

.mud-popover .mud-select-dropdown .mud-list {
    background: #262626;
}

.mud-popover .mud-select-dropdown .mud-list-item:hover {
    background: #333333;
}

.mud-popover .mud-select-dropdown .mud-list-item.mud-selected-item {
    background: #3b82f6;
    color: #ffffff;
}

/* ==========================================================================
   BLZOR ERROR UI
   ========================================================================== */

#blazor-error-ui {
    padding: 1.2rem 1.6rem;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    display: none;
    border-top: 1px solid #404040;
    background: #1a1a1a;
    color: #e5e5e5;
}

#blazor-error-ui .reload {
    font-weight: 600;
    color: #3b82f6;
}

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