/* ─── CSS Variables ─────────────────────────────────── */
:root {
  --bg: #13181f;
  --surface: #1e2530;
  --surface2: #262e3a;
  --border: #3a4455;
  --text: #eaf0f8;
  --text-muted: #8a95a3;
  --accent: #82e000;
  --danger: #f04747;
  --radius: 10px;
}

/* ─── Reset ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body { font-family: 'Pretendard', -apple-system, sans-serif; background: var(--bg); color: var(--text); line-height: 1.5; min-height: 100vh; }
a { color: inherit; text-decoration: none; }
input, button, select, textarea { font-family: inherit; }

/* ─── Navbar ─────────────────────────────────────────── */
.navbar {
  height: 56px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 100;
}
.nav-logo { font-size: 18px; font-weight: 800; color: var(--accent); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-avatar { width: 28px; height: 28px; border-radius: 50%; }
.nav-username { font-size: 14px; font-weight: 600; }
.nav-btn { display:inline-flex; align-items:center; gap:6px; padding: 7px 16px; border-radius: 6px; font-size: 13px; font-weight: 600; border: 1px solid var(--border); color: var(--text-muted); transition: all .15s; }
.nav-btn:hover { border-color: var(--text-muted); color: var(--text); }
.nav-btn.primary { background: var(--accent); color: #000; border-color: var(--accent); }
.nav-btn.primary:hover { opacity: .88; }

/* ─── Main & Footer ──────────────────────────────────── */
main { padding: 0; }
.footer { text-align: center; padding: 20px; font-size: 13px; color: var(--text-muted); border-top: 1px solid var(--border); margin-top: 40px; }

/* ─── User layout ────────────────────────────────────── */
.user-layout { display: flex; gap: 24px; max-width: 1100px; margin: 0 auto; padding: 32px 24px; min-height: calc(100vh - 56px - 61px); }
.user-sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 0;
  height: fit-content;
  position: sticky;
  top: 76px;
}
.user-sidebar-profile { padding: 0 20px 16px; border-bottom: 1px solid var(--border); margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.user-sidebar-avatar { width: 36px; height: 36px; border-radius: 50%; }
.user-sidebar-name { font-size: 13px; font-weight: 600; }
.user-sidebar-nav { padding: 0 8px; }
.user-sidebar-section { font-size: 10px; font-weight: 700; color: var(--text-muted); letter-spacing: 1px; text-transform: uppercase; padding: 8px 12px 4px; }
.user-nav-item { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 6px; font-size: 13px; font-weight: 500; color: var(--text-muted); transition: all .15s; }
.user-nav-item:hover { background: var(--surface2); color: var(--text); }
.user-nav-item.active { background: rgba(130,224,0,.1); color: var(--accent); font-weight: 600; }
.user-nav-icon { font-size: 15px; }
.user-content { flex: 1; min-width: 0; }
.user-page-title { font-size: 22px; font-weight: 700; margin-bottom: 24px; }

/* ─── Form inputs ────────────────────────────────────── */
.setting-input {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 9px 12px;
  color: var(--text);
  font-size: 14px;
  transition: border-color .15s;
  width: 100%;
}
.setting-input:focus { outline: none; border-color: var(--accent); }
.setting-input::placeholder { color: var(--text-muted); }

/* ─── Responsive ─────────────────────────────────────── */
@media (max-width: 768px) {
  .user-layout { flex-direction: column; padding: 16px; }
  .user-sidebar { width: 100%; position: static; }
}

/* ─── Lucide Icons ───────────────────────────────────── */
[data-lucide] { display: inline-block; vertical-align: middle; }
.icon { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.icon svg { width: 16px; height: 16px; }
.icon-sm svg { width: 14px; height: 14px; }
.icon-md svg { width: 18px; height: 18px; }
.icon-lg svg { width: 24px; height: 24px; }
.icon-xl svg { width: 32px; height: 32px; }
.icon-2xl svg { width: 48px; height: 48px; }
