/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 200px;   /* ancho fijo del menú */
  height: 100%;
  background: #1e1e2f;
  color: #fff;
  display: flex;
  flex-direction: column;
  box-shadow: 2px 0 8px rgba(0,0,0,0.2);
  font-family: 'Segoe UI', sans-serif;
  z-index: 1000;
}

/* Bloque principal del admin */
.admin-layout {
  margin-left: 240px; /* mismo ancho que el sidebar */
  padding: 20px;
  min-height: 100vh;  /* asegura que ocupe toda la altura */
  background: #fff; /* opcional, para diferenciar */
}

/* Header con logo */
.sidebar-header {
  display: flex;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-header .logo {
  width: 160px;
  height: auto;
  margin-right: 10px;
}

.sidebar-header h2 {
  font-size: 18px;
  margin: 0;
  color: #fff;
}

/* Navegación */
.sidebar-nav a,
.submenu-toggle {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  color: #ccc;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  width: auto;
}

.sidebar-nav a i,
.submenu-toggle i {
  margin-right: 10px;
  font-size: 18px;
  width: auto;
}

.sidebar-nav a:hover,
.submenu-toggle:hover {
  background: #2a2a3d;
  color: #fff;
  width: auto;
}

.sidebar-nav .activo {
  background: #ad2929;
  color: #fff;
  font-weight: bold;
  width: auto;
}

/* Submenú */
.submenu-items {
  max-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #252538;
  transition: max-height 0.3s ease;
  width: auto;
}

.submenu-items a {
  padding-left: 40px;
  font-size: 14px;
  width: auto;
}

/* Contenido principal */


/* Contenido principal */
.main-content {
  margin-left: 200px; /* mismo ancho que el sidebar */
  padding: 20px;
}


.logout-btn {
  margin-top: 15px;
  text-align: center;
}

.logout-btn a {
  display: inline-block;
  padding: 10px 15px;
  background: #dc3545; /* rojo atractivo */
  color: #fff;
  font-weight: bold;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.logout-btn a i {
  margin-right: 6px;
}

.logout-btn a:hover {
  background: #c82333; /* tono más oscuro al pasar el mouse */
}

.sidebar-divider {
  border: none;
  border-top: 1px solid #ccc; /* línea sutil */
  margin: 15px 0;
}

.sidebar-logout {
  padding: 15px;
  text-align: center;
}

.sidebar-logout a {
  display: block;
  background: #f44336; /* rojo atractivo */
  color: #fff;
  font-weight: 600;
  border-radius: 6px;
  padding: 10px 0;
  text-decoration: none;
  transition: all 0.3s ease;
}

.sidebar-logout a i {
  margin-right: 6px;
}

.sidebar-logout a:hover {
  background: #d32f2f;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  transform: translateY(-1px);
}
}