/* ═══════════════════════════════════════════════════════════
   SOULARY — DIARY ENTRY PAGE
   One open journal page on a candlelit wooden desk.
   Every pixel should feel like ink on aged paper.
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;500;600;700&family=Lora:ital,wght@0,400;0,600;1,400;1,600&family=IM+Fell+English:ital@0;1&family=Homemade+Apple&display=swap');

/* ─── TOKENS ─── */
:root {
  --desk-dark:      #1a0f07;
  --desk-mid:       #2c1a0e;
  --desk-grain:     #3d2618;
  --leather:        #4e3221;
  --leather-dk:     #2a1a0d;

  --paper:          #faf6ea;
  --paper-warm:     #f4eedb;
  --paper-crease:   #ede6ce;
  --paper-edge:     #d9d0b4;

  --ink:            #1c1209;
  --ink-mid:        #3a2c1c;
  --ink-fade:       #7a6a54;
  --ink-ghost:      #b8a888;

  --gold:           #c9a84c;
  --gold-dim:       rgba(201,168,76,0.3);
  --red-wax:        #8b1a1a;
  --red-wax-lt:     #a52020;
  --red-margin:     rgba(185,65,65,0.25);

  --rule:           rgba(0,0,0,0.062);
  --rule-h:         34px;       /* ruled line height */

  --font-hand:      'Caveat', cursive;
  --font-serif:     'Lora', serif;
  --font-formal:    'IM Fell English', serif;
  --font-scrawl:    'Homemade Apple', cursive;

  --page-width:     680px;
  --page-pad-left:  72px;
  --page-pad-right: 52px;
  --page-pad-v:     56px;
}

/* ─── RESET ─── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }

/* ═══════════════════════════════════════════════════════════
   BODY — wooden desk with candlelight
═══════════════════════════════════════════════════════════ */
body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 48px 20px 80px;
  background: var(--desk-dark);
  font-family: var(--font-serif);
  font-size: 18px; /* Base font size: 18px as requested */
  color: var(--ink);
  position: relative;
  overflow-x: hidden;
}

/* Ensure all interactive elements have highly readable text */
input, 
textarea, 
select {
  font-family: inherit;
  font-size: 20px; /* Inputs and textareas: 20px for clear reading */
  color: var(--ink);
}

/* Style for Buttons */
button {
  font-family: inherit;
  font-size: 18px; /* Buttons: 18px as requested */
  color: var(--ink);
}

/* Specifically target labels to make them stand out */
label {
  font-size: 18px; /* Labels: 18px as requested */
  font-weight: bold;
  margin-bottom: 8px;
  display: block;
}

/* Larger placeholder text for better clarity */
::placeholder {
  font-size: 18px; /* Placeholder text increased */
  color: var(--ink-fade);
  opacity: 0.6;
}

/* Wood grain */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%,   rgba(255,210,120,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 15% 100%, rgba(0,0,0,0.5)         0%, transparent 55%),
    radial-gradient(ellipse at 85% 100%, rgba(0,0,0,0.4)         0%, transparent 55%),
    repeating-linear-gradient(
      91deg,
      transparent 0px, transparent 34px,
      rgba(0,0,0,0.06) 34px, rgba(0,0,0,0.06) 36px,
      transparent 36px, transparent 72px,
      rgba(255,255,255,0.01) 72px, rgba(255,255,255,0.01) 74px
    ),
    repeating-linear-gradient(
      180deg,
      var(--desk-mid)   0px, var(--desk-mid)   3px,
      var(--desk-grain) 3px, var(--desk-grain)  4px,
      var(--desk-mid)   4px, var(--desk-mid)   18px,
      rgba(0,0,0,0.16) 18px, rgba(0,0,0,0.16) 20px
    );
  z-index: 0;
  pointer-events: none;
}

/* Deep vignette — focuses eye on centre */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse 80% 70% at 50% 42%, transparent 30%, rgba(0,0,0,0.72) 100%);
  z-index: 0;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════
   CONTAINER — the single open journal page
═══════════════════════════════════════════════════════════ */
.container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: var(--page-width);
  background: var(--paper);
  border-radius: 2px 6px 6px 2px;
  padding: var(--page-pad-v) var(--page-pad-right) calc(var(--page-pad-v) + 24px) var(--page-pad-left);

  /* Book binding on left */
  border-left: 10px solid var(--leather);

  /* Drop shadow — page floating over desk */
  box-shadow:
    -6px 0  16px rgba(0,0,0,0.45),
     0  8px 32px rgba(0,0,0,0.55),
     0 24px 64px rgba(0,0,0,0.45),
     0 48px 80px rgba(0,0,0,0.25),
    inset 0 0 0 1px rgba(255,255,255,0.25);

  /* Page-open entrance */
  animation: pageOpen 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
  transform-origin: left center;
}

@keyframes pageOpen {
  from {
    opacity: 0;
    transform: perspective(1000px) rotateY(-8deg) translateX(-20px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: perspective(1000px) rotateY(0deg) translateX(0) scale(1);
  }
}

/* Paper grain texture */
.container::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.88' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
  opacity: 0.8;
  pointer-events: none;
  z-index: 0;
}

/* Ruled lines — they run behind ALL content */
.container::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: repeating-linear-gradient(
    transparent 0px,
    transparent calc(var(--rule-h) - 1px),
    var(--rule) calc(var(--rule-h) - 1px),
    var(--rule) var(--rule-h)
  );
  background-size: 100% var(--rule-h);
  /* Offset so first rule aligns with text baseline */
  background-position: 0 calc(var(--page-pad-v) + 30px);
  pointer-events: none;
  z-index: 1;
}

/* Red margin vertical line */
.container > *:first-child::before,
.container .margin-rule {
  display: none; /* handled by box-shadow trick below */
}

/* Inject red margin line via box-shadow on the container */
.container {
  box-shadow:
    inset 60px 0 0 -58px var(--red-margin),   /* red margin line */
    -6px 0  16px rgba(0,0,0,0.45),
     0  8px 32px rgba(0,0,0,0.55),
     0 24px 64px rgba(0,0,0,0.45),
     0 48px 80px rgba(0,0,0,0.25),
    inset 0 0 0 1px rgba(255,255,255,0.22);
}

/* All direct children sit above the paper grain & ruled lines */
.container > * {
  position: relative;
  z-index: 2;
}

/* ─── TOP LEATHER COVER STRIP ─── */
.container .leather-top {
  display: none; /* We'll fake it with a pseudo on body */
}

/* Leather top cover: thin strip above the page */
body > .container {
  margin-top: 0;
}

/* ═══════════════════════════════════════════════════════════
   TITLE — "Dear Diary" heading area
═══════════════════════════════════════════════════════════ */
.title {
  font-family: var(--font-scrawl);
  font-size: 38px;
  font-weight: 400;
  text-align: left;
  margin-bottom: 28px;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.5px;
  /* Subtly under the margin line */
  padding-left: 4px;
  border-bottom: 1.5px solid var(--paper-edge);
  padding-bottom: 14px;
}

/* Decorative — small date stamp beside the title */
.title::after {
  content: '';
  display: block;
  height: 1px;
  background: var(--gold-dim);
  margin-top: 8px;
  width: 40%;
}

/* ═══════════════════════════════════════════════════════════
   FORM GROUPS — each feels like a section of the journal
═══════════════════════════════════════════════════════════ */
.form-group {
  margin-bottom: 28px;
  position: relative;
}

.form-group label {
  display: block;
  font-family: var(--font-formal);
  font-style: italic;
  font-size: 13px;
  color: var(--ink-ghost);
  letter-spacing: 1px;
  text-transform: lowercase;
  margin-bottom: 8px;
}

/* ─── DATE INPUT ─── */
.date-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--paper-edge);
  border-radius: 0;
  padding: 8px 4px;
  font-family: var(--font-hand);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.3s;
  /* Align with ruled lines */
  line-height: var(--rule-h);
}

.date-input:focus {
  outline: none;
  border-bottom-color: var(--gold);
  box-shadow: none;
  background: transparent;
}

/* Custom calendar icon tint */
.date-input::-webkit-calendar-picker-indicator {
  filter: opacity(0.3) sepia(1) hue-rotate(10deg);
  cursor: pointer;
}

/* ═══════════════════════════════════════════════════════════
   MOOD SECTION — feels like stickers / stamps
═══════════════════════════════════════════════════════════ */
.mood-section label {
  font-family: var(--font-formal);
  font-style: italic;
  font-size: 13px;
  color: var(--ink-ghost);
  letter-spacing: 1px;
  display: block;
  margin-bottom: 14px;
}

.mood-container {
  display: flex;
  gap: 6px;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-bottom: 10px;
  padding: 14px 0 10px;
  border-top: 1px dashed var(--paper-edge);
  border-bottom: 1px dashed var(--paper-edge);
}

.mood-icon {
  cursor: pointer;
  font-size: 2rem;
  margin: 0;
  padding: 8px 10px;
  border-radius: 50%;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.2s;
  line-height: 1;
  position: relative;
}

.mood-icon:hover {
  transform: scale(1.25) translateY(-3px);
  background: rgba(0,0,0,0.04);
}

.mood-icon.active {
  transform: scale(1.35) translateY(-4px);
  background: rgba(201,168,76,0.14);
  /* Ink stamp ring */
  box-shadow: 0 0 0 2px var(--gold-dim), 0 4px 12px rgba(0,0,0,0.15);
  filter: none;
}

/* Tiny label under active mood — like a handwritten note */
.mood-icon.active::after {
  content: '✓';
  position: absolute;
  bottom: -2px;
  right: -2px;
  font-size: 10px;
  font-family: var(--font-hand);
  color: var(--gold);
  font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════
   TEXT INPUTS — feel like writing directly on the page
═══════════════════════════════════════════════════════════ */
.text-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--paper-edge);
  border-radius: 0;
  padding: 8px 4px;
  font-family: var(--font-hand);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  resize: none;
  min-height: 50px;
  transition: border-color 0.3s;
  line-height: var(--rule-h);
  /* Text snaps to ruled lines */
  background-image: repeating-linear-gradient(
    transparent 0px,
    transparent calc(var(--rule-h) - 1px),
    rgba(0,0,0,0.04) calc(var(--rule-h) - 1px),
    rgba(0,0,0,0.04) var(--rule-h)
  );
}

.text-input:focus {
  outline: none;
  border-bottom-color: var(--ink-fade);
  box-shadow: none;
}

.text-input::placeholder {
  font-family: var(--font-formal);
  font-style: italic;
  font-size: 16px;
  color: var(--ink-ghost);
  opacity: 0.7;
}

/* ─── MAIN TEXTAREA — the heart of the diary ─── */
.textarea-large {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 10px 4px;
  min-height: 280px;
  font-family: var(--font-hand);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  line-height: var(--rule-h);
  /* Each line of text sits exactly on a rule */
  background-image: repeating-linear-gradient(
    transparent 0px,
    transparent calc(var(--rule-h) - 1px),
    rgba(0,0,0,0.05) calc(var(--rule-h) - 1px),
    rgba(0,0,0,0.05) var(--rule-h)
  );
  background-position: 0 10px;
  width: 100%;
  resize: none;
  border-bottom: 1.5px solid var(--paper-edge);
  transition: border-color 0.3s;
  letter-spacing: 0.2px;
}

.textarea-large:focus {
  outline: none;
  border-bottom-color: var(--ink-fade);
  box-shadow: none;
}

.textarea-large::placeholder {
  font-family: var(--font-formal);
  font-style: italic;
  font-size: 17px;
  color: var(--ink-ghost);
  opacity: 0.65;
  line-height: 1.8;
}

/* ─── VOICE BUTTON — like a wax stamp ─── */
.voice-btn {
  position: absolute;
  right: 0;
  top: 30px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #6aaf6e, #3a7d3e);
  border: none;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.15);
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.25s;
  z-index: 10;
  color: white;
}

.voice-btn:hover {
  transform: scale(1.12) translateY(-1px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}

.voice-btn.listening {
  background: radial-gradient(circle at 40% 35%, #e05555, #8b1a1a);
  animation: voicePulse 1.4s ease-in-out infinite;
}

@keyframes voicePulse {
  0%, 100% { box-shadow: 0 0 0 0   rgba(139,26,26,0.6), 0 3px 10px rgba(0,0,0,0.25); }
  50%       { box-shadow: 0 0 0 14px rgba(139,26,26,0),   0 3px 10px rgba(0,0,0,0.25); }
}

.voice-status {
  margin-top: 8px;
  font-family: var(--font-formal);
  font-style: italic;
  font-size: 12px;
  color: var(--ink-ghost);
  min-height: 18px;
  letter-spacing: 0.3px;
}

/* ═══════════════════════════════════════════════════════════
   BUTTON GROUP — save / cancel feel like wax seals
═══════════════════════════════════════════════════════════ */
.button-group {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--paper-edge);
}

button {
  font-family: var(--font-hand);
  font-size: 20px;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  padding: 11px 30px;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.25s;
  letter-spacing: 0.2px;
  position: relative;
  overflow: hidden;
}

/* Ripple sheen on hover */
button::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.15) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.4s ease;
}
button:hover::after { transform: translateX(100%); }

.btn-cancel {
  background: linear-gradient(135deg, #c0392b, #922b21);
  color: #faf3e0;
  box-shadow: 0 4px 14px rgba(139,26,26,0.35), inset 0 1px 0 rgba(255,255,255,0.1);
}
.btn-cancel:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 24px rgba(139,26,26,0.45);
}

.btn-save {
  background: radial-gradient(ellipse at 40% 30%, var(--leather-dk), #1a0d05);
  color: var(--gold);
  border: 1px solid var(--gold-dim);
  box-shadow: 0 4px 14px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.06);
}
.btn-save:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 28px rgba(0,0,0,0.5);
  border-color: var(--gold);
}

/* ═══════════════════════════════════════════════════════════
   BUDGET / TRANSACTION SECTION
   — feels like a handdrawn table pasted into the diary
═══════════════════════════════════════════════════════════ */
.transaction-card {
  background: var(--paper-warm);
  border: 1px solid var(--paper-edge);
  border-left: 3px solid var(--gold-dim);
  border-radius: 3px;
  padding: 22px 20px;
  margin-top: 28px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

/* Tape strip on top of transaction card */
.transaction-card::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%) rotate(-0.8deg);
  width: 70px; height: 18px;
  background: rgba(255,240,160,0.55);
  border: 1px solid rgba(220,195,110,0.4);
  border-radius: 2px;
  z-index: 5;
}

/* Ruled lines inside transaction card */
.transaction-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    transparent 0px, transparent 27px,
    rgba(0,0,0,0.045) 27px, rgba(0,0,0,0.045) 28px
  );
  pointer-events: none;
}

.transaction-card > * { position: relative; z-index: 2; }

.budget-grid {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.input-col {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.input-col label {
  font-family: var(--font-formal);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-ghost);
  letter-spacing: 0.8px;
  text-transform: lowercase;
  font-weight: 400;
}

.input-col.grow { flex-grow: 1; }
.input-col.fixed-width { width: 130px; flex-shrink: 0; }

/* Budget inputs: transparent, ruled-line style */
.modern-input {
  width: 100%;
  padding: 8px 4px;
  border: none;
  border-bottom: 1.5px solid var(--paper-edge);
  border-radius: 0;
  background: transparent;
  font-family: var(--font-hand);
  font-size: 19px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.25s;
}

.modern-input:focus {
  border-bottom-color: var(--gold);
  background: transparent;
  box-shadow: none;
}

.modern-input::placeholder {
  font-family: var(--font-formal);
  font-style: italic;
  font-size: 13px;
  color: var(--ink-ghost);
  opacity: 0.6;
}

/* Type / category select */
.modern-input[type="select"],
select.modern-input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23b8a888'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 6px center;
  padding-right: 22px;
}

.btn-add-budget {
  background: radial-gradient(ellipse at 40% 30%, var(--leather-dk), #1a0d05);
  color: var(--gold);
  border: 1px solid var(--gold-dim);
  padding: 9px 22px;
  border-radius: 50px;
  font-family: var(--font-hand);
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  height: 40px;
  display: flex;
  align-items: center;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(0,0,0,0.3);
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.25s;
}
.btn-add-budget:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  border-color: var(--gold);
}

.btn-add-row {
  background: transparent;
  color: var(--ink-fade);
  border: 1.5px dashed var(--paper-edge);
  padding: 10px;
  width: 100%;
  border-radius: 4px;
  margin-top: 14px;
  cursor: pointer;
  font-family: var(--font-hand);
  font-size: 18px;
  font-weight: 600;
  transition: border-color 0.25s, color 0.25s, background 0.25s;
  letter-spacing: 0.3px;
}
.btn-add-row:hover {
  border-color: var(--gold);
  color: var(--ink);
  background: rgba(201,168,76,0.06);
}

/* ═══════════════════════════════════════════════════════════
   PAGE NUMBER + DECORATIVE FOOTER
═══════════════════════════════════════════════════════════ */
.container .page-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 36px;
  padding-top: 16px;
  border-top: 1px solid var(--paper-edge);
  color: var(--ink-ghost);
}

/* We simulate a page footer via a pseudo on button-group if no .page-foot exists */
.button-group::before {
  content: '— Soulary —';
  position: absolute;
  left: 0;
  font-family: var(--font-formal);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-ghost);
  letter-spacing: 2px;
  top: 50%;
  transform: translateY(-50%);
}
.button-group { position: relative; }

/* ═══════════════════════════════════════════════════════════
   AMBIENT CORNER FOLDS — physical realism
═══════════════════════════════════════════════════════════ */
.container .corner-fold-tr {
  display: none;
}


/* Inject corner fold with a layered box shadow illusion */
.container {
  /* fold shadow at top-right corner */
  background-image:
    /* corner fold triangle */
    linear-gradient(
      225deg,
      var(--paper-crease) 0px, var(--paper-crease) 28px,
      transparent 28px
    );
  background-position: top right;
  background-repeat: no-repeat;
  background-size: 36px 36px;
}

/* ═══════════════════════════════════════════════════════════
   RIBBON BOOKMARK — top right
═══════════════════════════════════════════════════════════ */

/* Bookmark ribbon via an isolated element — if .bookmark exists */
.bookmark {
  position: absolute;
  top: -24px;
  right: 52px;
  width: 18px;
  height: 180px;
  background: linear-gradient(to bottom, var(--red-wax), #5c1010);
  border-radius: 0 0 9px 9px;
  z-index: 20;
  box-shadow: 2px 0 8px rgba(0,0,0,0.4);
}

/* ═══════════════════════════════════════════════════════════
   SCROLLBAR — aged leather feel
═══════════════════════════════════════════════════════════ */
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: var(--desk-dark); }
::-webkit-scrollbar-thumb { background: var(--leather); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--leather-dk); }

/* ═══════════════════════════════════════════════════════════
   FORM REVEAL ANIMATION — entries appear like ink drying
═══════════════════════════════════════════════════════════ */
.form-group:nth-child(1) { animation: inkDry 0.5s ease both 0.2s; }
.form-group:nth-child(2) { animation: inkDry 0.5s ease both 0.35s; }
.form-group:nth-child(3) { animation: inkDry 0.5s ease both 0.5s; }
.form-group:nth-child(4) { animation: inkDry 0.5s ease both 0.65s; }
.form-group:nth-child(5) { animation: inkDry 0.5s ease both 0.8s; }
.form-group:nth-child(6) { animation: inkDry 0.5s ease both 0.95s; }
.form-group:nth-child(7) { animation: inkDry 0.5s ease both 1.1s; }
.form-group:nth-child(8) { animation: inkDry 0.5s ease both 1.25s; }
.mood-section            { animation: inkDry 0.5s ease both 0.42s; }
.button-group            { animation: inkDry 0.5s ease both 1.4s; }
.transaction-card        { animation: inkDry 0.5s ease both 0.75s; }
.title                   { animation: inkDry 0.6s ease both 0.1s; }

@keyframes inkDry {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media (max-width: 720px) {
  :root {
    --page-pad-left:  44px;
    --page-pad-right: 28px;
    --page-pad-v:     36px;
  }

  body { padding: 24px 10px 60px; }

  .title { font-size: 30px; }

  .mood-icon { font-size: 1.7rem; padding: 6px 8px; }

  .text-input,
  .date-input,
  .textarea-large { font-size: 20px; }

  .button-group { justify-content: stretch; flex-direction: column; }
  button { width: 100%; }

  .budget-grid { flex-direction: column; }
  .input-col.fixed-width { width: 100%; }
}

@media (max-width: 420px) {
  :root { --page-pad-left: 28px; --page-pad-right: 18px; }
  .title { font-size: 26px; }
  .mood-icon { font-size: 1.5rem; padding: 5px 6px; }
  .container { border-left-width: 7px; }
}