/* Reset básico */
html, body {
  height: 100%;
  margin: 0;
  background-color: var(--color-primary-light);
}

/* Variables */
:root {
  --sidebar-width     : 220px;           /* ancho de la sidebar */
  --btn-width         : 80%;             /* ancho de botones de navegación */
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background-color: var(--color-primary);
  color: var(--color-bg-contrast);
  font-family: 'Poppins', sans-serif;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem 0.9rem;
  box-sizing: border-box;
  z-index: 50;
}

/* Título del sidebar */
.sidebar-title {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
}

/* Separador visual */
.sidebar hr {
  border: none;
  height: 2px;
  background: var(--sidebar-separator);
  margin: 1rem 0;
}

/* Enlaces y botones */
.sidebar .nav-link,
.sidebar form button.nav-link {
  width: var(--btn-width);
  margin: 0.35rem auto;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: left;
  gap: 0.5rem;
  padding: 0.45rem 0.6rem;
  border-radius: 10px;
  background: transparent;
  border: none;
  color: #fff;
  text-align: left;
  transition: background-color 0.25s;
  cursor: pointer;
  text-decoration: none;
}

.sidebar .nav-link:hover {
  background-color: transparent;
  color: #d1d1d1; /* o el color que desees */
  border-radius: 8px;
  
}
.sidebar .nav-link.active {
  background-color: transparent;
  font-weight: 600;
  text-decoration: solid; /* opcional */
  border-radius: 8px;
  border-bottom: 1px solid white; 
}

.sidebar .nav-link i {
  font-size: 18px;
  border-radius: 8px;    
}

/* Contenido principal desplazado hacia la derecha */
.main-content {
  margin-left: var(--sidebar-width);
  padding: 1.6rem;
  background-color: var(--color-primary-light);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

/* Nota: Responsive NO es necesario para desktop-only,
   pero si más adelante lo quieres para tablets, puedes usar esto: */
@media (max-width: 1024px) {
  :root { --sidebar-width: 220px; }
  .main-content { margin-left: var(--sidebar-width); }
}

