/* ===== LAYOUT — Sidebar + Content ===== */

body {
  display: flex;
  min-height: 100vh;
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.7;
}

/* --- Sidebar --- */
.sidebar {
  width: 260px;
  min-height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.2rem 1.5rem;
  overflow-y: auto;
  z-index: 100;
  transition: transform 0.3s ease;
}

.sidebar-header {
  margin-bottom: 1.8rem;
  text-align: center;
}

.sidebar-header .avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 0.8rem;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,0.2);
}

.sidebar-header h2 {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.sidebar-header .subtitle {
  font-size: 0.78rem;
  opacity: 0.7;
  margin-top: 0.2rem;
}

/* --- Sidebar Navigation --- */
.sidebar nav {
  flex: 1;
}

.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.2s ease;
  margin-bottom: 2px;
}

.sidebar nav a:hover,
.sidebar nav a.active {
  background: rgba(255,255,255,0.12);
}

.sidebar nav a .nav-icon {
  font-size: 1.1rem;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}

/* --- Sidebar Bottom --- */
.sidebar-bottom {
  margin-top: auto;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* --- Main Content --- */
.content {
  margin-left: 260px;
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.content-header {
  padding: 2.5rem 2rem 1.8rem;
  position: relative;
  overflow: hidden;
}

.content-header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(59,130,246,0.08) 0%, transparent 70%);
  animation: headerPulse 8s ease-in-out infinite;
}

@keyframes headerPulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 1; }
}

.content-header h1 {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  position: relative;
}

.content-header .page-subtitle {
  font-size: 0.95rem;
  opacity: 0.85;
  font-weight: 300;
  position: relative;
  margin-top: 0.3rem;
}

.content-body {
  padding: 0 2rem 3rem;
  max-width: 960px;
  flex: 1;
}

.content-footer {
  padding: 1.2rem 2rem;
  text-align: center;
  font-size: 0.8rem;
  margin-top: auto;
}

.content-footer a {
  transition: color 0.2s;
}

/* --- Hamburger Menu --- */
.menu-toggle {
  display: none;
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 200;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 90;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    width: 280px;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .menu-toggle {
    display: flex;
  }

  .menu-overlay.open {
    display: block;
  }

  .content {
    margin-left: 0;
  }

  .content-header {
    padding: 1.5rem 1.2rem 1.2rem;
    padding-top: 4rem;
  }

  .content-header h1 {
    font-size: 1.5rem;
  }

  .content-body {
    padding: 0 1.2rem 2rem;
  }
}
