html, body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont;
    background-color: #f2f2f2;
    margin: 0;
}

/* ===== APP LOADER (initial - before Blazor renders) ===== */
.app-loader {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #f2f2f2;
    color: #333;
    font-family: 'Inter', system-ui, sans-serif;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
}

.app-loader.hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease-out;
}

/* ===== SPINNER/LOADER ===== */
.spinner {
    width: 56px;
    height: 56px;
    border: 4px solid rgba(0, 0, 0, 0.08);
    border-top-color: #57b846;
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

.loader-text {
    margin-top: 1rem;
    font-size: 0.95rem;
    opacity: 0.85;
    letter-spacing: 0.03em;
    color: #333;
}

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

/* ===== AUTHORIZING CONTAINER ===== */
.authorizing-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #f2f2f2;
    color: #333;
    font-family: 'Inter', system-ui, sans-serif;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* ===== SIDEBAR ===== */
.sidebar {
    height: 100vh;
}
.nav-group {
    margin-top: 1rem;
}

.nav-group-title {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    opacity: 0.7;
    padding: 0.5rem 0.75rem;
    color: cornflowerblue;
}

.logout {
    padding: 1rem;
    border-top: 1px solid #374151;
    margin-top: auto;
}

.btn-logout {
    width: 100%;
    background: #dc2626;
    border: none;
    padding: 0.6rem;
    color: white;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
}

    .btn-logout:hover {
        background: #b91c1c;
    }

/* RESPONSIVE */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
    }
}

/*placeholder de formulario */
.form-control::placeholder {
    font-style: italic;
    font-size: 0.85rem;
    color: #6c757d;
}
.select-placeholder {
    font-style: italic;
    font-size: 0.85rem;
    color: #6c757d;
}