/* ── Variables ─────────────────────────────────────── */
:root {
  --text:               #1d1d1d;
  --text-l:             #FFF;
  --text-gray:          #7e7e7e;
  --bg-h:               #111614;
  --bg:                 #fff;
  --bg-page:            #f2f2f2;
  --border:             #e5e4e7;
  --code-bg:            #f4f3ec;
  --primary:            #00A859;
  --primary-foreground: #FFF;
  --bg-clean:           rgb(223, 223, 223);
  --shadow:             rgba(0, 0, 0, 0.1) 0 10px 15px -3px, rgba(0, 0, 0, 0.05) 0 4px 6px -2px;
  --foreground:         #1d1d1d;
  --muted:              #e5e4e7;
}

/* ── Reset ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; font-family: 'Poppins', sans-serif; }

/* ── Views ─────────────────────────────────────────── */
.view { height: 100vh; width: 100%; }
.hidden { display: none !important; }

/* ── Layout ────────────────────────────────────────── */
#view-layout {
  display: flex;
  position: relative;
}

.layout-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding-top: 64px;
  height: 100vh;
  overflow-y: auto;
}

/* ── Header ────────────────────────────────────────── */
.header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  height: 64px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: var(--bg-h);
  color: var(--primary-foreground);
}

/* ── Toggle button ─────────────────────────────────── */
.toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  flex-shrink: 0;
}

.toggle .svg-close { display: none; }
.toggle.open .svg-menu  { display: none; }
.toggle.open .svg-close { display: block; }

/* ── Logo ──────────────────────────────────────────── */
.logo {
  width: 125px;
  margin-bottom: 18px;
  cursor: pointer;
}

/* ── Sidebar ───────────────────────────────────────── */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 260px;
  background-color: var(--bg);
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: 12px;
  gap: 8px;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

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

.link {
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 8px;
  color: var(--foreground);
  transition: background-color 0.2s;
  font-size: 18px;
}

.link:hover { background-color: var(--muted); }

.link.active {
  font-weight: bold;
  color: var(--primary);
}

/* ── Overlay ───────────────────────────────────────── */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 150;
}

.sidebar-overlay.active { display: block; }

/* ── Page Content ──────────────────────────────────── */
.page-content {
  flex: 1;
}
