/* ============================================================
   SAS Plantation EMS — Application Stylesheet
   Design: plantation-green + aged-gold, structured data UI
============================================================ */

/* ============================================================
   1. DESIGN TOKENS
============================================================ */
:root {
  /* Brand palette */
  --green-deep:    #1a3d2b;
  --green-mid:     #2e6b46;
  --green-light:   #4a9e63;
  --green-pale:    #e8f5ec;
  --gold:          #c8a84b;
  --gold-pale:     #fdf6e3;

  /* Semantic */
  --success:       #1d8348;
  --success-bg:    #eafaf1;
  --warning:       #b7770d;
  --warning-bg:    #fef9e7;
  --danger:        #c0392b;
  --danger-bg:     #fdedec;
  --info:          #1a6fa0;
  --info-bg:       #ebf5fb;

  /* Neutrals */
  --bg:            #f4f6f5;
  --surface:       #ffffff;
  --surface-2:     #f9fafb;
  --border:        #e2e6ea;
  --border-2:      #d1d5db;
  --text:          #1a2332;
  --text-mid:      #4b5563;
  --text-muted:    #8b95a1;

  /* Layout */
  --sidebar-w:     256px;
  --topbar-h:      60px;
  --radius:        10px;
  --radius-sm:     6px;
  --radius-lg:     14px;
  --shadow:        0 1px 4px rgba(0,0,0,.07), 0 4px 12px rgba(0,0,0,.05);
  --shadow-lg:     0 8px 32px rgba(0,0,0,.10);

  /* Typography */
  --font:          'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', sans-serif;
  --font-mono:     'Cascadia Code', 'Fira Code', 'Courier New', monospace;
}

/* Dark theme overrides */
[data-theme="dark"] {
  --bg:            #111b17;
  --surface:       #1c2b22;
  --surface-2:     #162219;
  --border:        #2d3f33;
  --border-2:      #3a5040;
  --text:          #e8ede9;
  --text-mid:      #a8b8ac;
  --text-muted:    #6b8070;
  --green-pale:    #1c3024;
  --gold-pale:     #2a2510;
}

/* ============================================================
   2. RESET & BASE
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: .9rem;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green-mid); text-decoration: none; }
a:hover { color: var(--green-deep); }

/* ============================================================
   3. SIDEBAR
============================================================ */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: var(--sidebar-w);
  background: var(--green-deep);
  color: #e8ede9;
  display: flex;
  flex-direction: column;
  z-index: 400;
  transition: transform .25s cubic-bezier(.4,0,.2,1);
  overflow: hidden;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  min-height: var(--topbar-h);
  flex-shrink: 0;
}

.brand-icon {
  width: 36px;
  height: 36px;
  background: var(--gold);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: .85rem;
  color: var(--green-deep);
  flex-shrink: 0;
  letter-spacing: -0.5px;
}

.brand-text strong { display: block; font-size: .85rem; line-height: 1.2; }
.brand-text small  { font-size: .7rem; opacity: .55; }

.sidebar-close {
  margin-left: auto;
  background: none;
  border: none;
  color: rgba(255,255,255,.6);
  font-size: 1.1rem;
  cursor: pointer;
  padding: .25rem;
  line-height: 1;
}

/* User chip */
.sidebar-user {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .85rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
  flex-shrink: 0;
}

.sidebar-avatar,
.sidebar-avatar-placeholder {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}

.sidebar-avatar-placeholder {
  background: var(--gold);
  color: var(--green-deep);
  font-size: .75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-user-info strong { display: block; font-size: .8rem; line-height: 1.2; }
.sidebar-user-info small  { font-size: .7rem; opacity: .55; }

/* Nav links */
.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: .75rem 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.1) transparent;
}

.nav-section-label {
  font-size: .65rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  padding: .75rem 1.25rem .25rem;
  font-weight: 600;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .5rem 1.25rem;
  color: rgba(255,255,255,.7) !important;
  font-size: .83rem;
  font-weight: 500;
  border-radius: 0;
  transition: background .15s, color .15s;
  position: relative;
}

.nav-link i { font-size: 1rem; flex-shrink: 0; }

.nav-link:hover {
  background: rgba(255,255,255,.07);
  color: #fff !important;
}

.nav-link.active {
  background: rgba(200,168,75,.18);
  color: var(--gold) !important;
  border-right: 3px solid var(--gold);
}

.badge-nav {
  margin-left: auto;
  background: var(--danger);
  color: #fff;
  font-size: .65rem;
  padding: .1rem .4rem;
  border-radius: 20px;
  line-height: 1.4;
  font-weight: 700;
}

/* Footer */
.sidebar-footer {
  border-top: 1px solid rgba(255,255,255,.07);
  padding: .5rem 0;
  flex-shrink: 0;
}

/* Mobile overlay */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 399;
  backdrop-filter: blur(2px);
}

.sidebar-overlay.active { display: block; }

/* ============================================================
   4. MAIN WRAPPER & TOPBAR
============================================================ */
.main-wrapper {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: margin-left .25s cubic-bezier(.4,0,.2,1);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 300;
  height: var(--topbar-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 0 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

.topbar-toggle {
  background: none;
  border: none;
  font-size: 1.3rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: .3rem;
  display: none; /* visible on mobile */
}

.topbar-title { flex: 1; }
.page-heading { font-size: .9rem; font-weight: 600; color: var(--text-mid); }

.topbar-actions {
  display: flex;
  align-items: center;
  gap: .5rem;
}

/* Search */
.search-wrap {
  position: relative;
}

.search-icon {
  position: absolute;
  left: .65rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: .85rem;
  pointer-events: none;
}

.search-input {
  padding: .4rem .75rem .4rem 2rem;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  font-size: .82rem;
  width: 220px;
  background: var(--surface-2);
  color: var(--text);
  transition: border-color .2s, width .25s;
  outline: none;
}

.search-input:focus {
  border-color: var(--green-mid);
  width: 280px;
  background: var(--surface);
}

.search-dropdown {
  position: absolute;
  top: calc(100% + .4rem);
  left: 0;
  right: 0;
  min-width: 320px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 500;
  max-height: 380px;
  overflow-y: auto;
}

.search-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .6rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text) !important;
  font-size: .82rem;
  transition: background .12s;
}

.search-item:hover { background: var(--green-pale); }
.search-item-type  { font-size: .68rem; font-weight: 600; text-transform: uppercase; color: var(--green-mid); min-width: 60px; }
.search-item-label { flex: 1; }
.search-item-meta  { font-size: .75rem; color: var(--text-muted); }
.search-no-result  { padding: 1rem; text-align: center; color: var(--text-muted); font-size: .82rem; }

/* Icon button */
.icon-btn {
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-mid);
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
  position: relative;
}

.icon-btn:hover { border-color: var(--green-mid); color: var(--green-mid); background: var(--green-pale); }

.notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--danger);
  color: #fff;
  font-size: .6rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border: 2px solid var(--surface);
}

/* User pill */
.user-pill {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: .25rem .75rem .25rem .25rem;
  cursor: pointer;
  font-size: .82rem;
  color: var(--text);
  transition: border-color .15s;
}

.user-pill:hover { border-color: var(--green-mid); }
.user-pill::after { display: none !important; }

.pill-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.pill-initials {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green-mid);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pill-name { font-weight: 600; font-size: .82rem; }

/* Notifications dropdown */
.notif-dropdown {
  width: 340px;
  border-radius: var(--radius);
  overflow: hidden;
}

.notif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  font-size: .82rem;
}

.notif-item {
  display: block;
  padding: .7rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: .8rem;
  color: var(--text) !important;
  transition: background .12s;
}

.notif-item:hover { background: var(--green-pale); }
.notif-item.unread { background: var(--gold-pale); }
.notif-title  { font-weight: 600; font-size: .82rem; }
.notif-msg    { color: var(--text-mid); margin-top: .1rem; }
.notif-time   { font-size: .72rem; color: var(--text-muted); margin-top: .2rem; }
.notif-empty  { padding: 1.5rem; text-align: center; color: var(--text-muted); font-size: .82rem; }
.text-brand   { color: var(--green-mid) !important; font-size: .78rem; }

/* ============================================================
   5. PAGE BODY
============================================================ */
.page-body {
  flex: 1;
  padding: 1.5rem;
}

/* ============================================================
   6. CARDS
============================================================ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}

.card-title {
  font-size: .9rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.card-body { padding: 1.25rem; }

/* ============================================================
   7. STAT CARDS
============================================================ */
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s;
}

.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.stat-icon.income   { background: var(--success-bg); color: var(--success); }
.stat-icon.expense  { background: var(--danger-bg);  color: var(--danger);  }
.stat-icon.balance  { background: var(--info-bg);    color: var(--info);    }
.stat-icon.pending  { background: var(--warning-bg); color: var(--warning); }
.stat-icon.bills    { background: var(--gold-pale);  color: var(--gold);    }
.stat-icon.savings  { background: var(--green-pale); color: var(--green-mid); }

.stat-value {
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
  letter-spacing: -.5px;
}

.stat-label {
  font-size: .75rem;
  color: var(--text-muted);
  margin-top: .2rem;
  font-weight: 500;
}

.stat-change {
  font-size: .72rem;
  margin-top: .35rem;
}

.stat-change.up   { color: var(--success); }
.stat-change.down { color: var(--danger); }

/* ============================================================
   8. TABLES
============================================================ */
.table-card { overflow: hidden; }
.table-toolbar {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  padding: .75rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.table-search {
  position: relative;
  flex: 1;
  min-width: 160px;
}

.table-search input {
  width: 100%;
  padding: .4rem .75rem .4rem 2rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .82rem;
  background: var(--surface);
  color: var(--text);
  outline: none;
  transition: border-color .2s;
}

.table-search input:focus { border-color: var(--green-mid); }

.table-search .bi { position: absolute; left: .65rem; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: .8rem; }

.table { margin: 0; color: var(--text); }
.table thead th {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border);
  padding: .65rem 1rem;
  white-space: nowrap;
  background: var(--surface-2);
}

.table thead th.sortable { cursor: pointer; user-select: none; }
.table thead th.sortable:hover { color: var(--green-mid); }
.table thead th.sort-asc::after  { content: ' \2191'; }
.table thead th.sort-desc::after { content: ' \2193'; }

.table tbody td {
  padding: .7rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: .84rem;
  vertical-align: middle;
}

.table tbody tr:hover { background: var(--surface-2); }
.table tbody tr:last-child td { border-bottom: none; }

.table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .65rem 1.25rem;
  border-top: 1px solid var(--border);
  font-size: .78rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: .5rem;
}

/* ============================================================
   9. BADGES
============================================================ */
.badge {
  font-size: .68rem;
  font-weight: 600;
  padding: .25rem .6rem;
  border-radius: 20px;
  letter-spacing: .02em;
}

.badge-category {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .75rem;
  font-weight: 500;
  padding: .2rem .6rem;
  border-radius: 20px;
  background: var(--green-pale);
  color: var(--green-deep);
}

/* ============================================================
   10. BUTTONS
============================================================ */
.btn {
  font-size: .83rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all .15s;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}

.btn-brand {
  background: var(--green-mid);
  color: #fff;
  border: none;
}

.btn-brand:hover { background: var(--green-deep); color: #fff; }

.btn-outline-brand {
  border: 1.5px solid var(--green-mid);
  color: var(--green-mid);
  background: transparent;
}

.btn-outline-brand:hover {
  background: var(--green-pale);
  color: var(--green-deep);
}

.btn-sm { font-size: .77rem; padding: .3rem .7rem; }

/* Action buttons in table rows */
.action-btns {
  display: flex;
  align-items: center;
  gap: .3rem;
}

.action-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  cursor: pointer;
  transition: all .12s;
  text-decoration: none;
}

.action-btn:hover.view   { border-color: var(--info);    color: var(--info);    background: var(--info-bg);    }
.action-btn:hover.edit   { border-color: var(--warning); color: var(--warning); background: var(--warning-bg); }
.action-btn:hover.delete { border-color: var(--danger);  color: var(--danger);  background: var(--danger-bg);  }
.action-btn:hover.approve{ border-color: var(--success); color: var(--success); background: var(--success-bg); }

/* ============================================================
   11. FORMS
============================================================ */
.form-label {
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-mid);
  margin-bottom: .35rem;
  letter-spacing: .2px;
}

.form-control, .form-select {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .55rem .85rem;
  font-size: .85rem;
  color: var(--text);
  background: var(--surface);
  transition: border-color .2s, box-shadow .2s;
}

.form-control:focus, .form-select:focus {
  border-color: var(--green-mid);
  box-shadow: 0 0 0 3px rgba(46,107,70,.1);
  outline: none;
  background: var(--surface);
}

.form-text { font-size: .75rem; color: var(--text-muted); }

.required::after {
  content: ' *';
  color: var(--danger);
  font-size: .8rem;
}

/* ============================================================
   12. PROGRESS BARS
============================================================ */
.progress {
  height: 8px;
  border-radius: 20px;
  background: var(--border);
}

.progress-bar {
  border-radius: 20px;
  transition: width .6s cubic-bezier(.4,0,.2,1);
}

.progress-bar.bg-success { background: var(--success) !important; }
.progress-bar.bg-warning { background: var(--warning) !important; }
.progress-bar.bg-danger  { background: var(--danger)  !important; }
.progress-bar.bg-brand   { background: var(--green-mid) !important; }

/* Budget progress row */
.budget-row {
  padding: .75rem 0;
  border-bottom: 1px solid var(--border);
}

.budget-row:last-child { border-bottom: none; }
.budget-name { font-size: .83rem; font-weight: 600; margin-bottom: .3rem; }
.budget-amounts { font-size: .75rem; color: var(--text-muted); margin-top: .25rem; display: flex; justify-content: space-between; }

/* ============================================================
   13. CHART CONTAINERS
============================================================ */
.chart-wrap {
  position: relative;
  width: 100%;
}

.chart-wrap canvas { max-width: 100%; }

/* ============================================================
   14. MODALS
============================================================ */
.modal-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: var(--radius) var(--radius) 0 0;
}

.modal-title { font-size: .95rem; font-weight: 700; }
.modal-footer { border-top: 1px solid var(--border); background: var(--surface-2); }
.modal-content { border: 1px solid var(--border); border-radius: var(--radius); }

/* ============================================================
   15. PAGINATION
============================================================ */
.page-link {
  color: var(--text);
  border: 1px solid var(--border);
  font-size: .8rem;
  padding: .35rem .65rem;
}

.page-link:hover { background: var(--green-pale); color: var(--green-mid); border-color: var(--green-mid); }
.page-item.active .page-link {
  background: var(--green-mid);
  border-color: var(--green-mid);
  color: #fff;
}

/* ============================================================
   16. UPLOAD ZONE
============================================================ */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  background: var(--surface-2);
}

.upload-zone:hover, .upload-zone.dragging {
  border-color: var(--green-mid);
  background: var(--green-pale);
}

.upload-zone i { font-size: 2rem; color: var(--text-muted); }
.upload-zone p { font-size: .82rem; color: var(--text-muted); margin: .5rem 0 0; }

/* ============================================================
   17. CALENDAR
============================================================ */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.cal-day-header {
  text-align: center;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: .4rem 0;
}

.cal-cell {
  min-height: 80px;
  padding: .35rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  font-size: .75rem;
}

.cal-cell.today { border-color: var(--green-mid); background: var(--green-pale); }
.cal-cell.other-month { opacity: .4; }
.cal-cell-num { font-weight: 700; font-size: .78rem; color: var(--text-muted); margin-bottom: .2rem; }

.cal-event {
  padding: .1rem .35rem;
  border-radius: 3px;
  font-size: .68rem;
  font-weight: 600;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================================
   18. ACTIVITY FEED
============================================================ */
.activity-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .65rem 0;
  border-bottom: 1px solid var(--border);
}

.activity-item:last-child { border-bottom: none; }

.activity-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--green-pale);
  color: var(--green-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  flex-shrink: 0;
}

.activity-text { font-size: .8rem; line-height: 1.4; }
.activity-time { font-size: .7rem; color: var(--text-muted); margin-top: .15rem; }

/* ============================================================
   19. RESPONSIVE
============================================================ */
@media (max-width: 1200px) {
  :root { --sidebar-w: 230px; }
}

@media (max-width: 991px) {
  .sidebar {
    transform: translateX(-100%);
    width: var(--sidebar-w);
    box-shadow: var(--shadow-lg);
  }

  .sidebar.sidebar-open { transform: translateX(0); }

  .main-wrapper { margin-left: 0; }

  .topbar-toggle { display: flex; }

  .search-input { width: 160px; }
  .search-input:focus { width: 200px; }
}

@media (max-width: 575px) {
  .page-body { padding: 1rem; }
  .search-wrap { display: none; }
  .stat-value { font-size: 1.2rem; }
  .table-toolbar { flex-direction: column; align-items: stretch; }
}

/* ============================================================
   20. DARK THEME OVERRIDES
============================================================ */
[data-theme="dark"] .table { color: var(--text); }
[data-theme="dark"] .table thead th { background: var(--surface-2); }
[data-theme="dark"] .modal-content { background: var(--surface); }
[data-theme="dark"] .dropdown-menu {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}
[data-theme="dark"] .dropdown-item { color: var(--text); }
[data-theme="dark"] .dropdown-item:hover { background: var(--surface-2); }
[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select { background: var(--surface-2); color: var(--text); border-color: var(--border); }
[data-theme="dark"] .btn-close { filter: invert(1); }

/* ============================================================
   21. UTILITY
============================================================ */
.text-income  { color: var(--success) !important; }
.text-expense { color: var(--danger)  !important; }
.text-brand   { color: var(--green-mid) !important; }
.text-gold    { color: var(--gold) !important; }

.bg-income-pale  { background: var(--success-bg) !important; }
.bg-expense-pale { background: var(--danger-bg)  !important; }

.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }

.fs-xs { font-size: .72rem; }
.fs-sm { font-size: .82rem; }

.scrollbar-thin {
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.divider-v {
  width: 1px;
  background: var(--border);
  align-self: stretch;
}

/* Fade in animation */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in-up { animation: fadeInUp .3s ease both; }
