/*!
 * Unity Money Manager - Bespoke CORE Theme
 * No Bootstrap. Pure CSS. Dark mode only.
 */

/* ===== DESIGN TOKENS ===== */
:root {
  --void: #0a0a0a;
  --surface: #111111;
  --surface-elevated: #1a1a1a;
  --card: #161616;
  --card-hover: #1e1e1e;
  --border: rgba(255,255,255,0.08);
  --border-focus: rgba(255,193,7,0.4);
  --amber: #ffc107;
  --amber-hover: #ffd54f;
  --amber-dim: rgba(255,193,7,0.1);
  --amber-glow: rgba(255,193,7,0.15);
  --danger: #ff5252;
  --danger-bg: rgba(255,82,82,0.1);
  --success: #69f0ae;
  --success-bg: rgba(105,240,174,0.1);
  --info: #448aff;
  --info-bg: rgba(68,138,255,0.1);
  --text-primary: #ffffff;
  --text-secondary: rgba(255,255,255,0.6);
  --text-muted: rgba(255,255,255,0.38);
  --text-disabled: rgba(255,255,255,0.3);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', monospace;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 20px rgba(255,193,7,0.15);
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;
}

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

html {
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--void);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--amber);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--amber-hover);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.25); }

/* ===== LAYOUT ===== */
#wrapper {
  display: flex;
  min-height: 100vh;
}

/* ===== SIDEBAR ===== */
.sidebar {
  width: 260px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
  transition: transform var(--transition-base);
}

.sidebar-brand {
  padding: var(--space-6);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.sidebar-brand .logo-icon {
  width: 38px;
  height: 38px;
  background: var(--amber);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--void);
  font-size: 18px;
  font-weight: 700;
}

.sidebar-brand .logo-text {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.sidebar-brand .logo-text span {
  color: var(--amber);
}

.sidebar-nav {
  padding: var(--space-4) var(--space-3);
}

.sidebar-nav ul {
  list-style: none;
}

.sidebar-nav ul li {
  margin-bottom: var(--space-1);
}

.sidebar-nav ul li a {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  font-size: 0.875rem;
  font-weight: 500;
  position: relative;
}

.sidebar-nav ul li a:hover {
  background: rgba(255,255,255,0.04);
  color: var(--text-primary);
}

.sidebar-nav ul li a.active {
  background: var(--amber-dim);
  color: var(--amber);
}

.sidebar-nav ul li a.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 20px;
  background: var(--amber);
  border-radius: 0 3px 3px 0;
}

.sidebar-nav ul li a i {
  width: 20px;
  text-align: center;
  font-size: 0.875rem;
}

/* Submenu */
.nav-second-level {
  padding-left: var(--space-4);
  margin-top: var(--space-1);
  display: none;
}

.nav-second-level.open {
  display: block;
}

.nav-second-level li a {
  padding: var(--space-2) var(--space-4);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.nav-second-level li a:hover {
  color: var(--text-secondary);
}

.sidebar-divider {
  height: 1px;
  background: var(--border);
  margin: 12px 0;
}

/* ===== TOP NAVBAR ===== */
.navbar-top {
  height: 64px;
  background: rgba(17,17,17,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-6);
  position: fixed;
  top: 0;
  left: 260px;
  right: 0;
  z-index: 99;
}

.navbar-top .page-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.navbar-top .user-menu {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.navbar-top .user-menu .user-name {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.navbar-top .user-menu .user-name strong {
  color: var(--text-primary);
  font-weight: 600;
}

.dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 0.875rem;
}

.dropdown-toggle:hover {
  border-color: var(--amber);
  background: var(--card-hover);
}

.dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  padding: var(--space-2) 0;
  list-style: none;
  z-index: 1000;
  display: none;
}

.dropdown.open .dropdown-menu {
  display: block;
}

.dropdown-menu li a {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  color: var(--text-secondary);
  font-size: 0.875rem;
  transition: all var(--transition-fast);
}

.dropdown-menu li a:hover {
  background: rgba(255,255,255,0.04);
  color: var(--text-primary);
}

.dropdown-menu .divider {
  height: 1px;
  background: var(--border);
  margin: var(--space-2) 0;
  list-style: none;
}

/* ===== MAIN CONTENT ===== */
#main-content {
  flex: 1;
  margin-left: 260px;
  margin-top: 64px;
  padding: var(--space-6);
  min-height: calc(100vh - 64px);
}

/* ===== PAGE HEADER ===== */
.page-header {
  margin-bottom: var(--space-6);
}

.page-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-1);
}

.page-header p {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ===== STAT CARDS ===== */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
  margin-bottom: var(--space-6);
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255,255,255,0.12);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.stat-card.expense::before { background: var(--danger); }
.stat-card.income::before { background: var(--success); }
.stat-card.total-expense::before { background: #ff9100; }
.stat-card.balance::before { background: var(--amber); }

.stat-card .stat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: var(--space-4);
}

.stat-card.expense .stat-icon { background: var(--danger-bg); color: var(--danger); }
.stat-card.income .stat-icon { background: var(--success-bg); color: var(--success); }
.stat-card.total-expense .stat-icon { background: rgba(255,145,0,0.1); color: #ff9100; }
.stat-card.balance .stat-icon { background: var(--amber-dim); color: var(--amber); }

.stat-card .stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.stat-card .stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

/* ===== CARDS ===== */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.card:hover {
  border-color: rgba(255,255,255,0.12);
}

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

.card-header h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.card-header h3 i {
  color: var(--amber);
  font-size: 0.875rem;
}

.card-body {
  padding: var(--space-5);
}

.card-body.no-padding {
  padding: 0;
}

/* ===== TABLES - CORE STYLE ===== */
.table-container {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  font-family: var(--font-sans);
}

.table thead {
  border-bottom: 1px solid var(--border);
}

.table thead th {
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  white-space: nowrap;
  text-align: left;
  vertical-align: middle;
  line-height: 1.5;
}

.table tbody tr {
  border-top: 1px solid rgba(255,255,255,0.06);
  transition: background-color 0.15s ease;
}

.table tbody tr:first-child {
  border-top: none;
}

.table tbody tr:hover {
  background: rgba(255,255,255,0.03);
}

.table tbody td {
  padding: 12px 16px;
  color: var(--text-secondary);
  font-size: 0.875rem;
  vertical-align: middle;
  line-height: 1.5;
}

/* Cell with icon/avatar */
.cell-with-icon {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cell-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--surface-elevated);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  flex-shrink: 0;
}

/* Amount colors */
.amount-income {
  color: var(--success);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
}

.amount-expense {
  color: var(--danger);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
}

/* Card table wrapper */
.card-table .table thead th {
  padding: 12px 20px;
}

.card-table .table tbody td {
  padding: 14px 20px;
}

/* Table footer link */
.table-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
}

.table-footer a {
  font-size: 12px;
  color: var(--amber);
  display: flex;
  align-items: center;
  gap: 6px;
}

.table-footer a:hover {
  color: var(--amber-hover);
}

/* Empty state */
.table-empty {
  text-align: center;
  padding: 48px 16px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

/* ===== FORMS ===== */
.form-group {
  margin-bottom: var(--space-5);
}

.form-group label {
  display: block;
  margin-bottom: var(--space-2);
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.9375rem;
  font-family: var(--font-sans);
  transition: all var(--transition-fast);
  outline: none;
}

.form-control:hover {
  border-color: rgba(255,255,255,0.15);
}

.form-control:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px var(--amber-glow), var(--shadow-sm);
  background: var(--surface-elevated);
}

.form-control::placeholder {
  color: var(--text-disabled);
}

select.form-control {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

select.form-control option {
  background: var(--surface-elevated);
  color: var(--text-primary);
  padding: var(--space-2);
}

textarea.form-control {
  min-height: 100px;
  resize: vertical;
  line-height: 1.5;
}

/* Input group */
.input-group {
  display: flex;
  align-items: stretch;
}

.input-group-addon {
  display: flex;
  align-items: center;
  padding: 0 var(--space-4);
  background: var(--surface-elevated);
  border: 1.5px solid var(--border);
  border-right: none;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 600;
}

.input-group .form-control {
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  flex: 1;
}

/* Date picker group */
.input-group.date {
  position: relative;
}

.input-group.date .input-group-addon {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  border: none;
  background: transparent;
  padding: 0 var(--space-3);
  cursor: pointer;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255,255,255,0.1), transparent);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn:hover::after {
  opacity: 1;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--amber);
  color: var(--void);
}

.btn-primary:hover {
  background: var(--amber-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-secondary);
  border: 1.5px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--text-muted);
  color: var(--text-primary);
  background: rgba(255,255,255,0.04);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.btn-danger:hover {
  background: #ff6e6e;
  box-shadow: 0 0 20px rgba(255,82,82,0.3);
}

.btn-success {
  background: var(--success);
  color: var(--void);
}

.btn-success:hover {
  background: #8affc1;
  box-shadow: 0 0 20px rgba(105,240,174,0.3);
}

.btn-block {
  width: 100%;
}

.btn-lg {
  padding: var(--space-4) var(--space-6);
  font-size: 1rem;
}

/* ===== ALERTS ===== */
.alert {
  padding: var(--space-4);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-5);
  font-size: 0.875rem;
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  border: 1px solid transparent;
}

.alert-success {
  background: var(--success-bg);
  border-color: rgba(105,240,174,0.2);
  color: var(--success);
}

.alert-danger {
  background: var(--danger-bg);
  border-color: rgba(255,82,82,0.2);
  color: var(--danger);
}

.alert-info {
  background: var(--info-bg);
  border-color: rgba(68,138,255,0.2);
  color: var(--info);
}

/* ===== PROGRESS BARS ===== */
.progress {
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--amber);
  border-radius: var(--radius-full);
  transition: width 0.5s ease;
}

.progress-bar.danger { background: var(--danger); }
.progress-bar.success { background: var(--success); }
.progress-bar.warning { background: #ff9100; }

/* ===== LABELS/BADGES ===== */
.label {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.label-info {
  background: var(--info-bg);
  color: var(--info);
}

.label-success {
  background: var(--success-bg);
  color: var(--success);
}

.label-danger {
  background: var(--danger-bg);
  color: var(--danger);
}

.label-amber {
  background: var(--amber-dim);
  color: var(--amber);
}

/* ===== LOGIN PAGE ===== */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--void);
  position: relative;
  padding: var(--space-6);
}

.login-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(255,193,7,0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(255,193,7,0.02) 0%, transparent 50%);
  pointer-events: none;
}

.login-container {
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 1;
}

.login-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  box-shadow: var(--shadow-lg);
}

.login-header {
  text-align: center;
  margin-bottom: var(--space-8);
}

.login-header .logo {
  width: 56px;
  height: 56px;
  background: var(--amber);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
  color: var(--void);
  font-size: 1.75rem;
  box-shadow: var(--shadow-glow);
}

.login-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
  letter-spacing: -0.02em;
}

.login-header p {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.login-footer {
  text-align: center;
  margin-top: var(--space-6);
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.login-footer a {
  color: var(--amber);
  font-weight: 500;
}

.login-footer a:hover {
  text-decoration: underline;
}

/* ===== GRID SYSTEM (simple) ===== */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 calc(-1 * var(--space-3));
}

.col-6 {
  flex: 0 0 50%;
  max-width: 50%;
  padding: 0 var(--space-3);
}

.col-4 {
  flex: 0 0 33.333%;
  max-width: 33.333%;
  padding: 0 var(--space-3);
}

.col-3 {
  flex: 0 0 25%;
  max-width: 25%;
  padding: 0 var(--space-3);
}

.col-8 {
  flex: 0 0 66.667%;
  max-width: 66.667%;
  padding: 0 var(--space-3);
}

.col-12 {
  flex: 0 0 100%;
  max-width: 100%;
  padding: 0 var(--space-3);
}

/* ===== TRANSACTION PAGE ===== */
.transaction-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}

/* ===== PANEL COLORS (for transaction cards) ===== */
.panel-danger {
  border-top: 3px solid var(--danger) !important;
}

.panel-primary {
  border-top: 3px solid var(--amber) !important;
}

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.pull-right { margin-left: auto; }

/* ===== MORRIS CHARTS ===== */
.morris-hover {
  background: var(--surface-elevated) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-md) !important;
  color: var(--text-primary) !important;
  padding: var(--space-3) var(--space-4) !important;
  font-family: var(--font-sans) !important;
  font-size: 0.8125rem !important;
}

/* ===== DATEPICKER ===== */
.datepicker {
  background: var(--surface-elevated) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-md) !important;
  color: var(--text-primary) !important;
  font-family: var(--font-sans) !important;
}

.datepicker td, .datepicker th {
  color: var(--text-secondary) !important;
  padding: var(--space-2) !important;
}

.datepicker table tr td.active,
.datepicker table tr td.active:hover {
  background: var(--amber) !important;
  color: var(--void) !important;
  border-radius: var(--radius-sm) !important;
}

.datepicker table tr td.day:hover {
  background: rgba(255,255,255,0.06) !important;
}

/* ===== FULLCALENDAR ===== */
.fc {
  color: var(--text-secondary) !important;
  font-family: var(--font-sans) !important;
}

.fc-widget-header {
  background: var(--surface) !important;
  border-color: var(--border) !important;
  color: var(--text-muted) !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  font-size: 0.6875rem !important;
  letter-spacing: 0.08em !important;
}

.fc-widget-content {
  border-color: var(--border) !important;
}

.fc-state-default {
  background: var(--card) !important;
  border-color: var(--border) !important;
  color: var(--text-secondary) !important;
  text-shadow: none !important;
  box-shadow: none !important;
}

.fc-state-active {
  background: var(--amber) !important;
  color: var(--void) !important;
  border-color: var(--amber) !important;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.card, .stat-card {
  animation: fadeIn 0.3s ease-out;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }

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

  #main-content {
    margin-left: 0;
    padding: var(--space-4);
  }

  .navbar-top {
    left: 0;
    padding: 0 var(--space-4);
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }

  .col-6, .col-4, .col-3, .col-8 {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: var(--space-4);
  }

  .login-card {
    padding: var(--space-6);
  }

  .transaction-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .login-container {
    padding: var(--space-4);
  }

  .login-card {
    padding: var(--space-5);
  }

  .stat-card .stat-value {
    font-size: 1.5rem;
  }

  .navbar-top .user-name {
    display: none;
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
