/* Base Variables - Matching Android App Theme */
:root {
  --bg-primary: #121212;
  --bg-secondary: #1e1e1e;
  --bg-glass: #1e1e1e;
  --bg-glass-hover: #262626;
  --border-glass: #2a2a2a;
  --border-focus: #00bfa5;
  
  --text-primary: #e0e0e0;
  --text-secondary: #a0a0a0;
  --text-muted: #707070;
  
  --primary: #00bfa5;              /* Vibrant Teal */
  --primary-hover: #009688;
  --success: #00bfa5;
  --success-hover: #009688;
  --danger: #cf6679;               /* Material Dark Error */
  --danger-hover: #b85466;
  --warning: #ffa726;
  --warning-hover: #f57c00;
  
  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  min-height: 100vh;
  padding-bottom: 90px; /* Space for bottom nav */
}

/* No glowing background blobs to match the clean app slate background */
.blob {
  display: none !important;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Typography & Layout Utility */
h1 { font-size: 24px; font-weight: 700; letter-spacing: -0.5px; }
h2 { font-size: 20px; font-weight: 600; letter-spacing: -0.3px; }
h3 { font-size: 16px; font-weight: 600; }
h4 { font-size: 14px; font-weight: 500; color: var(--text-secondary); margin-bottom: 12px; }
p { font-size: 14px; color: var(--text-secondary); }
.subtitle { font-size: 12px; color: var(--text-muted); }
.text-right { text-align: right; }
.text-secondary { color: var(--text-secondary); }
.hidden { display: none !important; }
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* App Container */
.app-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 84px 16px env(safe-area-inset-bottom) 16px;
}

/* Header */
.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  z-index: 90;
  background: var(--bg-primary-glass, rgba(15, 23, 42, 0.95));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-glass);
  padding: 0 16px;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}
.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sync-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
}
.sync-badge.online { color: var(--success); }
.sync-badge.offline { color: var(--danger); }

/* Navigation Bar (Material Design 3 Bottom Navigation) */
.nav-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1e1e1e;
  border-top: 1px solid var(--border-glass);
  display: flex;
  justify-content: space-around;
  padding: 12px 10px calc(8px + env(safe-area-inset-bottom)) 10px;
  z-index: 100;
  max-width: 600px;
  margin: 0 auto;
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.4);
}
.nav-item {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-family: var(--font-main);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  width: 20%;
  transition: var(--transition-fast);
}
.nav-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 32px;
  border-radius: 16px;
  transition: var(--transition-fast);
}
.nav-icon {
  width: 22px;
  height: 22px;
  stroke: var(--text-secondary);
  transition: var(--transition-fast);
}
.nav-item.active .nav-icon-wrapper {
  background-color: rgba(0, 191, 165, 0.15); /* primaryContainer-like glow */
}
.nav-item.active .nav-icon {
  stroke: var(--primary);
}
.nav-item.active span {
  color: var(--primary);
  font-weight: 600;
}

/* Material Design 3 Solid Cards (Matching Android App Surface Layout) */
.card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: var(--transition-normal);
}
.card:hover {
  background: var(--bg-glass-hover);
  border-color: rgba(255, 255, 255, 0.12);
}
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

/* Metrics Cards (Gradients) */
.metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.metrics-grid.cols-2 {
  grid-template-columns: 1fr 1fr;
}
.metrics-grid.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 600px) {
  .metrics-grid.cols-4 {
    grid-template-columns: 1fr 1fr;
  }
}
.metric-card {
  border-radius: var(--radius-md);
  padding: 14px 10px;
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}
.metric-card::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 100%);
  pointer-events: none;
}
.gradient-purple { background: linear-gradient(135deg, #00bfa5 0%, #004d40 100%); }
.gradient-red { background: linear-gradient(135deg, #cf6679 0%, #801825 100%); }
.gradient-blue { background: linear-gradient(135deg, #00897b 0%, #00372f 100%); }
.gradient-emerald { background: linear-gradient(135deg, #10b981 0%, #065f46 100%); }
.gradient-orange { background: linear-gradient(135deg, #f59e0b 0%, #78350f 100%); }
.gradient-emerald-dark { background: linear-gradient(135deg, #059669 0%, #064e3b 100%); }


.card-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.7);
  display: block;
  margin-bottom: 4px;
}
.metric-card h2 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-footer {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 6px;
}

/* Budget Progress Tracker */
.budget-card {
  border: 1px solid rgba(0, 191, 165, 0.2);
  background: linear-gradient(180deg, rgba(0, 191, 165, 0.08) 0%, rgba(30, 30, 30, 0.6) 100%);
}
.budget-numbers {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}
.budget-numbers .label {
  font-size: 11px;
  color: var(--text-secondary);
}
.budget-numbers .val {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}
.progress-container {
  height: 8px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #6366f1 0%, #10b981 100%);
  border-radius: 4px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.progress-footer {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 500;
}
.badge {
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 20px;
  font-weight: 600;
}
.bg-success { background: rgba(16, 185, 129, 0.2); color: var(--success); }
.bg-danger { background: rgba(239, 68, 68, 0.2); color: var(--danger); }
.bg-primary { background: rgba(99, 102, 241, 0.2); color: var(--primary); }

/* Category Contribution list */
.category-breakdown-section {
  margin-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 14px;
}
.category-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.category-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.category-info {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}
.category-name-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}
.category-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.category-percent-container {
  height: 4px;
  background: rgba(255,255,255,0.04);
  border-radius: 2px;
  overflow: hidden;
}
.category-percent-bar {
  height: 100%;
  border-radius: 2px;
}

/* Cash Holders Grid */
.cash-holders-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}
.holder-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: var(--transition-normal);
}
.holder-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.15);
}
.holder-card h4 {
  color: var(--text-primary);
  margin-bottom: 4px;
}
.holder-balance {
  font-size: 16px;
  font-weight: 700;
  color: var(--success);
  margin: 6px 0;
}
.holder-stats {
  font-size: 9px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
}

/* Tab Management */
.tab-content {
  display: none;
  animation: fadeIn 0.3s ease;
}
.tab-content.active {
  display: block;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Tab Header Actions */
.tab-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.search-card {
  padding: 10px;
}

/* Buttons */
.btn {
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-block {
  display: flex;
  width: 100%;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
}
.btn-danger-action {
  background: var(--danger);
}
.btn-danger-action:hover {
  background: var(--danger-hover);
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
}
.btn-warning-action {
  background: var(--warning);
  color: #000;
}
.btn-warning-action:hover {
  background: var(--warning-hover);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}
.btn-icon-only {
  padding: 10px;
  border-radius: 50%;
  aspect-ratio: 1;
}

/* Form Controls */
.form-group {
  margin-bottom: 14px;
}
.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.form-control {
  width: 100%;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 12px 14px;
  font-family: var(--font-main);
  font-size: 13px;
  transition: var(--transition-fast);
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--border-focus);
}
select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
}

/* Items List Container */
.list-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.list-item {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}
.item-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.item-title {
  font-weight: 600;
  color: var(--text-primary);
}
.item-subtitle {
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  gap: 12px;
}
.item-meta {
  font-size: 11px;
  color: var(--text-muted);
}
.item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.item-amount {
  font-weight: 700;
  font-size: 15px;
}
.amount-plus { color: var(--success); }
.amount-minus { color: var(--danger); }

/* Modals */
.modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 16px;
}
.modal.open {
  opacity: 1;
  pointer-events: auto;
}
.modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}
.modal.open .modal-content {
  transform: translateY(0);
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.close-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 24px;
  cursor: pointer;
}
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

/* Authentication Overlay */
.login-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg-primary);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.login-card {
  width: 100%;
  max-width: 380px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 10px 45px rgba(0,0,0,0.3);
}
.login-logo {
  text-align: center;
  margin-bottom: 24px;
}
.login-logo img {
  width: 60px;
  margin-bottom: 12px;
}
.login-logo h2 {
  font-size: 22px;
  font-weight: 700;
}
.login-logo p {
  font-size: 12px;
  color: var(--text-muted);
}
.login-error {
  color: var(--danger);
  font-size: 12px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  padding: 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  text-align: center;
}

/* Quick Actions Grid (MD3 look, matching app) */
.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px 12px;
  justify-items: center;
  align-items: center;
  padding: 6px 0;
}
.action-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-align: center;
  width: 80px;
  transition: transform 0.15s ease;
}
.action-item:active {
  transform: scale(0.92);
}
.action-icon-bg {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: var(--transition-fast);
}
.action-item span {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-primary);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Background Color Badges for Quick Actions - Matching App Color Specs */
.bg-success { background-color: rgba(0, 191, 165, 0.15); color: #00bfa5; }
.bg-danger { background-color: rgba(207, 102, 121, 0.15); color: #cf6679; }
.bg-primary { background-color: rgba(30, 144, 255, 0.15); color: #2196f3; }
.bg-success-light { background-color: rgba(0, 150, 136, 0.15); color: #80cbc4; }
.bg-warning { background-color: rgba(255, 183, 77, 0.15); color: #ffb74d; }
.bg-purple { background-color: rgba(139, 92, 246, 0.15); color: #a78bfa; }

.action-icon-bg svg {
  stroke: currentColor;
}

.header-branding {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-logo-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background-color: rgba(99, 102, 241, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}
.header-logo-icon svg {
  stroke: var(--primary);
}
.header-avatar-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid var(--border-glass);
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-secondary);
}
.header-avatar-btn:hover {
  border-color: var(--primary);
  transform: scale(1.05);
}
.header-avatar {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 100%);
  color: white;
}

.date-filter-card {
  border: 1px solid var(--border-glass);
  background: var(--bg-secondary);
}
.card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.card-title-with-icon {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-title-with-icon svg {
  color: var(--primary);
}
.form-control-compact {
  width: 100%;
  background: rgba(15, 23, 42, 0.3);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 8px 12px;
  font-family: var(--font-main);
  font-size: 13px;
  height: 38px;
  transition: var(--transition-fast);
}
.form-control-compact:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}
.btn-small {
  padding: 6px 12px;
  font-size: 11px;
  height: auto;
  border-radius: 6px;
}
.mb-0 {
  margin-bottom: 0 !important;
}

/* Section Title */
.section-title {
  margin: 20px 0 12px 0;
  font-weight: 600;
}

.zakat-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.zakat-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Responsive adjust for desktop view */
@media (min-width: 600px) {
  body {
    padding-bottom: 20px;
  }
  .nav-bar {
    position: sticky;
    top: 0;
    bottom: auto;
    border-radius: 0 0 20px 20px;
    margin-bottom: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  }
  .app-container {
    padding: 0 16px 40px 16px;
  }
}

/* Full-fledged Desktop Dashboard styling */
@media (min-width: 992px) {
  body {
    padding-bottom: 0;
  }
  .app-container {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 96px 40px 40px 280px !important;
  }
  
  /* permanent vertical navigation sidebar on the left */
  .nav-bar {
    display: flex !important;
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    right: auto !important;
    width: 250px !important;
    height: 100vh !important;
    border-radius: 0 !important;
    border-top: none !important;
    border-right: 1px solid var(--border-glass) !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    padding: 40px 16px !important;
    gap: 10px !important;
    z-index: 1000 !important;
    margin: 0 !important;
    box-shadow: none !important;
    max-width: none !important;
  }
  .nav-item {
    width: 100%;
    flex-direction: row;
    align-items: center;
    padding: 10px 14px;
    border-radius: 12px;
    gap: 14px;
    text-align: left;
  }
  .nav-icon-wrapper {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    margin: 0;
  }
  .nav-item span {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    display: inline-block;
  }
  .nav-item.active span {
    color: var(--primary);
  }
  .nav-item:hover {
    color: var(--text-primary);
  }
  .nav-item:hover .nav-icon-wrapper {
    background-color: rgba(255, 255, 255, 0.04);
  }
  body.light-theme .nav-item:hover .nav-icon-wrapper {
    background-color: rgba(0, 0, 0, 0.03);
  }
  
  /* Sidebar design tweaks for light theme */
  body.light-theme .nav-bar {
    border-right: 1px solid var(--border-glass);
    box-shadow: 4px 0 16px rgba(0, 0, 0, 0.02);
  }

  /* Two Column Dashboard Grid layout */
  .dashboard-layout {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 28px;
    align-items: start;
  }
  
  /* Reports Form & Results side by side */
  .reports-layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 28px;
    align-items: start;
  }
  
  /* Stats tab content side by side */
  .stats-layout {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 28px;
    align-items: start;
  }
  
  /* Zakat tab content side by side */
  .zakat-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: start;
  }

  /* Donors directory grid of cards */
  #donors-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
  }
}


/* Light Theme Variables overriding deep slate variables */
body.light-theme {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-glass: #ffffff;
  --bg-glass-hover: #f1f5f9;
  --bg-surface: #ffffff;
  --border-glass: #e2e8f0;
  --border-color: #cbd5e1;
  --border-focus: #10b981;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  
  --primary: #10b981;               /* Emerald Green */
  --primary-hover: #059669;
  --primary-light: #d1fae5;
  --secondary: #1e3a8a;             /* Deep Blue */
  --success: #10b981;
  --success-hover: #059669;
  --danger: #ef4444;
  --danger-hover: #dc2626;
  --warning: #f59e0b;
  --warning-hover: #d97706;
}

body.light-theme .app-header {
  border-bottom: 1px solid #e2e8f0;
  background-color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

body.light-theme .nav-bar {
  background: #ffffff !important;
  border-top: 1px solid #e2e8f0 !important;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.03) !important;
}

body.light-theme .nav-item {
  color: #64748b !important;
}
body.light-theme .nav-item:hover {
  color: #0f172a !important;
}
body.light-theme .nav-item.active {
  color: var(--primary) !important;
}
body.light-theme .nav-item.active .nav-icon-wrapper {
  background-color: rgba(16, 185, 129, 0.08) !important;
}
body.light-theme .nav-item.active .nav-icon {
  stroke: var(--primary) !important;
}

body.light-theme .sync-badge {
  background: #f1f5f9;
  color: #475569;
  border-color: #e2e8f0;
}
body.light-theme .sync-badge.online { color: #10b981; }

body.light-theme .action-icon-bg {
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* Light Mode Card Shadows and Backgrounds */
body.light-theme .card {
  border-color: #e2e8f0 !important;
  background-color: #ffffff !important;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05) !important;
}
body.light-theme .card:hover {
  border-color: #cbd5e1 !important;
  background-color: #ffffff !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05) !important;
}

/* Dashboard Metric Cards for Light Theme */
body.light-theme .metric-card {
  border-radius: 12px !important;
  padding: 16px 14px !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02) !important;
  border: 1px solid rgba(0,0,0,0.05) !important;
  border-left-width: 4px !important;
  border-left-style: solid !important;
  transition: all 0.2s ease !important;
}
body.light-theme .metric-card:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.06) !important;
}

/* Card specific colors & backgrounds */
/* Zakat Balance */
body.light-theme .metric-card.gradient-purple {
  background: #f0fdfa !important;
  border-left-color: #0d9488 !important;
  border-color: #ccfbf1 !important;
}
body.light-theme .metric-card.gradient-purple h2,
body.light-theme .metric-card.gradient-purple .card-label,
body.light-theme .metric-card.gradient-purple .card-footer {
  color: #115e59 !important;
}

/* General Balance */
body.light-theme .metric-card.gradient-blue {
  background: #eff6ff !important;
  border-left-color: #2563eb !important;
  border-color: #dbeafe !important;
}
body.light-theme .metric-card.gradient-blue h2,
body.light-theme .metric-card.gradient-blue .card-label,
body.light-theme .metric-card.gradient-blue .card-footer {
  color: #1e40af !important;
}

/* Grand Total Income */
body.light-theme .metric-card[style*="#3e2723"] {
  background: #fdf2f8 !important; /* Soft rose */
  border-left-color: #db2777 !important;
  border-color: #fce7f3 !important;
}
body.light-theme .metric-card[style*="#3e2723"] h2,
body.light-theme .metric-card[style*="#3e2723"] .card-label,
body.light-theme .metric-card[style*="#3e2723"] .card-footer {
  color: #9d174d !important;
}

/* Zakat Income */
body.light-theme .metric-card[style*="#512da8"] {
  background: #faf5ff !important; /* Soft purple */
  border-left-color: #8b5cf6 !important;
  border-color: #f3e8ff !important;
}
body.light-theme .metric-card[style*="#512da8"] h2,
body.light-theme .metric-card[style*="#512da8"] .card-label,
body.light-theme .metric-card[style*="#512da8"] .card-footer {
  color: #5b21b6 !important;
}

/* Total Income Excl Zakat */
body.light-theme .metric-card.gradient-emerald {
  background: #f0fdf4 !important; /* Soft green */
  border-left-color: #16a34a !important;
  border-color: #dcfce7 !important;
}
body.light-theme .metric-card.gradient-emerald h2,
body.light-theme .metric-card.gradient-emerald .card-label,
body.light-theme .metric-card.gradient-emerald .card-footer {
  color: #166534 !important;
}

/* Attiyat / Donations */
body.light-theme .metric-card[style*="background: #2e7d32;"] {
  background: #f0fdf4 !important;
  border-left-color: #16a34a !important;
  border-color: #dcfce7 !important;
}
body.light-theme .metric-card[style*="background: #2e7d32;"] h2,
body.light-theme .metric-card[style*="background: #2e7d32;"] .card-label {
  color: #166534 !important;
}

/* Fees */
body.light-theme .metric-card[style*="background: #0288d1;"] {
  background: #f0f9ff !important; /* Soft sky blue */
  border-left-color: #0284c7 !important;
  border-color: #e0f2fe !important;
}
body.light-theme .metric-card[style*="background: #0288d1;"] h2,
body.light-theme .metric-card[style*="background: #0288d1;"] .card-label {
  color: #0369a1 !important;
}

/* Books */
body.light-theme .metric-card[style*="background: #1565c0;"] {
  background: #e0f2fe !important;
  border-left-color: #0369a1 !important;
  border-color: #bae6fd !important;
}
body.light-theme .metric-card[style*="background: #1565c0;"] h2,
body.light-theme .metric-card[style*="background: #1565c0;"] .card-label {
  color: #075985 !important;
}

/* Other Incomes */
body.light-theme .metric-card[style*="background: #ef6c00;"] {
  background: #fff7ed !important; /* Soft orange */
  border-left-color: #ea580c !important;
  border-color: #ffedd5 !important;
}
body.light-theme .metric-card[style*="background: #ef6c00;"] h2,
body.light-theme .metric-card[style*="background: #ef6c00;"] .card-label {
  color: #9a3412 !important;
}

/* General Expenses */
body.light-theme .metric-card[style*="background: #f57c00;"] {
  background: #fffbeb !important; /* Soft amber */
  border-left-color: #d97706 !important;
  border-color: #fef3c7 !important;
}
body.light-theme .metric-card[style*="background: #f57c00;"] h2,
body.light-theme .metric-card[style*="background: #f57c00;"] .card-label {
  color: #92400e !important;
}

/* Book Expenses */
body.light-theme .metric-card[style*="background: #e65100;"] {
  background: #fff7ed !important;
  border-left-color: #ea580c !important;
  border-color: #ffedd5 !important;
}
body.light-theme .metric-card[style*="background: #e65100;"] h2,
body.light-theme .metric-card[style*="background: #e65100;"] .card-label {
  color: #9a3412 !important;
}

/* Total Gen+Book Exp */
body.light-theme .metric-card[style*="background: #d32f2f;"] {
  background: #fef2f2 !important; /* Soft red */
  border-left-color: #dc2626 !important;
  border-color: #fee2e2 !important;
}
body.light-theme .metric-card[style*="background: #d32f2f;"] h2,
body.light-theme .metric-card[style*="background: #d32f2f;"] .card-label {
  color: #991b1b !important;
}

/* Zakat Expenses */
body.light-theme .metric-card[style*="background: #b71c1c;"] {
  background: #fef2f2 !important;
  border-left-color: #b91c1c !important;
  border-color: #fee2e2 !important;
}
body.light-theme .metric-card[style*="background: #b71c1c;"] h2,
body.light-theme .metric-card[style*="background: #b71c1c;"] .card-label {
  color: #7f1d1d !important;
}

/* Budget card overrides */
body.light-theme .budget-card {
  border: 1px solid #e2e8f0 !important;
  background: #ffffff !important;
}
body.light-theme .progress-container {
  background: #f1f5f9;
}
body.light-theme .category-percent-container {
  background: #f8fafc;
}

/* Forms & inputs */
body.light-theme .form-control {
  background: #ffffff;
  border-color: #cbd5e1;
  color: var(--text-primary);
}
body.light-theme .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

/* Donor Cards on light theme */
body.light-theme .donor-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
body.light-theme .donor-card:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}
body.light-theme .donor-card-stats {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

/* List items / Transaction history on light theme */
body.light-theme .list-item {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
body.light-theme .list-item:hover {
  background: #f8fafc;
}
body.light-theme .unread-notif {
  background: rgba(99, 102, 241, 0.05) !important;
}

/* Modals on light theme */
body.light-theme .modal-content {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Buttons in light theme */
body.light-theme .btn-secondary {
  background: #ffffff;
  color: #475569;
  border: 1px solid #cbd5e1;
}
body.light-theme .btn-secondary:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #94a3b8;
}

/* Quick Action Tiles in light theme */
body.light-theme .action-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 12px;
  width: 90px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.02);
  transition: all 0.2s ease;
}
body.light-theme .action-item:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* Date filter card in light theme */
body.light-theme .date-filter-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 16px 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}
body.light-theme .form-control-compact {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  font-weight: 500;
}
body.light-theme .form-control-compact:focus {
  border-color: var(--primary);
  background: #ffffff;
}

/* Profile screen styles in light theme */
body.light-theme .profile-info-card {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05) !important;
}

/* Settings header and sub classes */
.settings-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

/* Stats Premium credit card styles */
.credit-card-container {
  margin-bottom: 20px;
  perspective: 1000px;
}
.credit-card {
  background: linear-gradient(135deg, #00BFA5 0%, #3F51B5 50%, #8E24AA 100%);
  border-radius: 24px;
  padding: 24px;
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(63, 81, 181, 0.35);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 160px;
  position: relative;
  overflow: hidden;
}
.credit-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 150%;
  height: 150%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
  pointer-events: none;
}
.card-chip-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.card-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  opacity: 0.8;
  text-transform: uppercase;
}
.card-chip {
  width: 42px;
  height: 32px;
  background: #ffd54f;
  border: 1px solid #f57f17;
  border-radius: 6px;
  position: relative;
}
.card-chip::after {
  content: '';
  position: absolute;
  top: 6px; left: 10px; right: 10px; bottom: 6px;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 2px;
}
.card-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.card-number {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  opacity: 0.9;
}
.card-brand {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

/* 4 Metrics grid on stats tab */
.stats-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}
.stats-metric-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 14px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}
.metric-label-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}
.stats-metric-card .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.dot-green { background-color: #2e7d32; }
.dot-teal { background-color: #00bfa5; }
.dot-red { background-color: #cf6679; }
.dot-orange { background-color: #ffb74d; }

.stats-metric-card .label {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 500;
}
.stats-metric-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

/* Notification unread style */
.unread-notif {
  border-left: 4px solid var(--primary) !important;
  background: rgba(0, 191, 165, 0.05) !important;
}
body.light-theme .unread-notif {
  background: rgba(0, 137, 123, 0.04) !important;
}
.btn-small {
  padding: 4px 8px;
  font-size: 11px;
  border-radius: var(--radius-sm);
  height: auto;
}
.btn-danger-text {
  color: var(--danger) !important;
  background: transparent !important;
  border-color: transparent !important;
}
.btn-danger-text:hover {
  background: rgba(207, 102, 121, 0.1) !important;
}

/* Profile Screen Styles */
.profile-info-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
}
.profile-avatar-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
}
.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
}
.profile-meta-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.profile-meta-info h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}
.profile-meta-info .subtitle {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
}
.profile-details-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
  padding: 12px 0;
  margin: 10px 0;
}
.detail-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}
.detail-label {
  color: var(--text-secondary);
}
.detail-val {
  font-weight: 500;
  color: var(--text-primary);
}
.monospace {
  font-family: monospace;
}
.btn-danger-action {
  background-color: var(--danger);
  border-color: var(--danger);
  color: white;
}
.btn-danger-action:hover {
  background-color: var(--danger-hover);
  border-color: var(--danger-hover);
}

/* ================= ADVANCED DONOR DIRECTORY STYLES ================= */

.donors-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 16px;
}

@media (min-width: 768px) {
  .donors-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.donor-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: var(--transition-normal);
  position: relative;
}

.donor-card:hover {
  background: var(--bg-glass-hover);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.donor-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.donor-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 2px 8px rgba(0, 191, 165, 0.3);
}

.donor-card-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

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

.donor-card-location {
  font-size: 11px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.donor-card-stats {
  display: flex;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
  padding: 10px 12px;
}

.donor-stat-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.donor-stat-label {
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.donor-stat-val {
  font-weight: 600;
  font-size: 12px;
  color: var(--text-primary);
}

.donor-stat-val.amount {
  color: var(--success);
}

.donor-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.donor-card-actions .btn {
  padding: 8px 12px;
  font-size: 11px;
  border-radius: var(--radius-sm);
  flex: 1;
  height: 32px;
}

/* Inactive donor badge styling */
.badge-inactive {
  background-color: rgba(207, 102, 121, 0.12);
  color: var(--danger);
  border: 1px solid rgba(207, 102, 121, 0.2);
}

.badge-active {
  background-color: rgba(0, 191, 165, 0.12);
  color: var(--primary);
  border: 1px solid rgba(0, 191, 165, 0.2);
}

/* Print Stylesheet for Donor Ledgers */
@media print {
  body * {
    visibility: hidden;
  }
  .print-ledger-container, .print-ledger-container * {
    visibility: visible;
  }
  .print-ledger-container {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    color: #000 !important;
    background: #fff !important;
    font-family: sans-serif;
    padding: 20px;
  }
}

/* ================= NEW MODERN DASHBOARD STYLES ================= */

/* Responsive Layout Grid */
@media (min-width: 992px) {
  .app-container {
    max-width: 100%;
    margin: 0;
    padding-left: 290px;
    padding-right: 32px;
    padding-top: 84px; /* Space for 64px header + margin */
    padding-bottom: 32px;
  }
  .app-header {
    position: fixed;
    top: 0;
    left: 270px;
    right: 0;
    z-index: 90;
    background: var(--bg-primary-glass, rgba(15, 23, 42, 0.95));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-glass);
    height: 64px;
    padding: 0 32px;
    display: flex;
    align-items: center;
  }
  .header-content {
    width: 100%;
  }
  .app-main {
    padding: 16px 0;
  }
  aside.desktop-sidebar.nav-bar {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 270px;
    height: 100vh;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-glass);
    border-top: none;
    border-radius: 0;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.02);
    padding: 24px;
    max-width: none;
    margin: 0;
    z-index: 100;
  }
  .mobile-bottom-nav {
    display: none !important;
  }
}

@media (max-width: 991px) {
  aside.desktop-sidebar {
    display: none !important;
  }
  .mobile-bottom-nav {
    display: flex !important;
  }
  .app-container {
    max-width: 680px;
    margin: 0 auto;
    padding-bottom: 100px; /* Space for bottom nav */
  }
}

/* Sidebar Specific Elements */
.sidebar-header {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-glass);
}
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sidebar-logo-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}
.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
  flex: 1;
  width: 100%;
}
.sidebar-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}
.sidebar-group-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.75px;
  color: var(--text-muted);
  margin-bottom: 6px;
  padding-left: 8px;
}
aside.desktop-sidebar .nav-item {
  width: 100% !important;
  flex-direction: row !important;
  justify-content: flex-start !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 10px 12px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  background: transparent;
}
aside.desktop-sidebar .nav-item:hover {
  background: var(--bg-glass-hover);
  color: var(--text-primary);
}
aside.desktop-sidebar .nav-item.active {
  background: rgba(16, 185, 129, 0.08) !important;
  color: var(--primary) !important;
}
aside.desktop-sidebar .nav-item.active .nav-icon {
  stroke: var(--primary) !important;
}
aside.desktop-sidebar .nav-icon-wrapper {
  width: auto !important;
  height: auto !important;
  background: transparent !important;
  border-radius: 0 !important;
  display: flex;
  align-items: center;
}
aside.desktop-sidebar .nav-icon {
  width: 18px;
  height: 18px;
  stroke: var(--text-secondary);
}

/* Dashboard Hero */
.dashboard-hero-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.04) 0%, rgba(30, 58, 138, 0.04) 100%);
  border-radius: 16px;
  border: 1px solid var(--border-glass);
}
@media (max-width: 768px) {
  .dashboard-hero-section {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
}
.hero-left .hero-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  margin-bottom: 6px;
}
.hero-left .hero-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
  letter-spacing: -0.5px;
}
.hero-left .hero-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
}
.hero-right .hero-date-filter {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}
.filter-inputs {
  display: flex;
  gap: 8px;
}
.filter-input-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.filter-input-group label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}
.hero-input {
  background: var(--bg-primary);
  border: 1px solid var(--border-glass);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px;
  color: var(--text-primary);
  font-family: var(--font-main);
  outline: none;
  transition: border-color var(--transition-fast);
}
.hero-input:focus {
  border-color: var(--primary);
}
.btn-clear-filter {
  background: transparent;
  border: none;
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  text-align: right;
  font-family: var(--font-main);
}
.btn-clear-filter:hover {
  text-decoration: underline;
}

/* KPI Cards Section */
.kpi-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
@media (max-width: 992px) {
  .kpi-cards-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 576px) {
  .kpi-cards-grid {
    grid-template-columns: 1fr;
  }
}
.kpi-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}
.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}
.kpi-card .kpi-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.kpi-card .kpi-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
}
.kpi-card .kpi-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.kpi-card h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  letter-spacing: -0.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kpi-card .kpi-trend {
  font-size: 11px;
  font-weight: 500;
}
.kpi-card.today-collection { border-top: 4px solid #10b981; }
.kpi-card.today-expense { border-top: 4px solid #ef4444; }
.kpi-card.cash-balance { border-top: 4px solid #3b82f6; }
.kpi-card.zakat-balance { border-top: 4px solid #0d9488; }

body.light-theme .kpi-card.today-collection { background: #f0fdf4; border-color: #dcfce7; border-top-color: #10b981; }
body.light-theme .kpi-card.today-expense { background: #fef2f2; border-color: #fee2e2; border-top-color: #ef4444; }
body.light-theme .kpi-card.cash-balance { background: #eff6ff; border-color: #dbeafe; border-top-color: #3b82f6; }
body.light-theme .kpi-card.zakat-balance { background: #f0fdfa; border-color: #ccfbf1; border-top-color: #0d9488; }

/* Financial Summary Grid */
.section-container {
  margin-bottom: 24px;
}
.section-header {
  margin-bottom: 12px;
}
.section-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}
.financial-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 992px) {
  .financial-summary-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 576px) {
  .financial-summary-grid {
    grid-template-columns: 1fr;
  }
}
.summary-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  transition: all var(--transition-fast);
  cursor: pointer;
  position: relative;
}
.summary-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.04);
}
.summary-card .card-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}
.summary-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.summary-card.income { border-left: 4px solid #10b981; }
.summary-card.expense { border-left: 4px solid #ef4444; }
.summary-card.net { border-left: 4px solid #3b82f6; }
.summary-card.zakat-coll { border-left: 4px solid #0d9488; }
.summary-card.general-pool { border-left: 4px solid #6366f1; }
.summary-card.building-pool { border-left: 4px solid #8b5cf6; }
.summary-card.books-inc { border-left: 4px solid #f59e0b; }
.summary-card.fees-inc { border-left: 4px solid #3b82f6; }

body.light-theme .summary-card.income { background: #f0fdf4; border-color: #e2e8f0; border-left-color: #10b981; }
body.light-theme .summary-card.expense { background: #fef2f2; border-color: #e2e8f0; border-left-color: #ef4444; }
body.light-theme .summary-card.net { background: #eff6ff; border-color: #e2e8f0; border-left-color: #3b82f6; }
body.light-theme .summary-card.zakat-coll { background: #f0fdfa; border-color: #e2e8f0; border-left-color: #0d9488; }
body.light-theme .summary-card.general-pool { background: #f5f3ff; border-color: #e2e8f0; border-left-color: #6366f1; }
body.light-theme .summary-card.building-pool { background: #faf5ff; border-color: #e2e8f0; border-left-color: #8b5cf6; }
body.light-theme .summary-card.books-inc { background: #fffbeb; border-color: #e2e8f0; border-left-color: #f59e0b; }
body.light-theme .summary-card.fees-inc { background: #f0f9ff; border-color: #e2e8f0; border-left-color: #3b82f6; }

/* Interactive Main Chart Section */
.chart-card.main-chart-full {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}
.chart-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}
.chart-header-row h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}
.chart-tabs {
  display: flex;
  background: var(--bg-primary);
  border: 1px solid var(--border-glass);
  padding: 4px;
  border-radius: 8px;
}
.chart-tab {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-main);
}
.chart-tab:hover {
  color: var(--text-primary);
}
.chart-tab.active {
  background: var(--bg-secondary);
  color: var(--primary);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.chart-wrapper-full {
  position: relative;
  height: 320px;
  width: 100%;
}

/* Dashboard Bottom Grid split */
.dashboard-bottom-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  margin-bottom: 24px;
}
@media (max-width: 992px) {
  .dashboard-bottom-grid {
    grid-template-columns: 1fr;
  }
}

/* Timeline Activity Styles */
.timeline-container-new {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}
.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.timeline-item-new {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.timeline-item-new:hover {
  transform: translateX(3px);
  border-color: var(--primary);
  background: var(--bg-glass-hover);
}
.timeline-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}
.timeline-status-badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.timeline-status-badge.donation {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
}
.timeline-status-badge.expense {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
}
.timeline-status-badge.transfer {
  background: rgba(59, 130, 246, 0.12);
  color: #3b82f6;
}
.timeline-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.timeline-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.timeline-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-secondary);
  flex-wrap: wrap;
}
.timeline-collector {
  background: rgba(0, 0, 0, 0.04);
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 10px;
}
body.light-theme .timeline-collector {
  background: rgba(0, 0, 0, 0.03);
}
.timeline-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  margin-left: 12px;
}
.timeline-amount {
  font-size: 14px;
  font-weight: 700;
}
.timeline-amount.amount-plus { color: #10b981; }
.timeline-amount.amount-minus { color: #ef4444; }
.timeline-amount.amount-neutral { color: var(--text-primary); }
.timeline-tx-id {
  font-size: 9px;
  color: var(--text-muted);
  font-family: monospace;
}

/* Quick Actions Panel */
.dashboard-side-panels {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.quick-actions-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}
.quick-actions-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}
.quick-actions-list-new {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.action-btn-new {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg-primary);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  cursor: pointer;
  transition: all var(--transition-fast);
  width: 100%;
  text-align: left;
  font-family: var(--font-main);
}
.action-btn-new:hover {
  border-color: var(--primary);
  background: var(--bg-glass-hover);
  transform: translateY(-1px);
}
.action-btn-new:active {
  transform: scale(0.98);
}
.action-btn-new .action-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.action-btn-new span {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
}
.bg-emerald-light { background: rgba(16, 185, 129, 0.12); color: #10b981; }
.bg-red-light { background: rgba(239, 68, 68, 0.12); color: #ef4444; }
.bg-blue-light { background: rgba(59, 130, 246, 0.12); color: #3b82f6; }
.bg-teal-light { background: rgba(13, 148, 136, 0.12); color: #0d9488; }
.bg-amber-light { background: rgba(245, 158, 11, 0.12); color: #f59e0b; }
.bg-purple-light { background: rgba(139, 92, 246, 0.12); color: #8b5cf6; }

/* Budget Progress Tracker */
.budget-card-new {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}
.budget-card-new .card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.budget-card-new h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}
.budget-card-new .budget-numbers {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
}
.budget-card-new .budget-numbers .label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.budget-card-new .budget-numbers .val {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}
.budget-card-new .progress-container {
  height: 8px;
  background: var(--bg-primary);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 10px;
  border: 1px solid var(--border-glass);
}
.budget-card-new .progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #10b981 0%, #1e3a8a 100%);
  border-radius: 4px;
}
.budget-card-new .progress-footer {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.budget-card-new .category-breakdown-section h4 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

body.light-theme .budget-card-new {
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
body.light-theme .timeline-container-new {
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
body.light-theme .quick-actions-card {
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
body.light-theme .chart-card.main-chart-full {
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* ================= EXECUTIVE 12-COLUMN DASHBOARD GRID ================= */
.dashboard-grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  width: 100%;
}
.grid-col-8 {
  grid-column: span 8;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.grid-col-4 {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (max-width: 1100px) {
  .dashboard-grid-12 {
    grid-template-columns: 1fr;
  }
  .grid-col-8, .grid-col-4 {
    grid-column: span 12;
  }
}

/* Compact Greeting Card */
.greeting-card-compact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-radius: 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
}
@media (max-width: 600px) {
  .greeting-card-compact {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
}
.greeting-left {
  display: flex;
  flex-direction: column;
}
.greeting-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(16, 185, 129, 0.1);
  color: var(--primary);
  margin-bottom: 4px;
}
.greeting-card-compact h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.5px;
}
.greeting-org {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 2px 0 0 0;
}
.compact-date-filter {
  display: flex;
  align-items: center;
  gap: 8px;
}
.compact-filter-inputs {
  display: flex;
  align-items: center;
  gap: 4px;
}
.compact-input {
  background: var(--bg-primary);
  border: 1px solid var(--border-glass);
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 11px;
  color: var(--text-primary);
  outline: none;
  font-family: var(--font-main);
}
.filter-arrow {
  color: var(--text-muted);
  font-size: 11px;
}
.btn-clear-compact {
  background: transparent;
  border: none;
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  padding: 4px;
  font-family: var(--font-main);
}
.btn-clear-compact:hover {
  text-decoration: underline;
}

/* KPI Row (4 wide) */
.dashboard-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 768px) {
  .dashboard-kpi-row {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .dashboard-kpi-row {
    grid-template-columns: 1fr;
  }
}
.kpi-card-compact {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.kpi-card-compact:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.kpi-card-compact.today-collection { border-left: 4px solid #10b981; }
.kpi-card-compact.today-expense { border-left: 4px solid #ef4444; }
.kpi-card-compact.cash-balance { border-left: 4px solid #3b82f6; }
.kpi-card-compact.zakat-balance { border-left: 4px solid #0d9488; }

.kpi-card-compact .kpi-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
}
.kpi-card-compact .val {
  font-size: 18px;
  font-weight: 700;
  margin: 2px 0 0 0;
}

/* Quick Actions Panel */
.quick-actions-compact {
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
}
.quick-actions-list-compact {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}
@media (max-width: 768px) {
  .quick-actions-list-compact {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
}
.action-btn-compact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: background-color var(--transition-fast);
}
.action-btn-compact:hover {
  background-color: var(--bg-glass-hover);
}
.action-btn-compact .action-btn-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  background: var(--bg-primary);
}
.action-btn-compact span:last-child {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Financial Health Panels */
.financial-health-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 600px) {
  .financial-health-row {
    grid-template-columns: 1fr;
  }
}
.health-card {
  padding: 16px;
  border-radius: 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.health-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.health-card-header h4 {
  font-size: 13px;
  font-weight: 700;
  margin: 0;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.health-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}
.tag-green { background: rgba(16, 185, 129, 0.1); color: var(--success); }
.tag-blue { background: rgba(59, 130, 246, 0.1); color: var(--accent-color); }

.health-values, .funds-allocation-compact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.health-val-item, .fund-row-compact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 4px;
  border-bottom: 1px solid var(--border-glass);
  cursor: pointer;
  border-radius: 6px;
  transition: background-color var(--transition-fast);
}
.health-val-item:hover, .fund-row-compact:hover {
  background-color: var(--bg-glass-hover);
}
.health-val-item:last-child, .fund-row-compact:last-child {
  border-bottom: none;
}
.health-val-item .label, .fund-row-compact .label {
  font-size: 12px;
  color: var(--text-secondary);
}
.health-val-item .val, .fund-row-compact .val {
  font-size: 13px;
  font-weight: 600;
}
.highlighted-item {
  background: var(--bg-primary);
  padding: 8px;
  border-bottom: none;
}
.highlighted-item .label {
  font-weight: 700;
  color: var(--text-primary);
}
.highlighted-item .val {
  font-size: 14px;
  font-weight: 700;
}

/* Analytics Card */
.chart-card-new {
  padding: 16px;
  border-radius: 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.chart-header-compact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.chart-header-compact h4 {
  font-size: 13px;
  font-weight: 700;
  margin: 0;
  color: var(--text-primary);
}
.chart-tabs-compact {
  display: flex;
  gap: 2px;
  background: var(--bg-primary);
  padding: 2px;
  border-radius: 6px;
  border: 1px solid var(--border-glass);
}
.chart-tab-compact {
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 600;
  border-radius: 4px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-main);
}
.chart-tab-compact.active {
  background: var(--bg-secondary);
  color: var(--primary);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.chart-wrapper-compact {
  height: 240px;
  position: relative;
  width: 100%;
}

/* Right Sidebar: Timeline Activity */
.timeline-card-compact {
  padding: 16px;
  border-radius: 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 480px;
}
.card-header-compact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 6px;
}
.card-header-compact h4 {
  font-size: 13px;
  font-weight: 700;
  margin: 0;
  color: var(--text-primary);
}
.live-indicator {
  font-size: 9px;
  font-weight: 700;
  color: var(--success);
}
.timeline-list-compact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  padding-right: 2px;
}
.timeline-list-compact::-webkit-scrollbar {
  width: 4px;
}
.timeline-list-compact::-webkit-scrollbar-thumb {
  background: var(--border-glass);
  border-radius: 2px;
}
.timeline-item-new {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px;
  border-radius: 8px;
  background: var(--bg-primary);
  border: 1px solid var(--border-glass);
  cursor: pointer;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}
.timeline-item-new:hover {
  transform: translateX(2px);
  border-color: var(--primary);
}
.timeline-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.timeline-status-badge {
  font-size: 8px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  flex-shrink: 0;
}
.timeline-status-badge.donation { background: rgba(16, 185, 129, 0.1); color: var(--success); }
.timeline-status-badge.expense { background: rgba(239, 68, 68, 0.1); color: var(--danger); }
.timeline-status-badge.transfer { background: rgba(59, 130, 246, 0.1); color: var(--accent-color); }

.timeline-details {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.timeline-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.timeline-meta {
  font-size: 9px;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.timeline-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  margin-left: 6px;
  flex-shrink: 0;
}
.timeline-amount {
  font-size: 11px;
  font-weight: 700;
}
.timeline-amount.amount-plus { color: var(--success); }
.timeline-amount.amount-minus { color: var(--danger); }
.timeline-tx-id {
  font-size: 8px;
  color: var(--text-muted);
}

/* Annual Budget tracker */
.budget-card-compact {
  padding: 16px;
  border-radius: 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.budget-body-compact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.budget-numbers-compact {
  display: flex;
  justify-content: space-between;
}
.budget-numbers-compact .num-item {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.budget-numbers-compact .label {
  font-size: 10px;
  color: var(--text-secondary);
}
.budget-numbers-compact .val {
  font-size: 14px;
  font-weight: 700;
  margin: 0;
}
.progress-container-compact {
  width: 100%;
  height: 6px;
  background: var(--bg-primary);
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid var(--border-glass);
}
.progress-bar-compact {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-hover) 100%);
  border-radius: 3px;
}
.progress-footer-compact {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-secondary);
}
.category-breakdown-section-compact h5 {
  font-size: 11px;
  font-weight: 700;
  margin: 6px 0;
  color: var(--text-primary);
  text-transform: uppercase;
}
.category-list-compact {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.category-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.category-info {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
}
.category-name-tag {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}
.category-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}
.category-percent-container {
  width: 100%;
  height: 4px;
  background: var(--bg-primary);
  border-radius: 2px;
  border: 1px solid var(--border-glass);
}
.category-percent-bar {
  height: 100%;
  border-radius: 2px;
}

/* ================= PREMIUM LIGHT MODE OVERRIDES ================= */
body.light-theme {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border-glass: #e2e8f0;
}
body.light-theme .greeting-card-compact,
body.light-theme .kpi-card-compact,
body.light-theme .quick-actions-compact,
body.light-theme .health-card,
body.light-theme .chart-card-new,
body.light-theme .timeline-card-compact,
body.light-theme .budget-card-compact {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
body.light-theme .timeline-item-new {
  background: #f8fafc;
  border-color: #e2e8f0;
}
body.light-theme .chart-tab-compact {
  color: #64748b;
}
body.light-theme .chart-tab-compact.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
body.light-theme .progress-container-compact,
body.light-theme .category-percent-container {
  background: #f1f5f9;
}
body.light-theme .action-btn-compact:hover {
  background-color: #f1f5f9;
}
body.light-theme .health-val-item:hover,
body.light-theme .fund-row-compact:hover {
  background-color: #f8fafc;
}
body.light-theme .highlighted-item {
  background: #f1f5f9;
}

/* ================= DRM RELATIONSHIP MANAGER SYSTEM ================= */
.drm-metrics-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
@media (max-width: 1200px) {
  .drm-metrics-strip {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 600px) {
  .drm-metrics-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}
.drm-metric-card {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}
.drm-metric-card .label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}
.drm-metric-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  color: var(--text-primary);
}
.drm-metric-card.card-total { border-left: 3px solid var(--accent-color); }
.drm-metric-card.card-active { border-left: 3px solid var(--success); }
.drm-metric-card.card-monthly { border-left: 3px solid var(--primary); }
.drm-metric-card.card-zakat { border-left: 3px solid #f59e0b; }
.drm-metric-card.card-new { border-left: 3px solid #8b5cf6; }
.drm-metric-card.card-collection { border-left: 3px solid #14b8a6; }

/* Advanced DRM Search Toolbar */
.drm-search-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  margin-bottom: 20px;
}
.drm-search-panel .search-input-wrapper input {
  width: 100%;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid var(--border-glass);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 13px;
  outline: none;
  transition: border-color var(--transition-fast);
}
.drm-search-panel .search-input-wrapper input:focus {
  border-color: var(--primary);
}
.drm-search-panel .filters-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
@media (max-width: 1200px) {
  .drm-search-panel .filters-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  .drm-search-panel .filters-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .drm-search-panel .filters-grid {
    grid-template-columns: 1fr;
  }
}
.drm-search-panel .filter-input-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.drm-search-panel .filter-input-group label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}
.drm-search-panel .filter-input-group select {
  padding: 8px 10px;
  font-size: 12px;
  height: 34px;
  border-radius: 6px;
  border: 1px solid var(--border-glass);
  background: var(--bg-primary);
  color: var(--text-primary);
  outline: none;
  font-family: var(--font-main);
}

/* Premium DRM Grid Layout */
.drm-donors-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 992px) {
  .drm-donors-grid {
    grid-template-columns: 1fr;
  }
}

/* Premium Profile Cards */
.drm-donor-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.01);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.drm-donor-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.drm-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.drm-card-avatar-row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.drm-avatar-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  color: white;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  flex-shrink: 0;
}
.drm-card-identity {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.drm-donor-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.drm-card-subtags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.drm-card-subtags span {
  font-size: 10px;
  color: var(--text-secondary);
}
.drm-card-subtags .id-tag {
  font-family: monospace;
  color: var(--text-muted);
}
.drm-card-subtags .village-tag {
  font-weight: 500;
}
.drm-card-status-badges {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}
.drm-status-badge {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  text-transform: uppercase;
}
.drm-status-badge.active { background: rgba(16, 185, 129, 0.1); color: var(--success); }
.drm-status-badge.inactive { background: rgba(239, 68, 68, 0.1); color: var(--danger); }

/* Classification Badges */
.classification-badge {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.classification-badge.vip-donor {
  background: rgba(217, 119, 6, 0.15);
  color: #d97706;
  border: 1px solid rgba(217, 119, 6, 0.3);
  animation: pulse 2s infinite;
}
.classification-badge.major-donor {
  background: rgba(124, 58, 237, 0.15);
  color: #7c3aed;
  border: 1px solid rgba(124, 58, 237, 0.3);
}
.classification-badge.regular-donor {
  background: rgba(13, 148, 136, 0.15);
  color: #0d9488;
  border: 1px solid rgba(13, 148, 136, 0.3);
}
.classification-badge.occasional-donor {
  background: rgba(37, 99, 235, 0.15);
  color: #2563eb;
  border: 1px solid rgba(37, 99, 235, 0.3);
}
.classification-badge.donated-once {
  background: rgba(51, 65, 85, 0.15);
  color: #334155;
  border: 1px solid rgba(51, 65, 85, 0.3);
}
.classification-badge.never-donated {
  background: rgba(71, 85, 105, 0.1);
  color: #475569;
  border: 1px solid rgba(71, 85, 105, 0.2);
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

.drm-section-title {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.8px;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 4px;
  margin-top: 4px;
}

.drm-contribution-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 600px) {
  .drm-contribution-summary {
    grid-template-columns: repeat(2, 1fr);
  }
}
.summary-metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.summary-metric .metric-label {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
}
.summary-metric .metric-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}
.summary-metric .metric-value.highlight {
  font-size: 18px;
  font-weight: 800;
  color: var(--success);
}
.summary-metric .date-sub {
  font-size: 9px;
  color: var(--text-muted);
  font-weight: normal;
}

/* Progress Section */
.drm-progress-section {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.drm-progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}
.drm-progress-header .share-value {
  font-weight: 700;
  color: var(--text-primary);
}
.drm-progress-bar-container {
  width: 100%;
  height: 6px;
  background: var(--bg-primary);
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid var(--border-glass);
}
.drm-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 3px;
}

/* Fund Breakdown styling */
.drm-fund-breakdown {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.fund-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.fund-amounts-grid {
  background: var(--bg-primary);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fund-amount-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-secondary);
}
.fund-amount-row.total-row {
  border-top: 1px solid var(--border-glass);
  padding-top: 8px;
  font-weight: 700;
  color: var(--text-primary);
}
.fund-amount-row .fund-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}
.fund-amount-row .fund-value {
  font-weight: 600;
  white-space: nowrap;
}

/* Colored Dot Indicators for Categories */
.fund-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.fund-indicator.green { background-color: #10b981; }
.fund-indicator.yellow { background-color: #f59e0b; }
.fund-indicator.blue { background-color: #3b82f6; }
.fund-indicator.purple { background-color: #8b5cf6; }
.fund-indicator.orange { background-color: #f97316; }
.fund-indicator.red { background-color: #ef4444; }
.fund-indicator.gray { background-color: #64748b; }

.drm-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-glass);
  padding-top: 12px;
}
.drm-recent-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--text-muted);
}
.drm-recent-indicator .activity-text {
  font-weight: 500;
}
.drm-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}
.drm-status-dot.dot-green { background-color: var(--success); }
.drm-status-dot.dot-danger { background-color: var(--danger); }
.drm-status-dot.dot-warning { background-color: #f59e0b; }

.drm-badge {
  font-size: 8px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}
.drm-badge.general { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.drm-badge.zakat { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.drm-badge.building { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.drm-badge.books { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }
.drm-badge.fees { background: rgba(249, 115, 22, 0.1); color: #f97316; }
.drm-badge.sadaqah { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.drm-badge.other { background: rgba(100, 116, 139, 0.1); color: #64748b; }

/* Quick Actions Overlay (Slide up on hover) */
.drm-actions-overlay {
  position: absolute;
  bottom: -48px;
  left: 0;
  right: 0;
  height: 44px;
  background: rgba(15, 23, 42, 0.95);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 8px;
  transition: bottom 0.2s ease;
  z-index: 10;
}
.drm-donor-card:hover .drm-actions-overlay {
  bottom: 0;
}
.drm-action-btn {
  background: transparent;
  border: none;
  color: #f8fafc;
  font-size: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background-color 0.2s, color 0.2s;
}
.drm-action-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--primary);
}
.drm-action-btn svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* Light Theme Overrides */
body.light-theme .drm-metric-card,
body.light-theme .drm-search-panel,
body.light-theme .drm-donor-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}
body.light-theme .drm-search-panel .search-input-wrapper input,
body.light-theme .drm-search-panel .filter-input-group select,
body.light-theme .fund-amounts-grid,
body.light-theme .drm-progress-bar-container {
  background: #f8fafc;
  border-color: #e2e8f0;
}
body.light-theme .drm-section-title {
  border-color: #e2e8f0;
}
body.light-theme .fund-amount-row.total-row {
  border-color: #e2e8f0;
}
body.light-theme .drm-donor-card:hover {
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}
body.light-theme .drm-actions-overlay {
  background: rgba(248, 250, 252, 0.98);
  border-top: 1px solid #e2e8f0;
}
body.light-theme .drm-action-btn {
  color: #334155;
}
body.light-theme .drm-action-btn:hover {
  background: #f1f5f9;
  color: var(--primary);
}

/* ================= ADVANCED ZAKAT LEDGER STYLES ================= */
.zakat-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 992px) {
  .zakat-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 576px) {
  .zakat-metrics-grid {
    grid-template-columns: 1fr;
  }
}

.zakat-kpi-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  padding: 16px 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  position: relative;
}
.zakat-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}
.zakat-kpi-card.collected { border-top: 4px solid #10b981; }
.zakat-kpi-card.disbursed { border-top: 4px solid #ef4444; }
.zakat-kpi-card.balance { border-top: 4px solid #0d9488; }
.zakat-kpi-card.utilization { border-top: 4px solid #8b5cf6; }

body.light-theme .zakat-kpi-card.collected { background: #f0fdfa; border-color: #dcfce7; border-top-color: #10b981; }
body.light-theme .zakat-kpi-card.disbursed { background: #fef2f2; border-color: #fee2e2; border-top-color: #ef4444; }
body.light-theme .zakat-kpi-card.balance { background: #f0fdfa; border-color: #ccfbf1; border-top-color: #0d9488; }
body.light-theme .zakat-kpi-card.utilization { background: #faf5ff; border-color: #f3e8ff; border-top-color: #8b5cf6; }

.zakat-kpi-card .kpi-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
}
.zakat-kpi-card h2 {
  font-size: 20px;
  font-weight: 800;
  margin: 4px 0;
  color: var(--text-primary);
}
.zakat-kpi-card .kpi-footer {
  font-size: 10px;
  color: var(--text-muted);
}

/* Utilization progress fill */
.utilization-progress-container {
  width: 100%;
  height: 6px;
  background: var(--bg-primary);
  border: 1px solid var(--border-glass);
  border-radius: 3px;
  overflow: hidden;
  margin: 6px 0;
}
.utilization-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #8b5cf6 0%, #10b981 100%);
  border-radius: 3px;
  transition: width 0.5s ease-in-out;
}
body.light-theme .utilization-progress-container {
  background: #f1f5f9;
}

/* Filters card */
.zakat-filter-panel {
  border-radius: 12px;
}

/* Zakat 12-column grid layout */
.zakat-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  width: 100%;
}
.zakat-main-col {
  grid-column: span 8;
}
.zakat-side-col {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
@media (max-width: 1100px) {
  .zakat-grid {
    grid-template-columns: 1fr;
  }
  .zakat-main-col, .zakat-side-col {
    grid-column: span 12;
  }
}

/* Split logs side-by-side */
.zakat-lists-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 768px) {
  .zakat-lists-split {
    grid-template-columns: 1fr;
  }
}

/* Print styles for audit log */
@media print {
  body.print-zakat-active * {
    visibility: hidden;
  }
  body.print-zakat-active .zakat-print-area,
  body.print-zakat-active .zakat-print-area * {
    visibility: visible;
  }
  body.print-zakat-active .zakat-print-area {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    color: #000 !important;
    background: #fff !important;
    font-family: var(--font-main);
    padding: 30px;
  }
}




