/* --- VARIABLES DE DISEÑO (BASADO EN TUS ORIGINALES) --- */
:root {
  --neon-blue: #00FFFF;
  --electric-violet: #8A2BE2;
  --dark-bg: #040a1a;
  --dark-bg-card: rgba(15, 23, 42, 0.9);
  --border-color: rgba(0, 255, 255, 0.2);
  --transition-speed: 0.4s;
}

/* --- GRID MAESTRO --- */
.dashboard-grid {
  display: grid;
  grid-template-columns: 80px 1fr;
  width: 100vw;
  height: 100vh;
  background: var(--dark-bg);
  overflow: hidden;
}

/* --- BARRA LATERAL (80px) --- */
.main-menu {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 0;
  border-right: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.3);
  z-index: 100;
}

.user-info img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 2px solid var(--neon-blue);
  margin: 0 auto;
}

.main-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.nav-item a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  color: white;
  text-decoration: none;
  font-size: 1.4rem;
  transition: all 0.3s ease;
  opacity: 0.6;
}

.nav-item.active a {
  opacity: 1;
  color: var(--neon-blue);
  background: rgba(0, 255, 255, 0.05);
  border-right: 3px solid var(--neon-blue);
}

/* --- CONTENEDOR DE VISTAS (SPA) --- */
.views-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.view {
  position: absolute;
  inset: 0;
  padding: 40px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: opacity var(--transition-speed), transform var(--transition-speed);
  overflow-y: auto;
}

.view.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* --- ADAPTACIÓN MÓVIL (RESPONSIVE) --- */
@media (max-width: 750px) {
  .dashboard-grid {
    grid-template-columns: 100%;
    grid-template-rows: auto 1fr;
  }
  .main-menu {
    flex-direction: row;
    height: 70px;
    padding: 0 20px;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
  .main-menu ul {
    flex-direction: row;
  }
  .user-info { display: none; }
}
