/* =====================================================
   LMS ABC — layout.css
   Sidebar, Topbar, Main Content
   ===================================================== */

/* ---- APP WRAPPER ---- */
#page-app { flex-direction: row; }

/* =====================================================
   SIDEBAR
   ===================================================== */
.sidebar {
  width: 260px;
  min-height: 100vh;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0; top: 0; bottom: 0;
  z-index: 100;
  transition: transform 0.3s;
}

/* Logo */
.sidebar-logo {
  padding: 24px 20px;
  display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid var(--border);
}
.sidebar-logo-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.sidebar-logo-text { font-family: 'Syne', sans-serif; font-size: 16px; font-weight: 700; }
.sidebar-logo-sub  { font-size: 11px; color: var(--text3); }

/* Nav */
.sidebar-nav {
  padding: 16px 12px;
  flex: 1;
  overflow-y: auto;
}
.sidebar-section {
  font-size: 10px; font-weight: 700;
  color: var(--text3);
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 12px 8px 6px;
}
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text2);
  transition: all 0.2s;
  margin-bottom: 2px;
}





.nav-item:hover  { background: var(--surface2); color: var(--text); }
.nav-item.active { background: rgba(108,99,255,0.15); color: var(--accent); }
.nav-item .nav-icon { width: 20px; text-align: center; font-size: 16px; }

/* Footer / User card */
.sidebar-footer { padding: 16px 12px; border-top: 1px solid var(--border); }
.user-card {
  display: flex; align-items: center; gap: 10px;
  padding: 10px;
  border-radius: 10px;
  background: var(--surface2);
  cursor: pointer;
  transition: background 0.2s;
}
.user-card:hover   { background: var(--surface3); }
.user-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif;
  font-size: 14px; font-weight: 700; color: white; flex-shrink: 0;
}
.user-name { font-size: 13px; font-weight: 500; }
.user-role { font-size: 11px; color: var(--text3); }

/* =====================================================
   MAIN CONTENT
   ===================================================== */
.main-content {
  margin-left: 260px;
  flex: 1;
  min-height: 100vh;
}

/* Topbar */
.topbar {
  height: 64px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 28px; gap: 16px;
  position: sticky; top: 0; z-index: 50;
}
.topbar-title   { font-family: 'Syne', sans-serif; font-size: 18px; font-weight: 700; flex: 1; }
.topbar-actions { display: flex; gap: 10px; }

/* Content area */
.content-area { padding: 28px; }

/* Sections */
.section        { display: none; }
.section.active { display: block; animation: fadeUp 0.4s ease; }
/*HASTA AQUI*





/
/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 640px) {
  .sidebar      { transform: translateX(-100%); }
  .main-content { margin-left: 0; }
}
