﻿/* Estilos para la aplicación Fusion911 Dashboard */

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    height: 100%;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

/* Contenido principal */
.content {
    padding-top: 1.1rem;
}

/* Loading spinner básico (simple, sin conflictos) */
.loading-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    margin-top: 20px;
    font-size: 1.2rem;
    color: #555;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Blazor 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;
    }

/* Estilos para tarjetas y elementos de dashboard */
.card {
    margin-bottom: 1.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: none;
}

.card-header {
    background-color: #f8f9fa;
    font-weight: 500;
}

/* Estilos para el mapa */
.leaflet-container {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.leaflet-popup-content-wrapper {
    border-radius: 8px;
}

.leaflet-popup-content {
    margin: 12px;
}

/* Formularios */
.form-control:focus, .form-select:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25);
}

/* Modales */
.modal-header {
    border-bottom: 1px solid #dee2e6;
    background-color: #f8f9fa;
}

.modal-footer {
    border-top: 1px solid #dee2e6;
    background-color: #f8f9fa;
}

/* Auth pages */
.auth-main {
    background-image: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

/* ==== Menú lateral scrollable ==== */
.nav-scrollable {
    height: calc(100vh - 56px);
    overflow-y: auto;
}

.nav-item .nav-link {
    padding: 0.5rem 1rem;
    color: #333;
    transition: background 0.2s, color 0.2s;
}

    .nav-item .nav-link:hover {
        background-color: rgba(0, 0, 0, 0.025);
    }

    .nav-item .nav-link.active {
        background-color: var(--primary-color) !important;
        color: #fff !important;
    }
