/* Sistema de Atención Ciudadana NR - Custom Styles */

:root {
    /* Paleta de colores - Guindas, negro, blanco y grises */
    --color-primary: #8B0000;      /* Guinda oscuro */
    --color-primary-light: #C41E3A; /* Guinda medio */
    --color-primary-dark: #500000;  /* Guinda más oscuro */
    --color-secondary: #333333;     /* Negro */
    --color-light: #f8f9fa;         /* Blanco */
    --color-gray: #6c757d;          /* Gris */
    --color-gray-light: #e9ecef;    /* Gris claro */
    --color-gray-dark: #343a40;     /* Gris oscuro */
    --color-guinda: #8B0000;       /* Alias para mantener compatibilidad */
    --color-guinda-oscuro: #500000; /* Alias para mantener compatibilidad */
    --primary-color: #8e1f4c;
    --secondary-color: #5a142f;
    --accent-color: #cfac11;
    --light-bg: #f8f9fa;
    --dark-text: #343a40;
}

/* Clases de utilidad para colores */
.bg-guinda {
    background-color: var(--color-primary) !important;
}

.text-guinda {
    color: var(--color-primary) !important;
}

/* Personalización General */
body {
    background-color: #f5f5f5;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.navbar-dark {
    background-color: var(--color-primary) !important;
}

.bg-dark {
    background-color: var(--color-secondary) !important;
}

.btn-primary {
    background-color: var(--color-primary);
    border-color: var(--color-primary-dark);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
}

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

/* Sidebar */
#sidebar-wrapper {
    min-height: 100vh;
    margin-left: -15rem;
    transition: margin 0.25s ease-out;
}

#sidebar-wrapper .sidebar-heading {
    padding: 0.875rem 1.25rem;
    font-size: 1.2rem;
    background-color: var(--color-primary);
}

#sidebar-wrapper .list-group {
    width: 15rem;
}

#wrapper.toggled #sidebar-wrapper {
    margin-left: 0;
}

#page-content-wrapper {
    min-width: 100vw;
}

#wrapper.toggled #page-content-wrapper {
    margin-left: 0;
}

/* Lista de Reportes */
.reporte-card {
    transition: transform 0.3s ease;
    margin-bottom: 1rem;
}

.reporte-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Estatus de Reportes */
.estatus-pendiente {
    color: #fd7e14;
    font-weight: bold;
}

.estatus-en_proceso {
    color: #0d6efd;
    font-weight: bold;
}

.estatus-resuelto {
    color: #198754;
    font-weight: bold;
}

/* Dashboard Cards */
.dashboard-card {
    border-left: 4px solid var(--color-primary);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Formularios */
.form-container {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.login-container {
    max-width: 450px;
    margin: 0 auto;
    padding-top: 7%;
}

.register-container {
    max-width: 600px;
    margin: 0 auto;
    padding-top: 5%;
}

/* Mapa */
#map-container {
    height: 400px;
    width: 100%;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* Media Queries */
@media (min-width: 768px) {
    #sidebar-wrapper {
        margin-left: 0;
    }
    
    #page-content-wrapper {
        min-width: 0;
        width: 100%;
    }
    
    #wrapper.toggled #sidebar-wrapper {
        margin-left: -15rem;
    }
}

/* Estilos para pantallas pequeñas */
@media (max-width: 767.98px) {
    #sidebar-wrapper {
        margin-left: -15rem;
    }
    
    #wrapper.toggled #sidebar-wrapper {
        margin-left: 0;
    }
    
    .sidebar-heading {
        text-align: center;
    }
}

/* Pie de página */
footer {
    background-color: var(--color-secondary);
    color: white;
    padding: 1rem 0;
    position: relative;
    bottom: 0;
    width: 100%;
}

/* Hover en elementos de navegación */
.list-group-item-action:hover {
    background-color: var(--color-primary) !important;
    color: white !important;
}

/* === ESTILOS DASHBOARD MONITOR (Unificados para todas las vistas de Monitor) === */
.monitor-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 250px;
    background-color: var(--primary-color);
    color: white;
    padding-top: 20px;
    z-index: 1;
}
.monitor-sidebar-header {
    padding: 0 15px 15px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.monitor-sidebar-logo {
    max-width: 80px;
    margin-bottom: 10px;
}
.monitor-sidebar-menu {
    padding: 15px 0;
}
.monitor-sidebar-menu a {
    color: rgba(255,255,255,0.8);
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    transition: all 0.3s;
}
.monitor-sidebar-menu a:hover, .monitor-sidebar-menu a.active {
    color: white;
    background-color: rgba(255,255,255,0.1);
    border-left: 4px solid var(--accent-color);
}
.monitor-sidebar-menu i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}
.monitor-content {
    margin-left: 250px;
    padding: 20px;
}
.monitor-top-navbar {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    padding: 15px 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.monitor-user-info {
    display: flex;
    align-items: center;
}
.monitor-user-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}
.stats-card {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    transition: transform 0.3s;
}
.stats-card:hover {
    transform: translateY(-5px);
}
.stats-card .icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 15px;
}
.bg-primary-soft {
    background-color: rgba(142, 31, 76, 0.1);
    color: var(--primary-color);
}
.bg-success-soft {
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745;
}
.bg-warning-soft {
    background-color: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}
.bg-info-soft {
    background-color: rgba(23, 162, 184, 0.1);
    color: #17a2b8;
}
.chart-container {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}
.pending-reports {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}
.report-item {
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    background-color: #f8f9fa;
    border-left: 4px solid var(--primary-color);
    transition: transform 0.2s;
}
.report-item:hover {
    transform: translateX(5px);
}
.report-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}
.report-title {
    font-weight: 600;
    margin: 0;
}
.report-date {
    font-size: 12px;
    color: #6c757d;
}
.report-content {
    font-size: 14px;
    margin-bottom: 10px;
}
.report-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.report-status {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
}
.status-nuevo {
    background-color: #cff4fc;
    color: #055160;
}
.status-asignado {
    background-color: #fff3cd;
    color: #856404;
}
/* Responsive para Monitor */
@media (max-width: 991.98px) {
    .monitor-sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    .monitor-content {
        margin-left: 0;
    }
}
