:root {
  --primary: #0070BA;
  --primary-dark: #003087;
  --primary-light: #009CDE;
  --accent: #00B64E;
  --danger: #D0021B;
  --warning: #F5A623;
  --bg: #F5F7FA;
  --white: #ffffff;
  --gray: #6c757d;
  --gray-light: #e9ecef;
  --border: #dee2e6;
  --text: #2c3e50;
  --text-light: #718096;
  --shadow: 0 2px 20px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 30px rgba(0,112,186,0.2);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: all 0.3s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }
a { text-decoration: none; color: var(--primary); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; }

/* ---- NAVBAR ---- */
.navbar {
  background: var(--primary-dark);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 700;
}
.navbar-brand .logo-icon {
  width: 36px; height: 36px;
  background: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary-dark);
  font-weight: 900;
  font-size: 1rem;
}
.navbar-brand span { color: #7ec8e3; }
.navbar-nav { display: flex; align-items: center; gap: 8px; }
.navbar-nav a {
  color: rgba(255,255,255,0.85);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  transition: var(--transition);
}
.navbar-nav a:hover, .navbar-nav a.active { background: rgba(255,255,255,0.15); color: #fff; }
.navbar-nav .btn-nav {
  background: var(--primary);
  color: #fff;
  padding: 8px 18px;
  border-radius: 20px;
  font-weight: 600;
}
.navbar-nav .btn-nav:hover { background: var(--primary-light); }
.navbar-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid rgba(255,255,255,0.3);
}
.notif-badge {
  position: relative;
  cursor: pointer;
  color: rgba(255,255,255,0.85);
  padding: 8px;
  border-radius: 50%;
  transition: var(--transition);
  font-size: 1.2rem;
}
.notif-badge:hover { background: rgba(255,255,255,0.15); }
.badge-count {
  position: absolute;
  top: 4px; right: 4px;
  background: var(--danger);
  color: #fff;
  width: 16px; height: 16px;
  border-radius: 50%;
  font-size: 0.65rem;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}

/* ---- LAYOUT ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.page-wrapper { display: flex; min-height: calc(100vh - 64px); }
.sidebar {
  width: 240px;
  background: var(--white);
  padding: 24px 0;
  border-right: 1px solid var(--border);
  flex-shrink: 0;
}
.sidebar-menu { list-style: none; }
.sidebar-menu li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  color: var(--text);
  font-size: 0.95rem;
  transition: var(--transition);
  border-left: 3px solid transparent;
}
.sidebar-menu li a:hover, .sidebar-menu li a.active {
  background: rgba(0,112,186,0.08);
  color: var(--primary);
  border-left-color: var(--primary);
  font-weight: 600;
}
.sidebar-menu li a .icon { font-size: 1.1rem; width: 22px; text-align: center; }
.sidebar-divider { border: none; border-top: 1px solid var(--border); margin: 12px 0; }
.main-content { flex: 1; padding: 32px; overflow-x: hidden; }

/* ---- CARDS ---- */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 24px;
}
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.card-title { font-size: 1.1rem; font-weight: 700; color: var(--text); }

/* ---- BALANCE CARD ---- */
.balance-card {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
}
.balance-card::before {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  top: -100px; right: -50px;
}
.balance-card::after {
  content: '';
  position: absolute;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  bottom: -80px; left: 30px;
}
.balance-label { font-size: 0.9rem; opacity: 0.8; margin-bottom: 8px; }
.balance-amount { font-size: 2.8rem; font-weight: 800; margin-bottom: 24px; }
.balance-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-balance {
  background: rgba(255,255,255,0.2);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  padding: 10px 22px;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-balance:hover { background: rgba(255,255,255,0.3); color: #fff; transform: translateY(-1px); }

/* ---- STATS GRID ---- */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 24px; }
.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 16px;
}
.stat-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.stat-icon.blue { background: rgba(0,112,186,0.1); color: var(--primary); }
.stat-icon.green { background: rgba(0,182,78,0.1); color: var(--accent); }
.stat-icon.orange { background: rgba(245,166,35,0.1); color: var(--warning); }
.stat-icon.red { background: rgba(208,2,27,0.1); color: var(--danger); }
.stat-info h3 { font-size: 1.5rem; font-weight: 800; color: var(--text); }
.stat-info p { font-size: 0.82rem; color: var(--text-light); }

/* ---- TRANSACTIONS ---- */
.txn-item {
  display: flex;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-light);
  gap: 14px;
}
.txn-item:last-child { border-bottom: none; }
.txn-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}
.txn-info { flex: 1; }
.txn-name { font-weight: 600; font-size: 0.95rem; }
.txn-date { font-size: 0.8rem; color: var(--text-light); }
.txn-note { font-size: 0.82rem; color: var(--text-light); margin-top: 2px; }
.txn-amount { font-weight: 700; font-size: 1rem; }
.txn-amount.credit { color: var(--accent); }
.txn-amount.debit { color: var(--danger); }
.txn-status { font-size: 0.75rem; padding: 3px 8px; border-radius: 12px; font-weight: 600; margin-top: 4px; display: inline-block; }
.status-completed { background: rgba(0,182,78,0.1); color: var(--accent); }
.status-pending { background: rgba(245,166,35,0.1); color: var(--warning); }
.status-failed { background: rgba(208,2,27,0.1); color: var(--danger); }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 25px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-hover); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-success { background: var(--accent); color: #fff; }
.btn-success:hover { background: #009940; color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #a80017; color: #fff; }
.btn-sm { padding: 7px 16px; font-size: 0.82rem; }
.btn-block { width: 100%; }
.btn-lg { padding: 15px 36px; font-size: 1.05rem; }

/* ---- FORMS ---- */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 0.9rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,112,186,0.1); }
.input-icon { position: relative; }
.input-icon .form-control { padding-left: 44px; }
.input-icon .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-light); font-size: 1rem; }
.form-text { font-size: 0.8rem; color: var(--text-light); margin-top: 4px; }
select.form-control { cursor: pointer; }

/* ---- ALERTS ---- */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 500;
}
.alert-success { background: rgba(0,182,78,0.1); color: #00703a; border: 1px solid rgba(0,182,78,0.3); }
.alert-danger { background: rgba(208,2,27,0.1); color: var(--danger); border: 1px solid rgba(208,2,27,0.3); }
.alert-warning { background: rgba(245,166,35,0.1); color: #c07d00; border: 1px solid rgba(245,166,35,0.3); }
.alert-info { background: rgba(0,112,186,0.1); color: var(--primary); border: 1px solid rgba(0,112,186,0.3); }

/* ---- AUTH PAGES ---- */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 20px;
}
.auth-box {
  background: var(--white);
  border-radius: 20px;
  padding: 40px;
  width: 100%;
  max-width: 460px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.auth-logo { text-align: center; margin-bottom: 30px; }
.auth-logo .brand-name { font-size: 1.8rem; font-weight: 800; color: var(--primary-dark); }
.auth-logo .brand-name span { color: var(--primary); }
.auth-logo .logo-circle {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
  color: #fff;
  font-size: 1.6rem;
  font-weight: 900;
}
.auth-title { font-size: 1.4rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.auth-subtitle { color: var(--text-light); font-size: 0.9rem; margin-bottom: 28px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--text-light); font-size: 0.85rem; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-footer { text-align: center; margin-top: 20px; font-size: 0.88rem; color: var(--text-light); }

/* ---- LANDING PAGE ---- */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
  color: #fff;
  padding: 80px 0;
  text-align: center;
}
.hero h1 { font-size: 3rem; font-weight: 800; margin-bottom: 16px; line-height: 1.2; }
.hero h1 span { color: #7ec8e3; }
.hero p { font-size: 1.2rem; opacity: 0.9; margin-bottom: 36px; max-width: 600px; margin-left: auto; margin-right: auto; }
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-hero-primary { background: #fff; color: var(--primary-dark); padding: 15px 36px; border-radius: 30px; font-weight: 700; font-size: 1rem; transition: var(--transition); }
.btn-hero-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.2); color: var(--primary-dark); }
.btn-hero-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.5); padding: 15px 36px; border-radius: 30px; font-weight: 700; font-size: 1rem; transition: var(--transition); }
.btn-hero-outline:hover { background: rgba(255,255,255,0.15); color: #fff; }

.features { padding: 80px 0; background: var(--white); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; margin-top: 50px; }
.feature-card { text-align: center; padding: 36px 24px; border-radius: var(--radius); background: var(--bg); transition: var(--transition); }
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); background: var(--white); }
.feature-icon { font-size: 2.5rem; margin-bottom: 16px; }
.feature-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.feature-card p { color: var(--text-light); font-size: 0.9rem; line-height: 1.7; }

.section-title { text-align: center; font-size: 2rem; font-weight: 800; color: var(--text); }
.section-subtitle { text-align: center; color: var(--text-light); font-size: 1rem; margin-top: 8px; }

/* ---- QUICK ACTIONS ---- */
.quick-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.quick-btn {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}
.quick-btn:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.quick-btn .qb-icon { font-size: 1.8rem; margin-bottom: 8px; }
.quick-btn .qb-label { font-size: 0.82rem; font-weight: 600; color: var(--text); }

/* ---- TABLE ---- */
.table { width: 100%; border-collapse: collapse; }
.table th { font-size: 0.8rem; font-weight: 700; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.5px; padding: 10px 14px; border-bottom: 2px solid var(--border); text-align: left; }
.table td { padding: 14px; border-bottom: 1px solid var(--gray-light); font-size: 0.9rem; vertical-align: middle; }
.table tr:hover td { background: var(--bg); }
.table-responsive { overflow-x: auto; }

/* ---- TABS ---- */
.tabs { display: flex; border-bottom: 2px solid var(--border); margin-bottom: 24px; gap: 4px; }
.tab-btn {
  padding: 10px 20px;
  border: none;
  background: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.tab-btn:hover { color: var(--primary); background: rgba(0,112,186,0.05); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ---- MISC ---- */
.page-title { font-size: 1.6rem; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.page-subtitle { color: var(--text-light); font-size: 0.9rem; margin-bottom: 28px; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-light); }
.text-primary { color: var(--primary); }
.text-success { color: var(--accent); }
.text-danger { color: var(--danger); }
.font-bold { font-weight: 700; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.flex { display: flex; } .flex-1 { flex: 1; } .items-center { align-items: center; } .justify-between { justify-content: space-between; } .gap-2 { gap: 12px; } .gap-3 { gap: 20px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.badge { padding: 4px 10px; border-radius: 12px; font-size: 0.75rem; font-weight: 700; }
.badge-success { background: rgba(0,182,78,0.1); color: var(--accent); }
.badge-danger { background: rgba(208,2,27,0.1); color: var(--danger); }
.badge-warning { background: rgba(245,166,35,0.1); color: var(--warning); }
.badge-primary { background: rgba(0,112,186,0.1); color: var(--primary); }

.empty-state { text-align: center; padding: 48px 20px; color: var(--text-light); }
.empty-state .empty-icon { font-size: 3rem; margin-bottom: 12px; opacity: 0.4; }
.empty-state p { font-size: 0.9rem; }

footer.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 20px;
  font-size: 0.85rem;
  margin-top: auto;
}
footer.site-footer a { color: rgba(255,255,255,0.9); }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute;
  right: 0; top: calc(100% + 8px);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  min-width: 220px;
  z-index: 999;
  overflow: hidden;
  border: 1px solid var(--border);
}
.dropdown-menu.show { display: block; }
.dropdown-item { display: flex; align-items: center; gap: 10px; padding: 12px 16px; font-size: 0.9rem; color: var(--text); transition: var(--transition); }
.dropdown-item:hover { background: var(--bg); color: var(--primary); }
.dropdown-divider { border: none; border-top: 1px solid var(--border); margin: 4px 0; }
.dropdown-header { padding: 12px 16px 8px; font-size: 0.8rem; font-weight: 700; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.5px; }

/* Responsive */
@media (max-width: 768px) {
  .sidebar { display: none; }
  .main-content { padding: 20px 16px; }
  .quick-actions { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .balance-amount { font-size: 2rem; }
  .hero h1 { font-size: 2rem; }
  .navbar-nav .nav-hide { display: none; }
}
