@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* Color Palette - Default Dark-first Premium Mode */
  --bg-main: #08080c;
  --bg-card: rgba(18, 18, 26, 0.7);
  --bg-card-hover: rgba(26, 26, 38, 0.85);
  --bg-input: rgba(28, 28, 40, 0.6);
  --bg-input-focus: rgba(36, 36, 52, 0.8);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  /* Dynamic Hue Theme (User customizable) */
  --accent-hue: 45; /* Default Gold (~45) */
  --accent-sat: 65%;
  --accent-light: 53%;
  --accent-primary: hsl(var(--accent-hue), var(--accent-sat), var(--accent-light));
  --accent-secondary: hsl(var(--accent-hue), var(--accent-sat), calc(var(--accent-light) + 20%));
  --accent-gradient: linear-gradient(135deg, hsl(var(--accent-hue), var(--accent-sat), var(--accent-light)), hsl(var(--accent-hue), var(--accent-sat), calc(var(--accent-light) - 15%)));
  --accent-bg-alpha: hsla(var(--accent-hue), var(--accent-sat), var(--accent-light), 0.15);

  --success: #10b981;
  --success-bg: rgba(16, 185, 129, 0.12);
  --danger: #f43f5e;
  --danger-bg: rgba(244, 63, 94, 0.12);
  --warning: #f59e0b;
  --warning-bg: rgba(245, 158, 11, 0.12);
  --info: #3b82f6;
  --info-bg: rgba(59, 130, 246, 0.12);

  --border-color: rgba(255, 255, 255, 0.06);
  --border-color-hover: rgba(255, 255, 255, 0.12);

  --nav-bg: rgba(10, 10, 15, 0.95);
  --nav-text: #64748b;
  --nav-hover-bg: rgba(255, 255, 255, 0.04);

  /* Shadows & Blurs */
  --shadow-sm: 0 4px 12px -2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 12px 32px -4px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 24px 64px -12px rgba(0, 0, 0, 0.7);
  --glass-blur: 16px;

  /* Border Radius */
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-full: 9999px;

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light mode overrides */
[data-theme="light"] {
  --bg-main: #f8fafc;
  --bg-card: rgba(255, 255, 255, 0.8);
  --bg-card-hover: rgba(255, 255, 255, 0.95);
  --bg-input: rgba(241, 245, 249, 0.8);
  --bg-input-focus: #ffffff;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  
  --border-color: rgba(0, 0, 0, 0.05);
  --border-color-hover: rgba(0, 0, 0, 0.1);

  --nav-bg: rgba(255, 255, 255, 0.95);
  --nav-text: #64748b;
  --nav-hover-bg: rgba(0, 0, 0, 0.03);

  --shadow-sm: 0 4px 12px -2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 12px 32px -4px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 64px -12px rgba(15, 23, 42, 0.12);
  
  --accent-light: 45%;
  --accent-bg-alpha: hsla(var(--accent-hue), var(--accent-sat), var(--accent-light), 0.08);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  transition: var(--transition);
}

input, select, textarea {
  font-family: inherit;
  outline: none;
  transition: var(--transition);
}

/* Remove number spinners */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type=number] {
  -moz-appearance: textfield;
  appearance: textfield;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color-hover);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Layout */
.app-container {
  display: flex;
  width: 100%;
  height: 100vh;
  position: relative;
}

/* Glassmorphism Background Orbs */
.bg-orb-1, .bg-orb-2 {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  pointer-events: none;
  transition: var(--transition);
}
.bg-orb-1 {
  width: 45vw;
  height: 45vw;
  background: radial-gradient(circle, var(--accent-bg-alpha) 0%, transparent 70%);
  top: -15vw;
  right: -10vw;
}
.bg-orb-2 {
  width: 35vw;
  height: 35vw;
  background: radial-gradient(circle, hsla(var(--accent-hue), 50%, 40%, 0.1) 0%, transparent 70%);
  bottom: -10vw;
  left: 15vw;
}

/* Sidebar Navigation (Redesigned Desktop Sidebar) */
.floating-nav {
  width: 260px;
  background: var(--nav-bg);
  backdrop-filter: blur(var(--glass-blur));
  border-right: 1px solid var(--border-color);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  height: 100vh;
  z-index: 100;
  transition: var(--transition);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-size: 20px;
  box-shadow: 0 8px 24px var(--accent-bg-alpha);
  transition: var(--transition);
}

.brand-logo-text {
  font-size: 22px;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.5px;
}
.brand-logo-text span {
  color: var(--accent-primary);
}

.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  color: var(--nav-text);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}

.nav-item i {
  font-size: 18px;
  width: 24px;
  text-align: center;
}

.nav-item:hover {
  background: var(--nav-hover-bg);
  color: var(--text-primary);
}

.nav-item.active {
  background: var(--accent-bg-alpha);
  color: var(--accent-primary);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15%;
  height: 70%;
  width: 4px;
  background: var(--accent-primary);
  border-radius: 0 4px 4px 0;
}

.sidebar-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
  gap: 12px;
}

.theme-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.theme-toggle-btn:hover {
  background: var(--accent-bg-alpha);
  color: var(--accent-primary);
  border-color: var(--accent-primary);
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}
.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-weight: 700;
  font-size: 14px;
}
.user-info {
  display: flex;
  flex-direction: column;
}
.user-info .name {
  font-size: 14px;
  font-weight: 700;
}
.user-info .status {
  font-size: 11px;
  color: var(--text-muted);
}

/* Main Content Area */
.main-content {
  flex: 1;
  height: 100vh;
  overflow-y: auto;
  padding: 40px 48px;
  position: relative;
}

/* Top Header */
.top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  gap: 20px;
}
.greeting-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}
.page-title h2 {
  font-size: 32px;
  font-weight: 800;
}
.page-title p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 2px;
}

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

.theme-toggle-header {
  display: none; /* Only show in mobile if header actions are compact */
}

/* Premium Buttons */
.btn {
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-primary {
  background: var(--accent-gradient);
  color: #000;
  box-shadow: 0 8px 24px var(--accent-bg-alpha);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px var(--accent-bg-alpha);
  filter: brightness(1.1);
}
.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}
.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-color-hover);
}
.btn-danger {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid rgba(244, 63, 94, 0.2);
}
.btn-danger:hover {
  background: var(--danger);
  color: #fff;
}
.btn-excel {
  background: linear-gradient(135deg, #10b981, #047857);
  color: #fff;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.2);
}
.btn-excel:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(16, 185, 129, 0.35);
}
.btn-excel-outline {
  background: transparent;
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.btn-excel-outline:hover {
  background: var(--success-bg);
  border-color: #10b981;
}

/* Page sections */
.page-section {
  display: none;
  animation: pageFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.page-section.active {
  display: block;
}

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

/* Premium Minimalist Cards */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.card:hover {
  border-color: var(--border-color-hover);
  box-shadow: var(--shadow-md);
}

/* === Dashboard Layout Redesign === */
.hero-section {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}

.vip-card-wrapper {
  perspective: 1000px;
  width: 100%;
}

.vip-card {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, #181824 0%, #0d0d12 100%);
  border-radius: var(--radius-md);
  padding: 28px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.vip-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 60%);
  pointer-events: none;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.card-chip {
  font-size: 24px;
  color: var(--accent-primary);
  background: rgba(255, 255, 255, 0.03);
  width: 46px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.card-balance-label {
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
}
.card-balance {
  font-size: 34px;
  font-weight: 800;
  margin-top: 4px;
  font-family: 'Outfit', sans-serif;
  background: linear-gradient(135deg, #fff 40%, var(--accent-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.card-number {
  font-family: monospace;
  font-size: 16px;
  letter-spacing: 3px;
  color: var(--text-muted);
}
.card-logo {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 1px;
}
.card-logo span {
  color: var(--accent-primary);
}

/* Stats boxes next to VIP Card */
.hero-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.stat-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.stat-box:hover {
  transform: translateX(6px);
  border-color: var(--border-color-hover);
}
.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.stat-icon.income {
  background: var(--success-bg);
  color: var(--success);
}
.stat-icon.expense {
  background: var(--danger-bg);
  color: var(--danger);
}
.stat-info p {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
}
.stat-info h3 {
  font-size: 22px;
  font-weight: 700;
  margin-top: 2px;
}

/* Dynamic Period Sorting Tabs UI (Harian, Mingguan, Bulanan, Tahunan) */
.period-sorting-widget {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.period-label {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.period-tabs {
  display: flex;
  background: var(--bg-input);
  padding: 4px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}
.period-tab-btn {
  padding: 6px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  transition: var(--transition);
}
.period-tab-btn.active {
  background: var(--accent-gradient);
  color: #000;
}

/* Feature widgets grid */
.additional-widgets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-bottom: 28px;
}

/* Score and Streak widgets */
.small-stat-widget {
  display: flex;
  align-items: center;
  gap: 16px;
}
.small-stat-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
}
.small-stat-circle.health {
  border: 4px solid var(--success);
  color: var(--success);
}
.small-stat-circle.streak {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}
.small-stat-info h4 {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.small-stat-info p {
  font-size: 16px;
  font-weight: 700;
  margin-top: 2px;
}

/* Period Comparison Widget */
.comparison-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
}
.comparison-header {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 12px;
}
.comparison-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.comparison-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.comparison-row span {
  font-size: 13px;
  color: var(--text-secondary);
}
.comparison-row strong {
  font-size: 14px;
}
.comparison-badge {
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.comparison-badge.up-bad {
  background: var(--danger-bg);
  color: var(--danger);
}
.comparison-badge.down-good {
  background: var(--success-bg);
  color: var(--success);
}
.comparison-badge.up-good {
  background: var(--success-bg);
  color: var(--success);
}
.comparison-badge.neutral {
  background: var(--bg-input);
  color: var(--text-muted);
}

/* Wallets and Accounts dashboard widget */
.dashboard-accounts {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 28px;
}
.dash-acc-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  min-width: 190px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  transition: var(--transition);
}
.dash-acc-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.dash-acc-card h4 {
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.dash-acc-card h3 {
  font-size: 18px;
  font-weight: 700;
}

/* Charts Grid */
.charts-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}
.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.chart-header h3 {
  font-size: 16px;
  font-weight: 700;
}
.chart-container {
  height: 260px;
  width: 100%;
}

/* Top Expenses Widget */
.top-expenses-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.top-expense-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: var(--bg-input);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}
.top-expense-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.top-expense-rank {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid var(--border-color);
}
.top-expense-name {
  font-size: 13px;
  font-weight: 700;
}
.top-expense-amount {
  font-size: 14px;
  font-weight: 700;
}

/* Recent Transactions */
.recent-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.recent-header h3 {
  font-size: 16px;
  font-weight: 700;
}
.view-all {
  color: var(--accent-primary);
  font-size: 13px;
  font-weight: 700;
}
.view-all:hover {
  text-decoration: underline;
}

.transaction-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.transaction-item, .tx-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.transaction-item:hover, .tx-item:hover {
  border-color: var(--border-color-hover);
  background: var(--bg-card-hover);
}

.tx-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.tx-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.tx-icon.income {
  background: var(--success-bg);
  color: var(--success);
}
.tx-icon.expense {
  background: var(--danger-bg);
  color: var(--danger);
}
.tx-icon.transfer {
  background: var(--info-bg);
  color: var(--info);
}

.tx-info h4 {
  font-size: 14px;
  font-weight: 700;
}
.tx-info p {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}
.tx-right {
  text-align: right;
}
.tx-amount {
  font-size: 15px;
  font-weight: 700;
}
.tx-amount.income {
  color: var(--success);
}
.tx-amount.expense {
  color: var(--text-primary);
}
.tx-amount.transfer {
  color: var(--info);
}
.tx-date {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.tx-actions {
  display: flex;
  gap: 6px;
  margin-left: 16px;
}
.tx-action-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  background: var(--bg-input);
}
.tx-action-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--border-color-hover);
}
.tx-action-btn.delete:hover {
  color: var(--danger);
  background: var(--danger-bg);
  border-color: var(--danger);
}

/* === Custom Color Customizer UI === */
.theme-picker-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
}
.theme-picker-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.theme-options-grid {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.theme-color-option {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid transparent;
  transition: var(--transition);
}
.theme-color-option.active {
  border-color: var(--text-primary);
  transform: scale(1.15);
}
.theme-color-picker-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 600;
  margin-left: auto;
}
.custom-theme-picker {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
}
.custom-theme-picker::-webkit-color-picker-indicator {
  border: 2px solid var(--border-color);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  padding: 0;
}

/* === Accounts Page Grid === */
.accounts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.account-card {
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 180px;
}
.account-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.account-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.account-icon.bank {
  background: var(--info-bg);
  color: var(--info);
}
.account-icon.ewallet {
  background: var(--accent-bg-alpha);
  color: var(--accent-primary);
}
.account-icon.cash {
  background: var(--success-bg);
  color: var(--success);
}
.account-icon.investment {
  background: var(--warning-bg);
  color: var(--warning);
}

.account-details h3 {
  font-size: 18px;
  font-weight: 700;
}
.account-details p {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}
.account-balance-wrap {
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
}
.account-balance-wrap p {
  font-size: 11px;
  color: var(--text-muted);
}
.account-balance-wrap h2 {
  font-size: 24px;
  font-weight: 800;
  margin-top: 2px;
}
.account-actions {
  position: absolute;
  top: 24px;
  right: 24px;
  display: flex;
  gap: 6px;
}

/* === Budgets Section === */
.budgets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.budget-card {
  display: flex;
  flex-direction: column;
}
.budget-card h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
}
.budget-progress-track {
  height: 8px;
  background: var(--bg-input);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 12px;
}
.budget-progress-bar {
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--accent-gradient);
  transition: width 1s ease;
}
.budget-progress-bar.good {
  background: var(--success);
}
.budget-progress-bar.warning {
  background: var(--warning);
}
.budget-progress-bar.danger {
  background: var(--danger);
}
.budget-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: auto;
  padding-top: 10px;
}
.budget-footer button {
  color: var(--text-muted);
}
.budget-footer button:hover {
  color: var(--danger);
}

/* === Savings Section === */
.savings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.saving-card {
  display: flex;
  align-items: center;
  gap: 20px;
}
.saving-circle-wrap {
  width: 76px;
  height: 76px;
  position: relative;
}
.saving-circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(var(--accent-primary) var(--progress), var(--bg-input) 0deg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.saving-circle-inner {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}
.saving-details {
  flex: 1;
}
.saving-details h3 {
  font-size: 16px;
  font-weight: 700;
}
.saving-amounts {
  display: flex;
  flex-direction: column;
  margin-top: 6px;
}
.saving-current {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent-primary);
}
.saving-target {
  font-size: 11px;
  color: var(--text-muted);
}
.saving-actions {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}
.saving-actions .btn {
  padding: 6px 12px;
  font-size: 11px;
  border-radius: 6px;
}

/* === Reports Section === */
.report-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.report-summary-card {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  padding: 20px;
  border-radius: var(--radius-sm);
  text-align: center;
}
.report-summary-card p {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 600;
}
.report-summary-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-top: 6px;
}

/* === Modals (Premium Minimalist Glassmorphism) === */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.modal-content {
  background: #0d0d14;
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color-hover);
  box-shadow: var(--shadow-lg);
  transform: scale(0.9);
  transition: var(--transition);
  overflow: hidden;
}
.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-header {
  padding: 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-header h3 {
  font-size: 18px;
  font-weight: 700;
}
.close-modal {
  font-size: 20px;
  color: var(--text-muted);
}
.close-modal:hover {
  color: var(--danger);
}
.modal-body {
  padding: 24px;
}

/* Form Styles */
.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.form-control {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: 14px;
}
.form-control:focus {
  border-color: var(--accent-primary);
  background: var(--bg-input-focus);
}
.input-group {
  position: relative;
  display: flex;
  align-items: center;
}
.input-prefix {
  position: absolute;
  left: 16px;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 14px;
}
.input-group .form-control {
  padding-left: 44px;
}

.type-selector {
  display: flex;
  background: var(--bg-input);
  border-radius: var(--radius-sm);
  padding: 4px;
  border: 1px solid var(--border-color);
}
.type-btn {
  flex: 1;
  padding: 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
}
.type-btn.active.expense {
  background: var(--danger-bg);
  color: var(--danger);
}
.type-btn.active.income {
  background: var(--success-bg);
  color: var(--success);
}
.type-btn.active.transfer {
  background: var(--info-bg);
  color: var(--info);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}

/* Category Add Inline */
.category-select-wrap {
  display: flex;
  gap: 8px;
}
.category-select-wrap .form-control {
  flex: 1;
}
.btn-add-category {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--accent-gradient);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.inline-add-category {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  animation: pageFadeIn 0.3s ease;
}

/* Tags in Settings */
.category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.category-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
}
.category-tag.default {
  background: var(--bg-input);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}
.category-tag.custom {
  background: var(--accent-bg-alpha);
  color: var(--accent-primary);
  border: 1px solid var(--accent-primary);
}
.category-tag .remove-cat {
  color: var(--danger);
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  background: var(--bg-card);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border-color);
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-md);
  animation: slideInRight 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  max-width: 320px;
}
.toast.success {
  border-left: 4px solid var(--success);
}
.toast.error {
  border-left: 4px solid var(--danger);
}
.toast.info {
  border-left: 4px solid var(--accent-primary);
}

@keyframes slideInRight {
  from { transform: translateX(120%); }
  to { transform: translateX(0); }
}

/* Responsive design styles */
@media (max-width: 1024px) {
  .floating-nav {
    width: 220px;
  }
  .charts-grid {
    grid-template-columns: 1fr;
  }
  .hero-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  /* Bottom Navigation for Mobile */
  .floating-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    margin: 0;
    padding: 0;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    border-right: none;
    border-top: 1px solid var(--border-color);
    background: var(--nav-bg);
  }
  .brand, .sidebar-footer {
    display: none !important;
  }
  .nav-menu {
    flex-direction: row;
    justify-content: space-around;
    height: 100%;
  }
  .nav-item {
    padding: 0;
    flex: 1;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    font-size: 10px;
  }
  .nav-item.active::before {
    display: none;
  }
  .nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 6px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent-primary);
  }
  
  .main-content {
    padding: 24px 16px 90px 16px;
  }
  .page-title h2 {
    font-size: 26px;
  }
}