/* ==========================================================================
   TEDUH - PERSONAL FINANCE APP STYLESHEET (SOFT BLUE PASTEL THEME)
   ========================================================================== */

:root {
  /* Palet Warna Soft Blue */
  --primary: #5B8FB9;
  --primary-dark: #43749C;
  --primary-deep: #1A334B;
  --primary-light: #DCEBF7;
  --primary-tint: #EBF3FA;
  --primary-subtle: #F2F7FB;

  --bg-app: #F4F8FB;
  --bg-card: #FFFFFF;
  --bg-input: #FFFFFF;

  --text-main: #1A3047;
  --text-muted: #647C94;
  --text-light: #89A2BA;
  --text-inverse: #FFFFFF;

  --border-light: #DEE8F0;
  --border-card: #D0DFEC;

  --color-income: #2B8A72;
  --color-expense: #D9534F;
  --color-danger: #D94848;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(26, 49, 71, 0.04);
  --shadow-md: 0 8px 24px rgba(26, 49, 71, 0.08);
  --shadow-lg: 0 16px 40px rgba(26, 49, 71, 0.12);
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

body {
  font-family: var(--font-family);
  background-color: #E2ECF4;
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Container Wrapper simulating mobile view or full width on phone */
.phone-viewport {
  width: 100%;
  max-width: 440px;
  min-height: 100vh;
  background-color: var(--bg-app);
  box-shadow: 0 0 45px rgba(23, 44, 65, 0.12);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  transition: all 0.3s ease;
}

@media (min-width: 500px) {
  body {
    padding: 24px 0;
  }
  .phone-viewport {
    min-height: 880px;
    height: auto;
    border-radius: 36px;
    overflow: hidden;
  }
}

/* Screen Transitions */
.app-screen {
  display: none;
  width: 100%;
  flex-direction: column;
  flex: 1;
  padding: 24px 20px 96px 20px;
  animation: fadeIn 0.25s ease-out forwards;
}

.app-screen.is-active {
  display: flex;
}

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

/* ==========================================================================
   1. LOGIN SCREEN
   ========================================================================== */
#screenLogin {
  padding: 36px 24px;
  background-color: var(--bg-app);
}

.login-brand-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.login-brand-top.clean-logo-hero {
  justify-content: center;
  gap: 14px;
  margin-top: 48px;
  margin-bottom: 44px;
}

.clean-logo-hero .brand-badge-icon {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(91, 143, 185, 0.4);
}

.clean-logo-hero .brand-badge-text {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.8px;
}

.brand-badge-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 12px rgba(91, 143, 185, 0.35);
}

.brand-badge-text {
  font-size: 26px;
  font-weight: 800;
  color: var(--primary-deep);
  letter-spacing: -0.5px;
}

.login-illustration-box {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 12px 0 28px 0;
}

.login-svg-art {
  max-width: 250px;
  height: auto;
}

.login-header-group {
  margin-bottom: 28px;
}

.login-title {
  font-size: 30px;
  font-weight: 700;
  color: var(--primary-deep);
  line-height: 1.25;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.login-subtitle {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.55;
}

.form-group {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-deep);
}

.input-pill-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 0 16px;
  height: 54px;
  transition: all 0.2s ease;
}

.input-pill-wrapper:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(91, 143, 185, 0.2);
}

.input-icon-lead {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  margin-right: 12px;
}

.input-pill-field {
  width: 100%;
  border: none;
  outline: none;
  font-size: 15px;
  font-family: inherit;
  color: var(--text-main);
  background: transparent;
}

.input-icon-trail {
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 4px;
}

.login-extra-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
  margin-bottom: 26px;
}

.link-forgot {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--primary-dark);
  text-decoration: none;
  cursor: pointer;
}

.btn-primary-action {
  width: 100%;
  height: 54px;
  background-color: var(--primary);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-lg);
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 20px rgba(91, 143, 185, 0.35);
  transition: all 0.2s ease;
}

.btn-primary-action:hover {
  background-color: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-primary-action:active {
  transform: translateY(1px);
}

.demo-account-hint {
  margin-top: 20px;
  padding: 12px 16px;
  background: #E8F1F8;
  border-radius: var(--radius-md);
  font-size: 12.5px;
  color: var(--primary-deep);
  line-height: 1.45;
  text-align: center;
}

/* ==========================================================================
   2. APP HEADER & USER PROFILE (DENGAN TOMBOL LOGOUT)
   ========================================================================== */
.top-app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.header-greeting-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.header-date-badge {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.header-user-heading {
  font-size: 23px;
  font-weight: 700;
  color: var(--primary-deep);
}

.header-actions-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Tombol Logout Cepat di Header */
.btn-header-logout {
  background: #FFFFFF;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 7px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--color-danger);
  font-size: 12.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.btn-header-logout:hover {
  background: #FDF1F1;
  border-color: #F7C6C6;
  transform: translateY(-1px);
}

.btn-header-logout:active {
  transform: translateY(1px);
}

/* Avatar Profil Pengguna */
.user-avatar-pill {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background-color: var(--primary-light);
  color: var(--primary-deep);
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 2px solid #FFFFFF;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease;
}

.user-avatar-pill:hover {
  transform: scale(1.05);
}

/* ==========================================================================
   3. SISA SALDO CARD (BERANDA)
   ========================================================================== */
.balance-overview-card {
  background-color: var(--primary-light);
  border-radius: var(--radius-xl);
  padding: 22px 20px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.balance-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.balance-label {
  font-size: 14px;
  font-weight: 500;
  color: #3B5F7D;
}

.month-selector-badge {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-full);
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  color: #264A69;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.balance-big-amount {
  font-size: 34px;
  font-weight: 800;
  color: var(--primary-deep);
  letter-spacing: -0.8px;
  margin-bottom: 18px;
}

.balance-card-divider {
  height: 1px;
  background-color: rgba(59, 95, 125, 0.15);
  margin-bottom: 16px;
}

.balance-dual-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.stat-item-block {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.stat-item-title {
  font-size: 12.5px;
  font-weight: 600;
  color: #4A6E8C;
  display: flex;
  align-items: center;
  gap: 4px;
}

.stat-item-val {
  font-size: 17.5px;
  font-weight: 700;
  color: var(--primary-deep);
}

/* Quick Action Buttons (+ Pemasukan / - Pengeluaran) */
.quick-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.btn-quick-action {
  background: #FFFFFF;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  color: var(--primary-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.btn-quick-action:hover {
  border-color: var(--primary);
  background-color: #F8FBFE;
  transform: translateY(-1px);
}

/* ==========================================================================
   4. BUDGET HARI INI CARD (BERANDA)
   ========================================================================== */
.budget-summary-widget {
  background: #FFFFFF;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 20px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}

.widget-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.widget-main-title {
  font-size: 17.5px;
  font-weight: 700;
  color: var(--primary-deep);
}

.widget-link-action {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  cursor: pointer;
}

.widget-amount-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
}

.widget-highlight-amount {
  font-size: 27px;
  font-weight: 800;
  color: var(--primary-deep);
}

.widget-limit-muted {
  font-size: 14px;
  color: var(--text-muted);
}

.linear-track-wrap {
  width: 100%;
  height: 10px;
  background-color: #DEE8F0;
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 12px;
}

.linear-fill-bar {
  height: 100%;
  background-color: var(--primary-deep);
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}

.budget-status-tip {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  color: #2F5979;
}

.budget-status-tip.is-overlimit {
  color: var(--color-danger);
}

/* ==========================================================================
   5. TRANSAKSI TERBARU & DAFTAR TRANSAKSI (DENGAN AKSI CRUD EDIT/HAPUS)
   ========================================================================== */
.section-headline-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.section-headline {
  font-size: 19px;
  font-weight: 700;
  color: var(--primary-deep);
}

.date-group-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 14px 0 8px 2px;
}

.transactions-list-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.transaction-entry-card {
  background: #FFFFFF;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
}

.transaction-entry-card:hover {
  transform: translateY(-1px);
  border-color: var(--primary);
}

.tx-left-pack {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
}

.tx-category-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background-color: #F0F5FA;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3F6F94;
}

.tx-details-pack {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.tx-name-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary-deep);
}

.tx-meta-text {
  font-size: 12.5px;
  color: var(--text-muted);
}

.tx-right-pack {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tx-amount-text {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text-main);
  text-align: right;
}

.tx-amount-text.is-income {
  color: var(--color-income);
}

/* Tombol Aksi CRUD Transaksi (Edit & Hapus Cepat) */
.tx-crud-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-tx-action {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #F4F8FB;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-tx-action:hover {
  background: var(--primary-light);
  color: var(--primary-deep);
  border-color: var(--primary);
}

.btn-tx-action.is-delete:hover {
  background: #FEECEC;
  color: var(--color-danger);
  border-color: #F8B4B4;
}

/* ==========================================================================
   6. BUDGET SCREEN
   ========================================================================== */
.budget-top-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
}

.budget-page-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--primary-deep);
  margin-bottom: 3px;
}

.budget-page-sub {
  font-size: 13.5px;
  color: var(--text-muted);
}

.btn-icon-round {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  background: #FFFFFF;
  border: 1.5px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-deep);
  cursor: pointer;
}

.date-pill-nav {
  background: #FFFFFF;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--primary-deep);
  box-shadow: var(--shadow-sm);
}

.gauge-main-card {
  background: #FFFFFF;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 24px 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gauge-center-container {
  position: relative;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.gauge-svg-ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.gauge-center-content {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.gauge-muted-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.gauge-spent-val {
  font-size: 26px;
  font-weight: 800;
  color: var(--primary-deep);
  margin-bottom: 4px;
}

.gauge-percent-pill {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-dark);
}

.gauge-dual-footer {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.gauge-footer-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gauge-footer-col.is-right {
  text-align: right;
}

.gauge-footer-label {
  font-size: 12.5px;
  color: var(--text-muted);
}

.gauge-footer-val {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-deep);
}

.gauge-footer-val.is-green {
  color: #3F75A2;
}

.expense-categories-card {
  background: #FFFFFF;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 18px 20px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}

.expense-cat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #F0F5FA;
}

.expense-cat-row:last-child {
  border-bottom: none;
}

.expense-cat-left {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--primary-deep);
}

.expense-cat-val {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-deep);
}

.leaf-motivation-banner {
  background-color: var(--primary-tint);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.leaf-banner-text {
  font-size: 13.5px;
  color: #244C6E;
  line-height: 1.45;
}

.btn-outline-card {
  width: 100%;
  background: #FFFFFF;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 15px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  color: var(--primary-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.btn-outline-card:hover {
  border-color: var(--primary);
  background-color: #F8FBFE;
}

/* ==========================================================================
   7. HISTORI TRANSAKSI SCREEN
   ========================================================================== */
.history-filters-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.history-month-dropdown {
  flex: 1;
  background: #FFFFFF;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-deep);
  cursor: pointer;
}

.history-dual-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}

.history-summary-box {
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.history-summary-box.is-income-box {
  background-color: var(--primary-tint);
}

.history-summary-box.is-expense-box {
  background-color: #FFFFFF;
  border: 1.5px solid var(--border-light);
}

.hist-box-label {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
}

.hist-box-amount {
  font-size: 17.5px;
  font-weight: 800;
  color: var(--primary-deep);
}

.hist-box-amount.is-teal {
  color: var(--primary-dark);
}

.filter-segments-bar {
  display: flex;
  align-items: center;
  background: #E5EFF7;
  border-radius: var(--radius-full);
  padding: 4px;
  gap: 4px;
  margin-bottom: 18px;
}

.filter-segment-pill {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px 12px;
  border-radius: var(--radius-full);
  font-size: 13.5px;
  font-weight: 600;
  font-family: inherit;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.filter-segment-pill.is-active {
  background-color: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 2px 6px rgba(91, 143, 185, 0.35);
}

.history-meta-subhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-weight: 500;
}

.search-input-wrapper {
  margin-bottom: 16px;
  display: none;
}

.search-input-wrapper.is-open {
  display: block;
}

.history-end-note {
  text-align: center;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 24px;
  padding-bottom: 12px;
}

/* ==========================================================================
   8. TAMBAH & EDIT TRANSAKSI (MODAL / SCREEN)
   ========================================================================== */
#screenAddTransaction {
  padding-top: 18px;
}

.add-tx-top-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.btn-back-round {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: #FFFFFF;
  border: 1.5px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--primary-deep);
}

.add-tx-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-deep);
}

.segmented-toggle-row {
  display: flex;
  background: #E5EFF7;
  border-radius: var(--radius-full);
  padding: 4px;
  gap: 4px;
  margin-bottom: 20px;
}

.toggle-segment-btn {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.toggle-segment-btn.is-active {
  background: #FFFFFF;
  color: var(--primary-deep);
  box-shadow: var(--shadow-sm);
}

.amount-hero-card {
  background-color: var(--primary-tint);
  border-radius: var(--radius-xl);
  padding: 22px 20px;
  margin-bottom: 22px;
}

.amount-hero-label {
  font-size: 13.5px;
  font-weight: 500;
  color: #345877;
  margin-bottom: 8px;
}

.amount-hero-input {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 34px;
  font-weight: 800;
  color: var(--primary-deep);
  font-family: inherit;
  outline: none;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.amount-hero-draft-hint {
  font-size: 12.5px;
  color: #4B7396;
  display: flex;
  align-items: center;
  gap: 5px;
}

.category-selection-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.category-selection-grid.is-income-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.category-select-pill {
  background: #FFFFFF;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 14px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.category-select-pill.is-active {
  border-color: var(--primary);
  background-color: var(--primary-tint);
}

.cat-pill-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background-color: #F0F5FA;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #386084;
}

.category-select-pill.is-active .cat-pill-icon {
  background-color: #DDEBF6;
  color: var(--primary-dark);
}

.cat-pill-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--primary-deep);
  text-align: center;
}

.simulation-footer-card {
  background: #FFFFFF;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sim-row {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
}

.sim-row.is-next {
  color: var(--primary-dark);
  font-weight: 700;
}

/* Kotak Simulasi Budget Pengeluaran */
.expense-budget-sim-box {
  background-color: var(--primary-tint);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  margin-bottom: 22px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.sim-icon-lead {
  color: #396D98;
  display: flex;
  align-items: center;
  margin-top: 2px;
}

.sim-content-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sim-head-title {
  font-size: 14px;
  font-weight: 700;
  color: #275276;
}

.sim-sub-detail {
  font-size: 12.5px;
  color: #557796;
  line-height: 1.45;
}

.add-tx-bottom-hint {
  text-align: center;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 14px;
  margin-bottom: 24px;
}

/* ==========================================================================
   9. BOTTOM NAVIGATION BAR
   ========================================================================== */
.bottom-nav-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 440px;
  height: 72px;
  background: #FFFFFF;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 100;
  padding: 0 16px;
}

@media (min-width: 500px) {
  .bottom-nav-bar {
    border-bottom-left-radius: 36px;
    border-bottom-right-radius: 36px;
  }
}

.nav-tab-btn {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
}

.nav-tab-btn.is-active {
  color: var(--primary-deep);
}

.nav-tab-btn.is-active .nav-icon-pill {
  background-color: var(--primary-light);
  padding: 4px 18px;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   10. MODAL DIALOGS (LOGOUT, SET BUDGET, EDIT CRUD, DELETE CRUD)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(18, 33, 48, 0.45);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-overlay.is-visible {
  display: flex;
}

.modal-sheet {
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 400px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 26px 22px;
  box-shadow: var(--shadow-lg);
  animation: modalPop 0.25s ease-out;
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.modal-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-deep);
}

.modal-close-icon {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-muted);
  cursor: pointer;
}

.modal-body-text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 22px;
}

.user-profile-summary-box {
  background-color: #F0F5FA;
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.modal-btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.modal-btn-row.is-crud-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.btn-secondary {
  height: 48px;
  background: #EFF4F9;
  border: none;
  border-radius: var(--radius-md);
  font-size: 14.5px;
  font-weight: 600;
  font-family: inherit;
  color: var(--primary-deep);
  cursor: pointer;
  padding: 0 16px;
}

.btn-secondary:hover {
  background: #E3ECF5;
}

.btn-danger-confirm {
  height: 48px;
  background: var(--color-danger);
  border: none;
  border-radius: var(--radius-md);
  font-size: 14.5px;
  font-weight: 600;
  font-family: inherit;
  color: #FFFFFF;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 16px;
}

.btn-danger-confirm:hover {
  background: #C83B3B;
}

.btn-outline-danger {
  height: 48px;
  background: #FFF5F5;
  border: 1.5px solid #F8B4B4;
  border-radius: var(--radius-md);
  color: var(--color-danger);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 16px;
  transition: all 0.2s ease;
}

.btn-outline-danger:hover {
  background: #FEECEC;
}

.empty-state-wrap {
  text-align: center;
  padding: 32px 16px;
  background: #FFFFFF;
  border: 1.5px dashed var(--border-light);
  border-radius: var(--radius-lg);
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.6;
}

.empty-state-wrap strong {
  color: var(--primary-deep);
}

/* Toast Notification */
.toast-notice {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: var(--primary-deep);
  color: #FFFFFF;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 300;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  align-items: center;
  gap: 8px;
}

.toast-notice.is-active {
  transform: translateX(-50%) translateY(0);
}
