
/* Variables globales */
:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --text-color: #333;
    --sidebar-width: 200px;
    --header-height: 60px;
}



/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    background-color: #f5f7fa;
    line-height: 1.6;
}


/* Encabezado */
header {
    background-color: var(--primary-color);
    color: white;
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 1.4rem;
    font-weight: 500;
}

.time-control {
    font-size: 0.9rem;
    opacity: 0.9;
}


/* Contenedor principal del dashboard */
.dashboard-container {
    display: flex;
    height: calc(100vh - var(--header-height));
    margin-top: var(--header-height);
}



/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--secondary-color);
    color: white;
    height: 100%;
    position: fixed;
    left: 0;
    padding: 20px 0;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.logo {
    text-align: center;
    padding: 15px;
    margin-bottom: 20px;
}

.logo img {
    max-width: 80%;
    height: auto;
}

.sidebar nav ul {
    list-style: none;
}

.sidebar nav ul li {
    margin-bottom: 5px;
}

.sidebar nav ul li a {
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    display: block;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.sidebar nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--primary-color);
}

.sidebar nav ul li.active a {
    background-color: rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--primary-color);
}

/* Contenido principal */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 20px;
    overflow-y: auto;
    display: grid;
    grid-template-rows: 50vh auto;
    gap: 20px;
}


/* Contenedor del mapa */
.map-container {
    position: relative;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    background-color: white;
    border-radius: 5px;
    overflow: hidden;
}

#map {
    height: 100%;
    width: 100%;
    z-index: 1;
}




/* Widgets */
.widgets-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.widget {
    background-color: white;
    border-radius: 5px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.widget h3 {
    color: var(--secondary-color);
    font-size: 1rem;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}



/* Panel de análisis */
.analysis-panel {
    background-color: white;
    border-radius: 5px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
   
}

.analysis-panel h2 {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.analysis-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.analysis-controls select {
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #ddd;
    min-width: 200px;
}

.analysis-controls button {
    padding: 8px 16px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.analysis-controls button:hover {
    background-color: #2980b9;
}

#analysis-result {
    min-height: 100px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 4px;
    font-size: 0.8rem;
    max-width: 350px;
}

