/* === BASE: Reset, Variables, Body, Glass, Page === */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #f0f7f0;
  --bg2: #ffffff;
  --card: rgba(255, 255, 255, 0.82);
  --border: rgba(74, 124, 89, 0.12);
  --border-h: rgba(74, 124, 89, 0.22);
  --accent: #2d8f4e;
  --accent-l: #38a169;
  --accent-g: rgba(56, 161, 105, 0.18);
  --txt: #1a3a2a;
  --txt2: #4a6e5a;
  --muted: #7a9e8a;
  --ok: #22c55e;
  --err: #e53e3e;
  --warn: #dd6b20;
  --sidebar-w: 260px;
  --radius: 16px;
  --sakura: #f9a8c9;
  --sakura-l: #fbd5e5;
  --leaf: #6db87b;
  --leaf-d: #3c7a4a;
  --sky: #e8f5e9;
  --sun: #fff9c4;
}

body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--txt);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(56, 161, 105, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 10%, rgba(249, 168, 201, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse 50% 50% at 50% 100%, rgba(255, 249, 196, 0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* MAIN LAYOUT — centered and wider on desktop */
.main {
  margin-left: var(--sidebar-w);
  padding: 28px 32px 40px;
  position: relative;
  z-index: 1;
  max-width: 1100px;
}

@media (min-width: 1400px) {
  .main {
    padding: 32px 48px 40px;
  }
}

@media (max-width: 767px) {
  .main {
    margin-left: 0 !important;
    padding: 16px 16px 32px !important;
    padding-top: 68px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }
}

/* GLASS CARD */
.glass {
  background: var(--card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(45, 143, 78, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* PAGE SWITCHER */
.page { display: none; width: 100%; }
.page.active { display: block; }

/* PAGE TITLE */
.ptitle {
  font-size: 20px;
  font-weight: 800;
  color: var(--txt);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ptitle svg { width: 22px; height: 22px; color: var(--accent); }

/* SCROLLBAR */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(56, 161, 105, 0.2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(56, 161, 105, 0.35); }
