/* ==================== VARIABLES GLOBALES ==================== */
:root {
    --kerno-orange: #FF6B00;
    --kerno-orange-dark: #E65100;
    --kerno-text: #1F2937;
    --kerno-text-muted: #6B7280;
    --kerno-white: #FFFFFF;
    --kerno-border: #E5E7EB;
    --kerno-bg: #FFF8F0;
}

/* ==================== RESET BÁSICO ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    overflow-x: hidden;
}

#app {
    width: 100%;
    min-height: 100vh;
}

/* ==================== ERROR UI ==================== */
#blazor-error-ui {
    background: lightyellow;
    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;
}

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

/* ==================== LOADING SPLASH ==================== */
.loading-splash {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: #FFF8F0;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #E5E7EB;
    border-top-color: #FF6B00;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-splash p {
    color: #6B7280;
    font-size: 0.9rem;
}

/* ==================== UTILIDADES ==================== */
.px-4 {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
}

.text-muted {
    color: var(--kerno-text-muted) !important;
}

.text-danger {
    color: #DC2626;
    font-weight: 600;
}
