/* ===== Login Layout ===== */
.login-container{
  min-height: 100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: var(--space-5);
  background: radial-gradient(1200px 600px at 50% 0%, #ffffff 0%, var(--bg) 55%, #eef2ff 100%);
}
.login-box{
  background: var(--surface);
  border-radius: var(--radius);
  padding: 44px;
  max-width: 420px;
  width: 100%;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.login-box h1{font-size:30px;font-weight:650;margin-bottom:6px;letter-spacing:-0.02em;}
.login-box p{color:var(--muted);font-size:14px;margin-bottom:26px;}

/* ===== App Layout ===== */
.app-container{display:none; min-height:100vh;}
.app-container.active{display:flex;}

/* ===== Sidebar ===== */
.sidebar{
  width: 264px;
  background: rgba(255,255,255,.92);
  border-right: 1px solid var(--border);
  height: 100vh;
  position: fixed;
  left: 0; top: 0;
  overflow-y:auto;
  display:flex;
  flex-direction:column;
  backdrop-filter: blur(10px);
}
.sidebar-header{
  padding: 26px 20px;
  border-bottom: 1px solid var(--border);
}
.sidebar-header h2{
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.sidebar-user{
  font-size: 12px;
  color: var(--muted);
  display:flex;
  gap: 8px;
  align-items:center;
}
.sidebar-user:before{
  content:"";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(22,163,74,.9);
  box-shadow: 0 0 0 3px rgba(22,163,74,.12);
  display:inline-block;
}
.sidebar-nav{flex:1; padding: 10px 0;}
.nav-item{
  padding: 10px 14px;
  margin: 4px 10px;
  cursor:pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
  font-size: 14px;
  color: rgba(17,24,39,.86);
  display:flex;
  align-items:center;
  gap: 10px;
  border-radius: 12px;
  border: 1px solid transparent;
  user-select:none;
}
.nav-item:hover{background: rgba(37,99,235,.06); border-color: rgba(37,99,235,.12);}
.nav-item.active{
  background: rgba(37,99,235,.10);
  border-color: rgba(37,99,235,.18);
  color: var(--primary);
  font-weight: 700;
}
.nav-icon{
  width: 20px;
  height: 20px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color: currentColor;
}
.nav-icon svg{width:20px;height:20px; fill:none; stroke: currentColor; stroke-width:2.25; stroke-linecap:round; stroke-linejoin:round;}

.logout-btn{
  margin: 10px 14px 14px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
  font-size: 14px;
  font-weight: 650;
  cursor:pointer;
  transition: background .15s ease, border-color .15s ease;
}
.logout-btn:hover{background: var(--surface-2); border-color: rgba(15,23,42,.22);}

/* ===== Main Content ===== */
.main-content{
  margin-left: 264px;
  width: calc(100% - 264px);
  padding: 28px 28px 40px;
  min-height:100vh;
}
.content-inner{
  max-width: 1320px;
  margin: 0 auto;
}
.section{display:none;}
.section.active{display:block;}

.section-header{
  margin-bottom: 18px;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.section-header h1{
  font-size: 28px;
  font-weight: 760;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.section-header p{color: var(--muted); font-size: 14px;}
.section-header .header-actions{display:flex; gap: 10px; flex-wrap: wrap;}
