:root {
  --orange: #f89c63;
  --red: #e05252;
  --green: #5aab6e;
  --amber: #e8a030;
  --bg: #fdf0e8;
  --card: #ffffff;
  --border: #e8cfc0;
  --text: #3d2c1e;
  --dim: #7a5c48;
  --sans: "Nunito", sans-serif;
  --mono: "Fira Code", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* NAVBAR */
.navbar {
  height: 4em;
  background: var(--orange);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}
.navbar-logo {
  font-size: 18px;
  font-weight: 800;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.navbar-divider {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.35);
}
.navbar-project {
  font-size: 18px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
}
.navbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}
.navbar-icon {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: white;
  font-size: 18px;
  cursor: pointer;
  text-decoration: none;
}
.navbar-icon:hover {
  background: rgba(255, 255, 255, 0.15);
}
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--orange);
}

/* SIDEBAR */
.sidebar {
  position: fixed;
  top: 52px;
  left: 0;
  bottom: 0;
  width: 52px;
  background: var(--card);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 0 16px;
  gap: 12px;
  z-index: 90;
}
.sidebar-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #b08070;
  text-decoration: none;
  position: relative;
  border: none;
  background: transparent;
  cursor: pointer;
}
.sidebar-btn img {
  width: 35px;
  height: 35px;
  object-fit: contain;
}
.sidebar-btn:hover,
.sidebar-btn.active {
  color: var(--orange);
  background: rgba(250, 201, 181, 0.25);
}
.sidebar-spacer {
  flex: 1;
}
.sidebar-tooltip {
  position: absolute;
  left: 46px;
  background: var(--text);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--bg);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  z-index: 200;
}
.sidebar-btn:hover .sidebar-tooltip {
  opacity: 1;
}

/* LAYOUT */
.main {
  margin-top: 3.5em;
  margin-left: 4em;
  padding: 24px;
}
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.page-title {
  font-size: 40px;
  font-weight: 700;
}
.page-sub {
  font-size: 1rem;
  color: var(--dim);
  margin-top: 3px;
}

/* CARD */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
}
.card-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 14px;
}

/* DARK MODE */
body.dark {
  --bg: #000000;
  --card: #31201c;
  --border: #3d2c1e;
  --text: #f5e6d8;
  --dim: #99816a;
}

.page {
  display: none;
}
.page.active {
  display: block;
}
