/* ===================================================
   KhataBook - Personal Ledger CSS
   Design: Warm Saffron + Deep Navy, Baloo 2 font
   =================================================== */

:root {
  --saffron: #FF6B00;
  --saffron-light: #FF8C35;
  --saffron-pale: #FFF3E8;
  --navy: #1A2744;
  --navy-mid: #253459;
  --navy-light: #364673;
  --green: #00A86B;
  --green-light: #E6F7F2;
  --red: #E53935;
  --red-light: #FDECEA;
  --gold: #F5A623;
  --white: #FFFFFF;
  --gray-50: #FAFAFA;
  --gray-100: #F5F5F5;
  --gray-200: #EEEEEE;
  --gray-400: #BDBDBD;
  --gray-600: #757575;
  --gray-800: #424242;
  --text: #1A1A2E;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
}

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

body {
  font-family: 'Noto Sans', sans-serif;
  background: #F0F2F8;
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---- ONLINE STATUS ---- */
.online-status {
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(0, 168, 107, 0.15);
  color: #00e676;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 168, 107, 0.2);
  margin: 0 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.online-status.offline {
  background: rgba(229, 57, 53, 0.15);
  color: #ff5252;
  border-color: rgba(229, 57, 53, 0.2);
}

.online-status i {
  font-size: 0.7rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}

/* ---- NAVBAR ---- */
.navbar {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(26,39,68,0.3);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.brand-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--saffron), var(--gold));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; font-weight: 800; color: white;
  font-family: 'Baloo 2', cursive;
  box-shadow: 0 2px 8px rgba(255,107,0,0.4);
}
.brand-text { display: flex; flex-direction: column; }
.brand-name {
  font-family: 'Baloo 2', cursive;
  font-size: 1.15rem; font-weight: 800;
  color: white; line-height: 1.1;
}
.brand-sub {
  font-size: 0.65rem; color: rgba(255,255,255,0.55);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.nav-links { display: flex; align-items: center; gap: 0.5rem; }
.nav-user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 10px;
    padding-left: 15px;
    border-left: 1px solid rgba(255,255,255,0.15);
}
.user-name {
    color: rgba(255,255,255,0.9);
    font-weight: 600;
    font-size: 0.85rem;
}
.btn-logout {
    background: rgba(255,255,255,0.1);
    border: none;
    color: rgba(255,255,255,0.7);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.8rem;
}
.btn-logout:hover {
    background: #E53935;
    color: white;
    transform: scale(1.1);
}
.nav-link {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem; font-weight: 500;
  transition: all 0.2s;
  display: flex; align-items: center; gap: 0.4rem;
}
.nav-link:hover, .nav-link.active {
  color: white;
  background: rgba(255,255,255,0.12);
}
.nav-link.btn-add {
  background: linear-gradient(135deg, var(--saffron), var(--saffron-light));
  color: white;
  padding: 0.45rem 1rem;
  box-shadow: 0 2px 8px rgba(255,107,0,0.35);
}
.nav-link.btn-add:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(255,107,0,0.4); }

/* ---- MAIN ---- */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
  flex: 1;
  width: 100%;
}

/* ---- ALERTS ---- */
.alert {
  padding: 0.85rem 1.2rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: 0.9rem;
  display: flex; align-items: center; gap: 0.6rem;
  animation: slideDown 0.3s ease;
}
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.alert-success { background: var(--green-light); color: #00695C; border-left: 4px solid var(--green); }
.alert-error { background: var(--red-light); color: #C62828; border-left: 4px solid var(--red); }

/* ---- PAGE HEADER ---- */
.page-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 1.5rem; gap: 1rem; flex-wrap: wrap;
}
.page-title-area { display: flex; flex-direction: column; gap: 0.25rem; }
.back-btn {
  color: var(--gray-600); text-decoration: none;
  font-size: 0.85rem; display: flex; align-items: center; gap: 0.4rem;
  margin-bottom: 0.4rem;
  transition: color 0.2s;
}
.back-btn:hover { color: var(--saffron); }
.page-title {
  font-family: 'Baloo 2', cursive;
  font-size: 1.8rem; font-weight: 800;
  color: var(--navy); line-height: 1.1;
}
.page-subtitle { font-size: 0.88rem; color: var(--gray-600); }
.header-actions { display: flex; gap: 0.5rem; align-items: center; flex-shrink: 0; }

/* Account header */
.account-header-info { display: flex; align-items: center; gap: 1rem; }
.account-big-avatar {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--saffron), var(--gold));
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; font-weight: 800; color: white;
  font-family: 'Baloo 2', cursive;
  box-shadow: 0 4px 12px rgba(255,107,0,0.3);
  flex-shrink: 0;
}

/* ---- SUMMARY GRID ---- */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.summary-grid.small { grid-template-columns: repeat(2, 1fr); margin-bottom: 1.5rem; }
.summary-card {
  background: white;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: flex; align-items: center; gap: 1rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative; overflow: hidden;
}
.summary-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 4px; height: 100%; border-radius: 4px 0 0 4px;
}
.summary-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.summary-card.receivable::before { background: var(--green); }
.summary-card.payable::before { background: var(--red); }
.summary-card.net::before { background: var(--navy); }
.summary-card.net.positive::before { background: var(--green); }
.summary-card.net.negative::before { background: var(--red); }
.summary-card.accounts::before { background: var(--saffron); }
.card-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.receivable .card-icon { background: var(--green-light); color: var(--green); }
.payable .card-icon { background: var(--red-light); color: var(--red); }
.net .card-icon { background: #EEF0F8; color: var(--navy); }
.accounts .card-icon { background: var(--saffron-pale); color: var(--saffron); }
.card-label { font-size: 0.78rem; color: var(--gray-600); font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }
.card-amount { font-family: 'Baloo 2', cursive; font-size: 1.4rem; font-weight: 700; color: var(--navy); line-height: 1.2; }
.card-hint { font-size: 0.75rem; color: var(--gray-400); }

/* ---- SECTION HEADER ---- */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1rem; gap: 1rem; flex-wrap: wrap;
}
.section-title {
  font-family: 'Baloo 2', cursive;
  font-size: 1.2rem; font-weight: 700; color: var(--navy);
}
.section-mini-title {
  font-family: 'Baloo 2', cursive;
  font-size: 1rem; font-weight: 700; color: var(--navy);
  margin-bottom: 0.75rem;
}

/* ---- SEARCH ---- */
.search-form { display: flex; align-items: center; gap: 0.5rem; flex: 1; max-width: 360px; }
.search-box {
  position: relative; flex: 1;
}
.search-icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--gray-400); font-size: 0.85rem; }
.search-input {
  width: 100%; padding: 0.5rem 0.75rem 0.5rem 2rem;
  border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm);
  font-size: 0.88rem; transition: border-color 0.2s;
  font-family: 'Noto Sans', sans-serif;
  background: white;
}
.search-input:focus { outline: none; border-color: var(--saffron); }
.clear-search {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  color: var(--gray-400); text-decoration: none; font-size: 0.8rem;
}

/* ---- ACCOUNTS GRID ---- */
.accounts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.account-card {
  background: white; border-radius: var(--radius);
  padding: 1rem 1.25rem;
  display: flex; align-items: center; gap: 1rem;
  text-decoration: none; color: inherit;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
  border: 1.5px solid transparent;
}
.account-card:hover {
  transform: translateY(-2px); box-shadow: var(--shadow-md);
  border-color: var(--saffron-light);
}
.account-avatar {
  width: 44px; height: 44px; border-radius: 10px;
  background: linear-gradient(135deg, var(--navy-light), var(--navy-mid));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 800; color: white;
  font-family: 'Baloo 2', cursive; flex-shrink: 0;
}
.account-info { flex: 1; min-width: 0; }
.account-name { font-weight: 700; font-size: 0.98rem; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.account-phone { font-size: 0.8rem; color: var(--gray-600); display: flex; align-items: center; gap: 0.3rem; margin-top: 0.15rem; }
.account-stats { font-size: 0.75rem; color: var(--gray-400); margin-top: 0.2rem; }
.account-balance { text-align: right; flex-shrink: 0; }
.balance-amount { font-family: 'Baloo 2', cursive; font-size: 1.1rem; font-weight: 700; }
.balance-label { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.balance-positive .balance-amount { color: var(--green); }
.balance-positive .balance-label { color: var(--green); }
.balance-negative .balance-amount { color: var(--red); }
.balance-negative .balance-label { color: var(--red); }

/* ---- BALANCE BANNER ---- */
.balance-banner {
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: 2rem;
  flex-wrap: wrap;
}
.banner-receivable { background: linear-gradient(135deg, #00A86B 0%, #00C77A 100%); color: white; }
.banner-payable { background: linear-gradient(135deg, #E53935 0%, #EF5350 100%); color: white; }
.banner-label { font-size: 0.88rem; opacity: 0.85; text-transform: uppercase; letter-spacing: 0.06em; }
.banner-amount { font-family: 'Baloo 2', cursive; font-size: 2.4rem; font-weight: 800; line-height: 1.1; }
.banner-breakdown {
  flex: 1; display: flex; align-items: center; gap: 1rem;
  background: rgba(255,255,255,0.15); border-radius: var(--radius-sm);
  padding: 0.75rem 1.25rem;
}
.breakdown-item { flex: 1; }
.breakdown-label { font-size: 0.78rem; opacity: 0.8; }
.breakdown-value { font-family: 'Baloo 2', cursive; font-size: 1.2rem; font-weight: 700; }
.breakdown-divider { width: 1px; height: 40px; background: rgba(255,255,255,0.3); }

/* ---- TRANSACTION ADD SECTION ---- */
.tx-add-section {
  background: white; border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}
.tx-add-cards {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
.tx-add-card {
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  border: 2px solid transparent;
}
.credit-card { background: var(--green-light); border-color: #A5D6A7; }
.debit-card { background: var(--red-light); border-color: #FFCDD2; }
.tx-add-header {
  display: flex; align-items: center; gap: 0.5rem;
  font-weight: 700; font-size: 0.9rem;
  margin-bottom: 1rem; padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.credit-card .tx-add-header { color: var(--green); }
.debit-card .tx-add-header { color: var(--red); }

/* ---- FORMS ---- */
.form-card {
  background: white; border-radius: var(--radius);
  padding: 2rem; box-shadow: var(--shadow-md);
  max-width: 600px;
  margin: 0 auto;
}
.form-group { margin-bottom: 1rem; }
.form-label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--gray-800); margin-bottom: 0.35rem; }
.form-control, .form-control-sm {
  width: 100%; padding: 0.55rem 0.85rem;
  border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm);
  font-size: 0.9rem; font-family: 'Noto Sans', sans-serif;
  background: white; transition: border-color 0.2s, box-shadow 0.2s;
  color: var(--text);
}
.form-control:focus, .form-control-sm:focus {
  outline: none; border-color: var(--saffron);
  box-shadow: 0 0 0 3px rgba(255,107,0,0.12);
}
.form-control-sm { width: auto; font-size: 0.85rem; padding: 0.4rem 0.7rem; }
textarea.form-control { resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.form-actions { display: flex; justify-content: flex-end; gap: 0.75rem; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--gray-200); }
.field-error { font-size: 0.8rem; color: var(--red); margin-top: 0.25rem; display: block; }

/* Radio Group */
.radio-group { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.radio-option {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1rem; border-radius: var(--radius-sm);
  border: 2px solid var(--gray-200); cursor: pointer;
  font-weight: 600; font-size: 0.88rem;
  transition: all 0.2s;
}
.radio-option input { display: none; }
.credit-option.selected { background: var(--green-light); border-color: var(--green); color: var(--green); }
.debit-option.selected { background: var(--red-light); border-color: var(--red); color: var(--red); }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.55rem 1.2rem; border-radius: var(--radius-sm);
  font-size: 0.88rem; font-weight: 600;
  cursor: pointer; border: none; text-decoration: none;
  transition: all 0.2s; font-family: 'Noto Sans', sans-serif;
}
.btn-primary {
  background: linear-gradient(135deg, var(--saffron), var(--saffron-light));
  color: white; box-shadow: 0 2px 8px rgba(255,107,0,0.3);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(255,107,0,0.4); }
.btn-secondary { background: var(--gray-100); color: var(--gray-800); }
.btn-secondary:hover { background: var(--gray-200); }
.btn-outline { background: transparent; border: 1.5px solid var(--gray-200); color: var(--gray-800); }
.btn-outline:hover { border-color: var(--saffron); color: var(--saffron); }
.btn-danger { background: var(--red-light); color: var(--red); border: 1.5px solid #FFCDD2; }
.btn-danger:hover { background: var(--red); color: white; }
.btn-credit { background: var(--green); color: white; }
.btn-credit:hover { background: #008F5A; }
.btn-debit { background: var(--red); color: white; }
.btn-debit:hover { background: #C62828; }
.btn-full { width: 100%; justify-content: center; }
.btn-sm { padding: 0.35rem 0.8rem; font-size: 0.82rem; }

/* ---- TRANSACTIONS LIST ---- */
.transactions-list { display: flex; flex-direction: column; gap: 0.5rem; }
.tx-row {
  background: white; border-radius: var(--radius-sm);
  padding: 0.85rem 1.1rem;
  display: flex; align-items: center; gap: 0.85rem;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid transparent;
  transition: all 0.15s;
}
.tx-row:hover { box-shadow: var(--shadow-md); transform: translateX(2px); }
.tx-credit { border-left-color: var(--green); }
.tx-debit { border-left-color: var(--red); }
.tx-icon { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.05rem; flex-shrink: 0; }
.tx-credit .tx-icon { background: var(--green-light); color: var(--green); }
.tx-debit .tx-icon { background: var(--red-light); color: var(--red); }
.tx-details { flex: 1; min-width: 0; }
.tx-name { font-weight: 600; font-size: 0.92rem; color: var(--navy); }
.tx-desc { font-size: 0.8rem; color: var(--gray-600); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx-date { font-size: 0.75rem; color: var(--gray-400); margin-top: 0.1rem; }
.tx-amount { text-align: right; flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 0.3rem; }
.amount-credit { font-family: 'Baloo 2', cursive; font-size: 1.05rem; font-weight: 700; color: var(--green); }
.amount-debit { font-family: 'Baloo 2', cursive; font-size: 1.05rem; font-weight: 700; color: var(--red); }
.tx-type-badge {
  font-size: 0.68rem; font-weight: 700; padding: 0.18rem 0.5rem;
  border-radius: 20px; text-transform: uppercase; letter-spacing: 0.04em;
}
.badge-credit { background: var(--green-light); color: var(--green); }
.badge-debit { background: var(--red-light); color: var(--red); }
.tx-actions { display: flex; gap: 0.3rem; margin-top: 0.25rem; }
.tx-action-btn {
  width: 28px; height: 28px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; cursor: pointer; border: none;
  text-decoration: none; transition: all 0.15s;
}
.edit-btn { background: #EEF0F8; color: var(--navy-mid); }
.edit-btn:hover { background: var(--navy-mid); color: white; }
.delete-btn { background: var(--red-light); color: var(--red); }
.delete-btn:hover { background: var(--red); color: white; }
.tx-account-link { color: var(--navy); font-weight: 700; text-decoration: none; }
.tx-account-link:hover { color: var(--saffron); }

/* ---- FILTER BAR ---- */
.filter-bar { background: white; border-radius: var(--radius-sm); padding: 1rem 1.25rem; margin-bottom: 1rem; box-shadow: var(--shadow-sm); }
.filter-form { display: flex; align-items: flex-end; gap: 0.75rem; flex-wrap: wrap; }
.full-filter { width: 100%; }
.filter-group { display: flex; flex-direction: column; gap: 0.25rem; }
.filter-group label { font-size: 0.75rem; font-weight: 600; color: var(--gray-600); text-transform: uppercase; letter-spacing: 0.04em; }

/* ---- EMPTY STATE ---- */
.empty-state {
  background: white; border-radius: var(--radius);
  padding: 3rem 2rem; text-align: center;
  box-shadow: var(--shadow-sm);
}
.empty-state.small { padding: 2rem 1.5rem; }
.empty-icon { font-size: 3rem; color: var(--gray-400); margin-bottom: 1rem; }
.empty-state h3 { font-family: 'Baloo 2', cursive; font-size: 1.3rem; color: var(--navy); margin-bottom: 0.5rem; }
.empty-state p { color: var(--gray-600); margin-bottom: 1.25rem; }

/* ---- CARDS ---- */
.card {
  background: white; border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}

/* ---- TABLES ---- */
.table-responsive { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th {
  background: var(--gray-100); color: var(--navy);
  font-weight: 700; font-size: 0.85rem; text-transform: uppercase;
  letter-spacing: 0.04em; padding: 1rem; text-align: left;
  border-bottom: 2px solid var(--gray-200);
}
.table td { padding: 1rem; border-bottom: 1px solid var(--gray-200); font-size: 0.9rem; vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table tr:hover { background: var(--gray-50); }

/* ---- FOOTER ---- */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.45);
  text-align: center; padding: 1rem;
  font-size: 0.8rem;
}

/* ---- AUTH PAGES ---- */
.auth-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 200px);
  padding: 1.5rem;
}

.auth-card {
  background: white;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 450px;
  text-align: center;
}

.auth-header .brand-logo {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--saffron), var(--gold));
  color: white;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.5rem;
  font-weight: 800;
  font-family: 'Baloo 2', cursive;
  box-shadow: 0 4px 12px rgba(255,107,0,0.3);
}

.auth-header h1 {
  font-family: 'Baloo 2', cursive;
  font-size: 1.75rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
  font-weight: 800;
}

.auth-header p {
  color: var(--gray-600);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.auth-form {
  text-align: left;
}

.auth-form .form-group {
  margin-bottom: 1.25rem;
}

.input-with-icon {
  position: relative;
}

.input-with-icon i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  font-size: 0.9rem;
}

.input-with-icon .form-control {
  padding-left: 40px;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  font-size: 0.88rem;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gray-600);
}

.forgot-password {
  color: var(--saffron);
  text-decoration: none;
  font-weight: 600;
}

.btn-auth {
  width: 100%;
  padding: 0.85rem;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-auth:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26,39,68,0.3);
}

.auth-footer {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--gray-600);
}

.auth-footer a {
  color: var(--saffron);
  text-decoration: none;
  font-weight: 700;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 992px) {
  .nav-container { height: auto; padding: 1rem; flex-direction: column; gap: 1rem; }
  .nav-links { width: 100%; justify-content: center; flex-wrap: wrap; }
  .online-status { margin: 0; }
}

@media (max-width: 768px) {
  .main-content { padding: 1rem; }
  .summary-grid { grid-template-columns: 1fr 1fr; }
  .summary-grid.small { grid-template-columns: 1fr; }
  .accounts-grid { grid-template-columns: 1fr; }
  .tx-add-cards { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .radio-group { grid-template-columns: 1fr; }
  .balance-banner { flex-direction: column; gap: 1rem; padding: 1.25rem; }
  .banner-amount { font-size: 1.8rem; }
  .page-header { flex-direction: column; align-items: stretch; }
  .header-actions { justify-content: stretch; }
  .header-actions .btn { flex: 1; justify-content: center; }
  .page-title { font-size: 1.4rem; }
  .nav-links { gap: 0.25rem; }
  .nav-link { padding: 0.4rem 0.6rem; font-size: 0.8rem; }
  .nav-link span { display: none; }
  .nav-user { border-left: none; padding-left: 0; margin-left: 0; }
  .banner-breakdown { flex-direction: column; gap: 0.5rem; width: 100%; }
  .breakdown-divider { width: 100%; height: 1px; }
  .filter-form { flex-direction: column; align-items: stretch; }
  .filter-group { width: 100%; }
  .filter-group input, .filter-group select { width: 100%; }
}

@media (max-width: 480px) {
  .summary-grid { grid-template-columns: 1fr; }
  .section-header { flex-direction: column; align-items: flex-start; }
  .search-form { max-width: 100%; width: 100%; }
  .nav-container { padding: 0.75rem; }
  .brand-name { font-size: 1rem; }
}
