
/* VESTA — Step 1: Visual Design */

:root {
  color-scheme: dark;
  font-family: Arial, Helvetica, sans-serif;
  background-color: #101715;
  color: #f4f1e8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(
      circle at top right,
      #204536 0%,
      transparent 42%
    ),
    #101715;
}

.app-container {
  width: min(100% - 32px, 620px);
  margin: 0 auto;
  padding: 48px 0 24px;
}

/* Header */

.app-header {
  text-align: center;
  margin-bottom: 32px;
}

.app-header h1 {
  margin: 0;
  font-size: 42px;
  letter-spacing: 6px;
  color: #d8bd82;
}

.app-header p {
  color: #b7c4bc;
  font-size: 14px;
}

/* Cards */

.card {
  margin-bottom: 20px;
  padding: 28px;
  border: 1px solid rgba(216, 189, 130, 0.22);
  border-radius: 18px;
  background: rgba(27, 42, 35, 0.92);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.18);
}

.card h2 {
  margin: 0 0 24px;
  font-size: 21px;
}

/* Input Fields */

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 14px;
}

.form-group input,
.form-group select {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid #587064;
  border-radius: 9px;
  background-color: #18271f;
  color: #f4f1e8;
  font: inherit;
}

.form-group input:focus-visible,
.form-group select:focus-visible,
button:focus-visible {
  outline: 2px solid #d8bd82;
  outline-offset: 3px;
}

/* Add Button */

button {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 9px;
  background: #d8bd82;
  color: #16241c;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

button:hover {
  background: #ebd29b;
}

/* Empty History Area */

.empty-list {
  min-height: 110px;
  display: grid;
  place-items: center;
  border: 1px dashed #587064;
  border-radius: 9px;
  color: #b7c4bc;
  text-align: center;
}

/* Footer */

.app-footer {
  text-align: center;
  color: #9caea3;
  font-size: 12px;
}

/* Mobile Layout */

@media (max-width: 480px) {
  .app-container {
    padding-top: 28px;
  }

  .card {
    padding: 20px;
  }

  .app-header h1 {
    font-size: 34px;
  }
}


/* ============================= */
/* STEP 2: TRANSACTION HISTORY  */
/* ============================= */

/* Container for saved transactions */
.transaction-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Individual transaction */
.transaction-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;

  padding: 16px;
  border-radius: 10px;

  background-color: #18271f;
  border: 1px solid #365246;
}

/* Left side: category and date */
.transaction-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.transaction-category {
  font-size: 15px;
  font-weight: bold;
  color: #f4f1e8;
}

.transaction-date {
  font-size: 12px;
  color: #aebfb4;
}

/* Right side: amount */
.transaction-amount {
  font-size: 17px;
  font-weight: bold;
  white-space: nowrap;
}

/* Income = Green */
.income {
  color: #4ade80;
}

/* Expense = Red */
.expense {
  color: #fb7185;
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .transaction-item {
    padding: 12px;
  }

  .transaction-amount {
    font-size: 15px;
  }
}


/* ============================= */
/* STEP 3: TRANSACTION FILTERS  */
/* ============================= */

.filter-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

/* Filter button design */
.filter-btn {
  flex: 1;
  min-height: 42px;

  background-color: #18271f;
  color: #b7c4bc;

  border: 1px solid #365246;
  border-radius: 8px;

  font-size: 14px;
  font-weight: 600;

  cursor: pointer;
}

/* Highlight selected filter */
.filter-btn.active {
  background-color: #d8bd82;
  color: #16241c;
  border-color: #d8bd82;
}

/* Hover effect */
.filter-btn:hover {
  background-color: #365246;
  color: white;
}

/* Keep active button highlighted */
.filter-btn.active:hover {
  background-color: #d8bd82;
  color: #16241c;
}

