
:root {
  --background: #17152b;
  --surface: #24213d;
  --surface-light: #302b4c;
  --text: #fbf7ff;
  --muted: #b8b1ce;
  --pink: #ffb5d2;
  --purple: #cbb5ff;
  --blue: #b7d9ff;
  --peach: #ffd0b8;
  --border: rgba(255,255,255,0.09);
}

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

body {
  background:
    radial-gradient(circle at 10% 5%, #49305b 0, transparent 35%),
    radial-gradient(circle at 95% 40%, #302d57 0, transparent 35%),
    var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
  transition: background 0.3s, color 0.3s;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 6%;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--pink);
  color: #30213c;
  font-size: 24px;
}

.brand h1 {
  font-size: 18px;
  letter-spacing: 2px;
}

.brand p {
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--muted);
  margin-top: 3px;
}

#themeToggle {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-size: 20px;
  cursor: pointer;
}

main {
  width: min(100% - 36px, 850px);
  margin: 45px auto;
}

.welcome {
  padding: 25px 5px 32px;
}

.eyebrow {
  color: var(--pink);
  font-size: 10px;
  letter-spacing: 2.5px;
  font-weight: 700;
  margin-bottom: 13px;
}

.welcome h2 {
  font-size: clamp(30px, 7vw, 48px);
  line-height: 1.12;
  letter-spacing: -1.5px;
}

.welcome h2 span {
  color: var(--pink);
}

.subtext {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  margin-top: 14px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
  padding: 9px 14px;
  border-radius: 30px;
  background: rgba(190, 255, 218, 0.08);
  color: #c6f5d5;
  font-size: 11px;
}

.status-dot {
  width: 7px;
  height: 7px;
  background: #8de3ae;
  border-radius: 50%;
}

.dashboard {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.nav-card {
  min-height: 155px;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 20px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  cursor: pointer;
  transition: transform 0.2s, filter 0.2s;
  color: #292238;
}

.nav-card:hover {
  transform: translateY(-4px);
  filter: brightness(1.07);
}

.nav-card:active {
  transform: scale(0.98);
}

.pink { background: var(--pink); }
.purple { background: var(--purple); }
.blue { background: var(--blue); }
.peach { background: var(--peach); }

.card-icon {
  font-size: 25px;
  margin-bottom: 17px;
}

.card-title {
  font-size: 17px;
  font-weight: 750;
}

.card-description {
  font-size: 11px;
  opacity: 0.72;
  margin-top: 5px;
}

.card-arrow {
  position: absolute;
  top: 18px;
  right: 19px;
  font-size: 19px;
}

.content-panel {
  margin-top: 26px;
  padding: 24px;
  background: rgba(36, 33, 61, 0.85);
  border: 1px solid var(--border);
  border-radius: 24px;
  min-height: 170px;
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.panel-heading h2 {
  font-size: 21px;
}

.sparkle {
  color: var(--pink);
  font-size: 24px;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 25px 6%;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 1px;
  border-top: 1px solid var(--border);
}

body.light {
  --background: #f7f3ff;
  --surface: #ffffff;
  --surface-light: #eee7fb;
  --text: #28213b;
  --muted: #756c87;
  --border: rgba(40, 33, 59, 0.12);
  background: #f7f3ff;
}

body.light .content-panel {
  background: white;
}

@media (min-width: 700px) {
  main {
    margin-top: 65px;
  }

  .dashboard {
    gap: 20px;
  }

  .nav-card {
    min-height: 180px;
    padding: 25px;
  }
}

@media (max-width: 380px) {
  .nav-card {
    padding: 15px;
    min-height: 140px;
  }

  footer {
    flex-direction: column;
  }
}

.feature-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.feature-card > p {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 18px;
}

.item-card {
  background: var(--surface-light);
  padding: 15px;
  border-radius: 14px;
  margin-top: 12px;
}

.item-card strong,
.item-card span {
  display: block;
}

.item-card p {
  font-size: 12px;
  margin: 7px 0;
  color: var(--muted);
}

.item-card span {
  color: var(--muted);
  font-size: 11px;
  margin-top: 6px;
}

#projectForm {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

#projectForm input,
#projectForm textarea {
  width: 100%;
  padding: 13px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--background);
  color: var(--text);
  font: inherit;
}

#projectForm textarea {
  min-height: 85px;
  resize: vertical;
}

.add-button,
.delete-button {
  padding: 11px 15px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
}

.add-button {
  background: var(--pink);
  color: #30213c;
}

.delete-button {
  background: rgba(255, 120, 150, 0.15);
  color: #ff9fb9;
  margin-top: 12px;
}

.empty-state {
  color: var(--muted);
  font-size: 13px;
  padding: 15px 0;
}
