/* Reset y estilos base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background-color: #f5f6fa;
  min-height: 100vh;
  display: flex;
}

/* Layout principal */
.dashboard {
  display: grid;
  grid-template-columns: 250px 1fr;
  width: 100%;
}

/* Sidebar */
.sidebar {
  background-color: #dc1f26;
  color: white;
  padding: 20px;
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.logo-container img {
  max-width: 150px;
  margin-bottom: 20px;
}

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

.nav-menu ul li {
  margin-bottom: 10px;
}

.nav-menu ul li a {
  color: white;
  text-decoration: none;
  display: block;
  padding: 12px 15px;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-size: 15px;
}

.nav-menu ul li a:hover,
.nav-menu ul li a.active {
  background-color: white;
  color: #dc1f26;
  transform: translateX(5px);
}

/* Contenido principal */
.main-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
}

/* Header */
.header {
  background-color: white;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Estilos para el texto de bienvenida */
.welcome-text h1 {
  color: #1a3875;
  font-size: 1.4rem;
  font-weight: 500;
}
.header-icons {
  display: flex;
  gap: 20px;
}

.icon {
  width: 24px;
  height: 24px;
}

.profile-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

/* Panel de métricas */
.metrics-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.metric-card {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.metric-card h3 {
  color: #1a3875;
  font-size: 1rem;
  margin-bottom: 10px;
}

.metric-card p {
  font-size: 1.5rem;
  font-weight: bold;
  color: #dc1f26;
}

/* Gráficos */
.charts-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.chart-box {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.chart-box h3 {
  color: #1a3875;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.charts-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.chart-box {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
  height: 300px; /* Tamaño fijo */
  display: flex;
  align-items: center;
  justify-content: center;
}

.chart-box canvas {
  width: 100% !important;
  height: 100% !important;
  max-width: 400px; /* Ajusta según tu diseño */
  max-height: 250px; /* Ajusta según tu diseño */
}
