:root {
  --primary: #2563eb;
  --bg: #f9fafb;
  --card: #ffffff;
  --text: #1e293b;
  --muted: #64748b;
  font-family: "Poppins", sans-serif;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

/* ========== LANDING PAGE ========== */
.landing {
  height: 100vh;
  background: linear-gradient(135deg, #0f172a, #2563eb);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition: opacity 1s ease;
  overflow: hidden;
}

.logo-landing {
  width: 110px;
  margin-bottom: 20px;
  animation: logo-bounce 2s ease-in-out infinite;
}

.landing-content h1 {
  font-size: 3rem;
  margin-bottom: 10px;
  opacity: 0;
  animation: fadeUp 1.2s forwards 0.3s;
}

.landing-content p {
  font-size: 1.2rem;
  max-width: 400px;
  margin: 0 auto 20px;
  opacity: 0;
  animation: fadeUp 1.2s forwards 0.6s;
}

.landing-content button {
  background: white;
  color: #2563eb;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
  opacity: 0;
  animation: fadeUp 1.2s forwards 1s;
}

.landing-content button:hover {
  background: #e0e7ff;
}

.hidden {
  display: none;
}

/* ========== ANIMASI ========== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes logo-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ========== HEADER DASHBOARD ========== */
header {
  background: var(--primary);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-header {
  width: 40px;
  height: 40px;
}

nav {
  display: flex;
  gap: 10px;
}

.nav-btn {
  background: transparent;
  color: white;
  border: 1px solid white;
  padding: 8px 15px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}

.nav-btn.active, .nav-btn:hover {
  background: white;
  color: var(--primary);
}

/* ========== SECTIONS ========== */
.section {
  display: none;
  max-width: 800px;
  margin: 40px auto;
  background: var(--card);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  opacity: 0;
  animation: fadeUp 0.8s forwards;
}

.section.active {
  display: block;
  opacity: 1;
}

/* FORM & TABLE */
form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
  justify-content: center;
}

input, select, button {
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  font-size: 14px;
}

button {
  background: var(--primary);
  color: white;
  border: none;
  cursor: pointer;
}

button:hover {
  background: #1e40af;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 8px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
}

/* CHART */
.chart-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 25px;
}

#expenseChart {
  max-width: 320px;
  max-height: 320px;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 15px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 0.9rem;
}

/* ========== RESET BUTTON ========== */
.reset-box {
  text-align: center;
  margin-top: 15px;
}

#resetBtn {
  background: #ef4444;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 8px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: 0.3s;
}

#resetBtn:hover {
  background: #dc2626;
}

