/* DASHBOARD BUNDLE - Generated by build-css-bundles.js */

/* ========== dashboard.css ========== */
/* ============================================
   RUPIYA - DASHBOARD STYLES
   ============================================ */

.dashboard-layout {
  display: flex;
  min-height: 100vh;
  background-color: var(--bg-secondary);
  overflow-x: hidden;
  max-width: 100vw;
}

/* Sidebar */
.sidebar {
  width: 260px;
  background: var(--white);
  border-right: 2px solid var(--primary-blue);
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  z-index: 1000;
  transition: transform var(--transition-base);
}

.sidebar-header {
  padding: var(--spacing-lg);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-logo img {
  height: 36px;
  width: auto;
}

.sidebar-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text-secondary);
}

.sidebar-nav {
  padding: var(--spacing-md) 0;
  flex: 1;
  overflow-y: auto;
}

.nav-section {
  margin-bottom: var(--spacing-lg);
}

.nav-section-title {
  padding: var(--spacing-sm) var(--spacing-lg);
  font-size: var(--font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-light);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md) var(--spacing-lg);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-fast);
  border-left: 3px solid transparent;
}

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

.nav-item.active {
  background-color: rgba(74, 144, 226, 0.1);
  color: var(--primary-blue);
  border-left-color: var(--primary-blue);
  font-weight: 600;
}

.nav-icon {
  font-size: 20px;
  width: 24px;
  text-align: center;
}

.sidebar-footer {
  padding: var(--spacing-lg);
  border-top: 1px solid var(--border-color);
  margin-top: auto;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  border-radius: var(--border-radius);
  transition: background-color var(--transition-fast);
  cursor: pointer;
}

.user-profile:hover {
  background-color: var(--bg-hover);
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: var(--font-size-base);
}

.user-info {
  flex: 1;
}

.user-name {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.user-email {
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
}

/* Main Content */
.main-content {
  flex: 1;
  margin-left: 260px;
  padding: var(--spacing-xl);
  transition: margin-left var(--transition-base);
  overflow-x: hidden;
  position: relative;
}

.dashboard-header {
  margin-bottom: var(--spacing-xl);
  padding-top: 1rem; /* Add padding after mobile header */
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.dashboard-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Hide privacy toggle on mobile (eye icon already in header) */
@media (max-width: 768px) {
  .dashboard-header-actions .privacy-toggle,
  .dashboard-header-actions button[title*="Privacy"],
  .dashboard-header-actions button[title*="privacy"] {
    display: none !important;
  }
}


.quick-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.quick-add-btn svg {
  flex-shrink: 0;
}

.quick-add-btn.expense {
  background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
  color: white;
}

.quick-add-btn.expense:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.quick-add-btn.income {
  background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  color: white;
}

.quick-add-btn.income:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.dashboard-title {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.dashboard-subtitle {
  font-size: var(--font-size-base);
  color: var(--text-secondary);
}

/* KPI Grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

.kpi-card {
  background: var(--white);
  border: 2px solid var(--primary-blue);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-lg);
  transition: all var(--transition-base);
}

.kpi-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--accent-cyan);
}

.kpi-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-md);
}

.kpi-title {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.kpi-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.kpi-icon.income {
  background: rgba(39, 174, 96, 0.1);
  color: var(--accent-green);
}

.kpi-icon.expense {
  background: rgba(231, 76, 60, 0.1);
  color: var(--accent-red);
}

.kpi-icon.cashflow {
  background: rgba(74, 144, 226, 0.1);
  color: var(--primary-blue);
}

.kpi-icon.networth {
  background: rgba(155, 89, 182, 0.1);
  color: var(--accent-purple);
}

.kpi-value {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
}

.kpi-change {
  font-size: var(--font-size-sm);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.kpi-change.positive {
  color: var(--accent-green);
}

.kpi-change.negative {
  color: var(--accent-red);
}

/* ============================================
   PWA INSTALL BANNER
   ============================================ */
.pwa-install-banner-dashboard {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: var(--border-radius-lg);
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  animation: slideDown 0.5s ease-out;
  position: relative;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pwa-install-banner-dashboard .pwa-banner-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: white;
}

.pwa-install-banner-dashboard .pwa-banner-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.pwa-install-banner-dashboard .pwa-banner-text {
  flex: 1;
}

.pwa-install-banner-dashboard .pwa-banner-text strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.pwa-install-banner-dashboard .pwa-banner-text p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.9;
}

.pwa-install-banner-dashboard .btn {
  background: white;
  color: var(--primary-blue);
  border: none;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.pwa-install-banner-dashboard .btn-primary {
  background: white !important;
  color: #4A90E2 !important;
}

.pwa-install-banner-dashboard .btn:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.pwa-install-banner-dashboard .pwa-banner-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 1.25rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
  line-height: 1;
  padding: 0;
  margin-left: 0.5rem;
}

.pwa-install-banner-dashboard .pwa-banner-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

/* ============================================
   DASHBOARD WIDGETS ROW
   ============================================ */

/* Desktop: Allow auto-fit grid */
@media (min-width: 769px) {
  .widgets-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
  }
}

/* Mobile: Force single column */
@media (max-width: 768px) {
  .widgets-row {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
  }
}

/* ============================================
   SAVINGS RATE WIDGET
   ============================================ */
.savings-rate-widget {
  background: var(--white);
  border: 2px solid var(--primary-blue);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-lg);
  transition: all var(--transition-base);
}

.savings-rate-widget:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--accent-cyan);
}

.savings-rate-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-md);
}

.savings-rate-title {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--text-primary);
}

.savings-rate-value {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--accent-green);
}

.savings-rate-bar {
  position: relative;
  height: 12px;
  background: var(--bg-secondary);
  border-radius: 6px;
  margin-bottom: var(--spacing-lg);
  overflow: visible;
}

.savings-rate-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-red) 0%, var(--accent-orange) 30%, var(--accent-green) 100%);
  border-radius: 6px;
  transition: width 0.5s ease;
  position: relative;
}

.savings-rate-markers {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
}

.savings-rate-markers .marker {
  position: absolute;
  font-size: 10px;
  color: var(--text-light);
  transform: translateX(-50%);
}

.savings-rate-details {
  display: flex;
  justify-content: space-between;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.savings-detail {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  padding: var(--spacing-sm);
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
}

.savings-detail .detail-label {
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.savings-detail .detail-value {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--text-primary);
}

.savings-detail .detail-value.positive {
  color: var(--accent-green);
}

.savings-detail .detail-value.negative {
  color: var(--accent-red);
}

.savings-rate-tip {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  padding: var(--spacing-sm) var(--spacing-md);
  background: rgba(74, 144, 226, 0.1);
  border-radius: var(--border-radius);
  border-left: 3px solid var(--primary-blue);
}

/* ============================================
   GOAL PROGRESS WIDGET
   ============================================ */
.goal-progress-widget {
  background: var(--white);
  border: 2px solid var(--primary-blue);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-lg);
  transition: all var(--transition-base);
}

.goal-progress-widget:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--accent-cyan);
}

.goal-progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-md);
}

.goal-progress-title {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--text-primary);
}

.goal-progress-percent {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--accent-green);
}

.goal-progress-bar {
  height: 10px;
  background: var(--bg-secondary);
  border-radius: 5px;
  margin-bottom: var(--spacing-md);
  overflow: hidden;
}

.goal-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-blue), var(--accent-cyan));
  border-radius: 5px;
  transition: width 0.5s ease;
}

.goal-progress-details {
  display: flex;
  justify-content: space-between;
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}

.goal-progress-details span:first-child {
  font-weight: 600;
  color: var(--text-primary);
}

/* ============================================
   TOP CATEGORIES WIDGET
   ============================================ */
.top-categories-widget {
  background: var(--white);
  border: 2px solid var(--primary-blue);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-lg);
  transition: all var(--transition-base);
}

.top-categories-widget:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--accent-cyan);
}

.top-categories-title {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
}

#topCategoriesList {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.category-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-sm);
  border-radius: var(--border-radius);
  transition: background-color var(--transition-fast);
}

.category-item:hover {
  background: var(--bg-secondary);
}

.category-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  background: var(--bg-secondary);
}

.category-info {
  flex: 1;
}

.category-name {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--text-primary);
}

/* Top Spending Categories Widget */
.category-bar {
  margin-bottom: 1rem;
}

.category-bar:last-child {
  margin-bottom: 0;
}

.category-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.category-bar-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary, #2C3E50);
}

.category-bar-amount {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary, #2C3E50);
}

.category-bar-track {
  height: 8px;
  background: var(--bg-secondary, #E8E8E8);
  border-radius: 4px;
  overflow: hidden;
}

.category-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s ease;
}

.category-amount {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-primary);
}

/* ============================================
   UPCOMING BILLS WIDGET
   ============================================ */
.upcoming-bills-widget {
  background: var(--white);
  border: 2px solid var(--primary-blue);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-lg);
  transition: all var(--transition-base);
}

.upcoming-bills-widget:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--accent-cyan);
}

.upcoming-bills-title {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
}

#upcomingBillsList {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.bill-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-sm);
  border-radius: var(--border-radius);
  border-left: 3px solid var(--accent-orange);
  background: var(--bg-secondary);
}

.bill-item.due-soon {
  border-left-color: var(--accent-red);
  background: rgba(231, 76, 60, 0.05);
}

.bill-icon {
  font-size: 20px;
}

.bill-info {
  flex: 1;
}

.bill-name {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--text-primary);
}

.bill-due {
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
}

.bill-amount {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--accent-red);
}

/* Spending Alert */
.spending-alert {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md) var(--spacing-lg);
  background: rgba(231, 76, 60, 0.1);
  border: 1px solid var(--accent-red);
  border-radius: var(--border-radius-lg);
  margin-bottom: var(--spacing-lg);
}

.spending-alert-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.spending-alert-content {
  flex: 1;
}

.spending-alert-title {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--accent-red);
  margin-bottom: 2px;
}

.spending-alert-text {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}

.spending-alert-close {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color var(--transition-fast);
}

.spending-alert-close:hover {
  color: var(--accent-red);
}

/* Recent Transactions */
.transactions-card {
  background: var(--white);
  border: 2px solid var(--primary-blue);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-lg);
}

/* Analytics Charts */
.charts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

.chart-card {
  background: var(--white);
  border: 2px solid var(--primary-blue);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-lg);
  transition: all var(--transition-base);
}

.chart-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--accent-cyan);
}

.chart-container {
  position: relative;
  height: 300px;
  margin-top: var(--spacing-md);
}

.chart-filter {
  padding: 6px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: var(--font-size-sm);
  color: var(--text-primary);
  background: var(--white);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.chart-filter:hover {
  border-color: var(--primary-blue);
}

.chart-filter:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-lg);
}

.card-title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--text-primary);
}

.transaction-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.transaction-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  transition: all var(--transition-fast);
  margin-bottom: var(--spacing-sm);
}

.transaction-item:hover {
  background-color: var(--bg-hover);
  border-color: var(--primary-blue);
}

.transaction-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background-color: var(--bg-secondary);
}

.transaction-details {
  flex: 1;
}

.transaction-title {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.transaction-meta {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}

.transaction-amount {
  font-size: var(--font-size-lg);
  font-weight: 700;
}

.transaction-amount.expense {
  color: var(--accent-red);
}

.transaction-amount.income {
  color: var(--accent-green);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: var(--spacing-2xl);
}

.empty-state-icon {
  font-size: 64px;
  margin-bottom: var(--spacing-md);
  opacity: 0.3;
}

.empty-state-title {
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.empty-state-text {
  font-size: var(--font-size-base);
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }
  
  .sidebar.open {
    transform: translateX(0);
  }
  
  .sidebar-toggle {
    display: block;
  }
  
  /* Optimize sidebar spacing for mobile */
  .sidebar-header {
    padding: 0.75rem 1rem;
  }
  
  .sidebar-logo img {
    height: 32px;
  }
  
  .sidebar-nav {
    padding: 0.5rem 0;
  }
  
  .sidebar-footer {
    padding: 0.75rem 1rem;
  }
  
  .user-profile {
    padding: 0.5rem;
  }
  
  .user-avatar {
    width: 36px;
    height: 36px;
    font-size: 0.875rem;
  }
  
  .user-name {
    font-size: 0.8125rem;
  }
  
  .user-email {
    font-size: 0.6875rem;
  }
  
  .sidebar-footer .btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
  }
  
  .sidebar-footer .btn svg {
    width: 14px;
    height: 14px;
  }
  
  .main-content {
    margin-left: 0 !important;
    padding: 0 !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    width: 100% !important;
  }
  
  .mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--white);
    border-bottom: 2px solid var(--primary-blue);
    position: relative;
    margin-bottom: 16px;
    width: 100%;
    box-sizing: border-box;
  }
  
  /* Dashboard content with proper padding only for text */
  .dashboard-header {
    padding: 0 16px 16px 16px !important;
    margin-bottom: 0 !important;
  }
  
  .kpi-grid {
    padding: 0 16px 16px 16px !important;
    margin-bottom: 0 !important;
  }
  
  /* FULL WIDTH WIDGETS - NO SIDE PADDING */
  .widgets-row {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
  }
  
  .widgets-row > *,
  .savings-rate-widget,
  .goal-progress-widget,
  .top-categories-widget,
  .upcoming-bills-widget {
    margin: 0 0 16px 0 !important;
    padding: 16px !important;
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* FULL WIDTH CHARTS */
  .charts-grid {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
  }
  
  .chart-card {
    margin: 0 0 16px 0 !important;
    padding: 16px !important;
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .transactions-card {
    margin: 0 0 16px 0 !important;
    padding: 16px !important;
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* Extra compact sidebar for small height screens */
@media (max-width: 768px) and (max-height: 700px) {
  .sidebar-header {
    padding: 0.5rem 0.75rem;
  }
  
  .sidebar-logo img {
    height: 28px;
  }
  
  .sidebar-nav {
    padding: 0.25rem 0;
  }
  
  .sidebar-footer {
    padding: 0.5rem 0.75rem;
  }
  
  .user-profile {
    padding: 0.375rem;
  }
  
  .user-avatar {
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
  }
  
  .user-name {
    font-size: 0.75rem;
  }
  
  .user-email {
    font-size: 0.625rem;
  }
  
  .sidebar-footer .btn {
    padding: 0.375rem 0.625rem;
    font-size: 0.75rem;
  }
  
  .sidebar-footer .mt-3 {
    margin-top: 0.5rem !important;
  }
}

/* Ultra compact for very small screens */
@media (max-width: 768px) and (max-height: 600px) {
  .sidebar-header {
    padding: 0.375rem 0.625rem;
  }
  
  .sidebar-logo img {
    height: 24px;
  }
  
  .sidebar-nav {
    padding: 0.125rem 0;
  }
  
  .sidebar-footer {
    padding: 0.375rem 0.625rem;
  }
  
  .user-profile {
    padding: 0.25rem;
  }
  
  .user-avatar {
    width: 28px;
    height: 28px;
    font-size: 0.6875rem;
  }
  
  .user-name {
    font-size: 0.6875rem;
  }
  
  .user-email {
    font-size: 0.5625rem;
  }
  
  .sidebar-footer .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.6875rem;
  }
  
  .sidebar-footer .mt-3 {
    margin-top: 0.375rem !important;
  }
}

/* Continue with existing mobile styles */
@media (max-width: 768px) {
  .mobile-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
  }
  
  .mobile-brand img {
    height: 36px;
    width: auto;
  }
  
  .mobile-brand .brand-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-blue);
    letter-spacing: -0.5px;
  }
  
  .mobile-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  .mobile-header .sidebar-toggle {
    order: 10; /* Push hamburger to the end */
  }

  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .dashboard-header-actions {
    width: 100%;
    justify-content: center;
  }

  .quick-add-btn {
    padding: 8px 14px;
    font-size: 13px;
  }

  .quick-add-btn span {
    display: inline;
  }
  
  .pwa-install-btn {
    background: linear-gradient(135deg, var(--primary-blue), #764ba2);
    border: none;
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    color: white;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.3);
    animation: pulse 2s ease-in-out infinite;
  }
  
  .pwa-install-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.5);
  }
  
  .pwa-install-btn:active {
    transform: scale(0.95);
  }
  
  /* PWA Install Banner Mobile Overrides */
  .pwa-install-banner-dashboard {
    padding: 1rem;
  }
  
  .pwa-install-banner-dashboard .pwa-banner-content {
    flex-wrap: wrap;
    gap: 0.75rem;
    position: relative;
  }
  
  .pwa-install-banner-dashboard .pwa-banner-icon {
    order: 1;
  }
  
  .pwa-install-banner-dashboard .pwa-banner-text {
    flex: 1;
    order: 2;
    min-width: 0;
  }
  
  .pwa-install-banner-dashboard .pwa-banner-close {
    order: 3;
    position: absolute;
    top: 0;
    right: 0;
  }
  
  .pwa-install-banner-dashboard .btn {
    order: 4;
    width: 100%;
    margin-top: 0.5rem;
  }
  
  /* Widgets Row Mobile */
  .widgets-row {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
  }
  
  /* Make ALL widgets full width on mobile - catch all */
  .widgets-row > *,
  .widgets-row [class*="-widget"],
  .savings-rate-widget,
  .goal-progress-widget,
  .top-categories-widget,
  .upcoming-bills-widget,
  .emergency-fund-widget {
    grid-column: 1 / -1 !important;
    padding: var(--spacing-md);
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
  }
  
  .savings-rate-header {
    margin-bottom: var(--spacing-sm);
  }
  
  .savings-rate-title {
    font-size: var(--font-size-sm);
  }
  
  .savings-rate-value {
    font-size: var(--font-size-xl);
  }
  
  .savings-rate-details {
    gap: var(--spacing-sm);
  }
  
  .savings-detail {
    padding: var(--spacing-xs);
  }
  
  .savings-detail .detail-label {
    font-size: 9px;
  }
  
  .savings-detail .detail-value {
    font-size: var(--font-size-sm);
  }
  
  .savings-rate-tip {
    font-size: var(--font-size-xs);
    padding: var(--spacing-xs) var(--spacing-sm);
  }
  
  .theme-toggle-btn {
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    color: var(--text-primary);
  }
  
  .theme-toggle-btn:hover {
    background: var(--bg-hover);
  }
  
  .theme-toggle-btn:active {
    transform: scale(0.95);
  }
  
  /* Show/hide icons based on theme */
  [data-theme="light"] .theme-icon-dark {
    display: none;
  }
  
  [data-theme="dark"] .theme-icon-light {
    display: none;
  }
  
  .dashboard-header {
    margin-bottom: 16px;
  }
  
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 16px;
  }
  
  .kpi-card {
    padding: 12px;
    min-width: 0;
  }
  
  .kpi-header {
    margin-bottom: 8px;
  }
  
  .kpi-value {
    font-size: 20px;
    margin-bottom: 4px;
  }
  
  .kpi-title {
    font-size: 10px;
  }
  
  .kpi-icon {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }
  
  .kpi-change {
    font-size: 10px;
  }
  
  .dashboard-title {
    font-size: var(--font-size-2xl);
  }
  
  .dashboard-subtitle {
    font-size: var(--font-size-sm);
  }
  
  .transactions-card {
    padding: 12px;
  }
  
  .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
  }
  
  .card-title {
    font-size: var(--font-size-lg);
  }
  
  .card-header .btn {
    width: 100%;
  }
  
  .charts-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  
  .chart-card {
    padding: 12px;
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
  }
  
  .chart-container {
    height: 250px;
  }
  
  .chart-filter {
    font-size: 11px;
    padding: 4px 8px;
  }
  
  .transactions-card {
    padding: 12px;
  }
  
  .transaction-item {
    padding: 10px;
    gap: 10px;
  }
  
  .transaction-icon {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
  
  .transaction-title {
    font-size: var(--font-size-sm);
  }
  
  .transaction-meta {
    font-size: 11px;
  }
  
  .transaction-amount {
    font-size: var(--font-size-base);
  }
}

/* Overlay for mobile sidebar */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.sidebar-overlay.show {
  display: block;
}

@media (min-width: 769px) {
  .mobile-header {
    display: none;
  }
}


/* ============================================
   DARK MODE - TOP SPENDING CATEGORIES
   ============================================ */
[data-theme="dark"] .category-bar-name,
[data-theme="dark"] .category-bar-amount {
  color: var(--text-primary, #E8E8E8);
}

[data-theme="dark"] .category-bar-track {
  background: var(--bg-hover, #3d3d3d);
}


/* ========== sidebar.css ========== */
/**
 * Enhanced Sidebar Navigation Styles
 * Collapsible sections with quick search
 */

/* Quick Search */
.nav-quick-search {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color, #e5e7eb);
  position: relative;
}

.quick-search-input-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-secondary, #f3f4f6);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  transition: all 0.2s ease;
}

.quick-search-input-wrapper:focus-within {
  background: var(--bg-primary, #fff);
  box-shadow: 0 0 0 2px var(--primary-color, #4A90E2);
}

.quick-search-input-wrapper svg {
  color: var(--text-muted, #9ca3af);
  flex-shrink: 0;
}

.quick-search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 0.875rem;
  color: var(--text-primary, #1f2937);
  outline: none;
  min-width: 0;
}

.quick-search-input::placeholder {
  color: var(--text-muted, #9ca3af);
}

.quick-search-kbd {
  font-size: 0.625rem;
  padding: 0.125rem 0.375rem;
  background: var(--bg-tertiary, #e5e7eb);
  border-radius: 4px;
  color: var(--text-muted, #9ca3af);
  font-family: system-ui, -apple-system, sans-serif;
  flex-shrink: 0;
}

/* Quick Search Results */
.quick-search-results {
  position: absolute;
  top: 100%;
  left: 0.75rem;
  right: 0.75rem;
  background: var(--bg-primary, #fff);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  z-index: 100;
  max-height: 300px;
  overflow-y: auto;
  display: none;
}

.quick-search-results.visible {
  display: block;
}

.quick-search-result {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: var(--text-primary, #1f2937);
  transition: background 0.15s ease;
}

.quick-search-result:hover {
  background: var(--bg-secondary, #f3f4f6);
}

.quick-search-result-icon {
  font-size: 1.125rem;
}

.quick-search-result-label {
  flex: 1;
  font-weight: 500;
}

.quick-search-result-section {
  font-size: 0.75rem;
  color: var(--text-muted, #9ca3af);
}

.quick-search-no-results {
  padding: 1rem;
  text-align: center;
  color: var(--text-muted, #9ca3af);
  font-size: 0.875rem;
}

/* Nav Section - Collapsible */
.nav-section {
  border-bottom: 1px solid var(--border-color, #e5e7eb);
}

.nav-section:last-child {
  border-bottom: none;
}

.nav-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s ease;
}

.nav-section-header:hover {
  background: var(--bg-secondary, #f3f4f6);
}

.nav-section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted, #6b7280);
}

.nav-section-icon {
  font-size: 1rem;
}

.nav-section-arrow {
  color: var(--text-muted, #9ca3af);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.nav-section.expanded .nav-section-arrow {
  transform: rotate(0deg);
}

.nav-section.collapsed .nav-section-arrow {
  transform: rotate(-90deg);
}

/* Nav Section Items */
.nav-section-items {
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.2s ease;
}

.nav-section.expanded .nav-section-items {
  max-height: 500px;
  opacity: 1;
}

.nav-section.collapsed .nav-section-items {
  max-height: 0;
  opacity: 0;
}

/* Nav Items */
.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem 0.5rem 2.5rem;
  color: var(--text-secondary, #4b5563);
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.15s ease;
  border-left: 3px solid transparent;
}

.nav-item:hover {
  background: var(--bg-secondary, #f3f4f6);
  color: var(--text-primary, #1f2937);
}

.nav-item.active {
  background: var(--primary-light, #e8f4fd);
  color: var(--primary-color, #4A90E2);
  border-left-color: var(--primary-color, #4A90E2);
  font-weight: 500;
}

.nav-icon {
  font-size: 1.125rem;
  width: 1.5rem;
  text-align: center;
  flex-shrink: 0;
}

/* Sidebar Scrollbar */
.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border-color, #e5e7eb) transparent;
}

.sidebar-nav::-webkit-scrollbar {
  width: 4px;
}

.sidebar-nav::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
  background: var(--border-color, #e5e7eb);
  border-radius: 4px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted, #9ca3af);
}

/* Dark Mode Overrides */
[data-theme="dark"] .quick-search-input-wrapper {
  background: var(--bg-tertiary, #374151);
}

[data-theme="dark"] .quick-search-input-wrapper:focus-within {
  background: var(--bg-secondary, #1f2937);
}

[data-theme="dark"] .quick-search-results {
  background: var(--bg-secondary, #1f2937);
  border: 1px solid var(--border-color, #374151);
}

[data-theme="dark"] .quick-search-result:hover {
  background: var(--bg-tertiary, #374151);
}

[data-theme="dark"] .nav-section-header:hover {
  background: var(--bg-tertiary, #374151);
}

[data-theme="dark"] .nav-item:hover {
  background: var(--bg-tertiary, #374151);
}

[data-theme="dark"] .nav-item.active {
  background: rgba(74, 144, 226, 0.15);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  /* Hide search bar on mobile to save space */
  .nav-quick-search {
    display: none !important;
  }
  
  .quick-search-kbd {
    display: none;
  }
  
  .nav-section-header {
    padding: 0.5rem 0.75rem;
  }
  
  .nav-section-title {
    font-size: 0.75rem;
  }
  
  .nav-section-icon {
    font-size: 0.875rem;
  }
  
  .nav-item {
    padding: 0.5rem 0.75rem 0.5rem 2rem;
    font-size: 0.8125rem;
  }
  
  .nav-icon {
    font-size: 1rem;
    width: 1.25rem;
  }
}

/* Compact Mode for smaller screens */
@media (max-height: 700px) {
  .nav-quick-search {
    padding: 0.375rem 0.625rem;
  }
  
  .quick-search-input-wrapper {
    padding: 0.25rem 0.5rem;
  }
  
  .nav-section-header {
    padding: 0.375rem 0.75rem;
  }
  
  .nav-item {
    padding: 0.375rem 0.75rem 0.375rem 2rem;
    font-size: 0.8125rem;
  }
}

/* Extra compact for very small screens */
@media (max-height: 600px) {
  .nav-quick-search {
    padding: 0.25rem 0.5rem;
  }
  
  .quick-search-input-wrapper {
    padding: 0.25rem 0.5rem;
  }
  
  .nav-section-header {
    padding: 0.25rem 0.625rem;
  }
  
  .nav-section-title {
    font-size: 0.625rem;
  }
  
  .nav-item {
    padding: 0.25rem 0.625rem 0.25rem 1.75rem;
    font-size: 0.75rem;
  }
  
  .nav-icon {
    font-size: 0.875rem;
    width: 1rem;
  }
}
/* Enhanced Section Styling */
.nav-section {
  margin-bottom: 0.25rem;
}

.nav-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 8px;
  margin: 0 0.5rem;
}

.nav-section-header:hover {
  background: var(--bg-hover, rgba(74, 144, 226, 0.05));
}

.nav-section-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--text-primary, #1f2937);
  white-space: nowrap;
}

.nav-section-icon {
  font-size: 1rem;
}

.nav-section-arrow {
  transition: transform 0.2s ease;
  color: var(--text-muted, #9ca3af);
}

.nav-section.expanded .nav-section-arrow {
  transform: rotate(180deg);
}

.nav-section-items {
  overflow: hidden;
  transition: all 0.3s ease;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.nav-section.collapsed .nav-section-items {
  max-height: 0;
  opacity: 0;
}

.nav-section.expanded .nav-section-items {
  max-height: 500px;
  opacity: 1;
  padding-bottom: 0.25rem;
}

/* Enhanced Nav Items */
.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  margin: 0.0625rem 0;
  text-decoration: none;
  color: var(--text-secondary, #6b7280);
  border-radius: 6px;
  transition: all 0.2s ease;
  font-size: 0.875rem;
  font-weight: 500;
  border-left: 3px solid transparent;
}

.nav-item:hover {
  background: var(--bg-hover, rgba(74, 144, 226, 0.05));
  color: var(--text-primary, #1f2937);
  transform: translateX(2px);
}

.nav-item.active {
  background: var(--primary-bg, rgba(74, 144, 226, 0.1));
  color: var(--primary-color, #4A90E2);
  border-left-color: var(--primary-color, #4A90E2);
  font-weight: 600;
}

.nav-item.active:hover {
  transform: none;
}

.nav-icon {
  font-size: 1rem;
  width: 1.25rem;
  text-align: center;
  flex-shrink: 0;
}

/* Section Dividers */
.nav-section + .nav-section {
  border-top: 1px solid var(--border-light, rgba(229, 231, 235, 0.5));
  padding-top: 0.25rem;
  margin-top: 0.25rem;
}

/* Mobile Enhancements */
@media (max-width: 768px) {
  .nav-section-header {
    padding: 0.625rem 0.75rem;
  }
  
  .nav-item {
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
  }
  
  .nav-section-title {
    font-size: 0.8125rem;
  }
  
  .quick-search-input-wrapper {
    padding: 0.375rem 0.625rem;
  }
  
  .quick-search-input {
    font-size: 0.8125rem;
  }
}

/* Dark Mode Enhancements */
[data-theme="dark"] .nav-section-header:hover {
  background: rgba(74, 144, 226, 0.1);
}

[data-theme="dark"] .nav-item:hover {
  background: rgba(74, 144, 226, 0.1);
}

[data-theme="dark"] .nav-section + .nav-section {
  border-top-color: rgba(255, 255, 255, 0.1);
}

/* ============================================
   SIDEBAR FOOTER & USER PROFILE
   ============================================ */

.sidebar-footer {
  margin-top: auto;
  padding: 1rem;
  border-top: 1px solid var(--border-color, #e5e7eb);
  background: var(--bg-primary, #fff);
  flex-shrink: 0;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem;
  border-radius: 10px;
  background: var(--bg-secondary, #f8f9fa);
  transition: background 0.2s ease;
}

.user-profile:hover {
  background: var(--bg-tertiary, #f1f3f5);
}

.user-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color, #4A90E2), var(--primary-dark, #357ABD));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1rem;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(74, 144, 226, 0.25);
}

.user-info {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.user-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary, #2C3E50);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
  display: block;
}

.user-email {
  font-size: 0.75rem;
  color: var(--text-secondary, #7F8C8D);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
  display: block;
}

/* Buttons Container - Desktop: stacked, Mobile: side by side */
.sidebar-footer-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.sidebar-footer-buttons .btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* Logout Button Styling */
.sidebar-footer #logoutBtn,
.sidebar-footer .btn-outline {
  background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%) !important;
  color: white !important;
  border: none !important;
  padding: 0.625rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(74, 144, 226, 0.3);
}

.sidebar-footer #logoutBtn:hover,
.sidebar-footer .btn-outline:hover {
  background: linear-gradient(135deg, #357ABD 0%, #2d5a99 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.4);
}

.sidebar-footer #logoutBtn svg,
.sidebar-footer .btn-outline svg {
  color: white;
  stroke: white;
}

/* Sample Data Button Styling */
.sidebar-footer #sampleDataBtn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: white !important;
  border: none !important;
  padding: 0.625rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.sidebar-footer #sampleDataBtn:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

/* Dark Mode */
[data-theme="dark"] .sidebar-footer {
  background: var(--bg-primary, #1f2937);
  border-top-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .user-profile {
  background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .user-profile:hover {
  background: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .user-name {
  color: var(--text-primary, #f3f4f6) !important;
}

[data-theme="dark"] .user-email {
  color: var(--text-secondary, #9ca3af) !important;
}

[data-theme="dark"] .user-avatar {
  background: linear-gradient(135deg, #4A90E2, #357ABD) !important;
  color: white !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .sidebar-footer {
    padding: 0.75rem;
  }

  /* Compact user profile - horizontal layout */
  .user-profile {
    padding: 0.625rem;
    flex-direction: row;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 0.625rem;
  }
  
  .user-info {
    flex: 1;
    min-width: 0;
  }

  .user-avatar {
    width: 40px;
    height: 40px;
    font-size: 0.875rem;
    flex-shrink: 0;
  }

  .user-name {
    font-size: 0.8125rem;
    line-height: 1.2;
    margin-bottom: 0.125rem;
  }

  .user-email {
    font-size: 0.6875rem;
    line-height: 1.2;
  }
  
  /* Buttons in one row */
  .sidebar-footer-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
  
  .sidebar-footer .btn {
    margin-top: 0;
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    white-space: nowrap;
  }
  
  .sidebar-footer .btn svg {
    width: 14px;
    height: 14px;
  }
  
  /* Make sample data button match logout style */
  .sidebar-footer #sampleDataBtn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
  }
  
  .sidebar-footer #sampleDataBtn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
  }
}

@media (max-width: 480px) {
  .sidebar-footer {
    padding: 0.625rem;
  }
  
  .user-profile {
    padding: 0.5rem;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
  }
  
  .user-avatar {
    width: 36px;
    height: 36px;
    font-size: 0.8125rem;
  }
  
  .user-name {
    font-size: 0.75rem;
  }

  .user-email {
    font-size: 0.625rem;
  }
  
  .sidebar-footer .btn {
    padding: 0.5rem 0.625rem;
    font-size: 0.6875rem;
  }
  
  .sidebar-footer .btn svg {
    width: 12px;
    height: 12px;
  }
}


/* ========== enhancements.css ========== */
/* ============================================
   RUPIYA - UI ENHANCEMENTS
   ============================================ */

/* ============================================
   1. TOOLTIPS ON KPI CARDS - IMPROVED
   ============================================ */

/* KPI Card with tooltip support */
.kpi-card[data-tooltip],
.kpi-summary .kpi-card[data-tooltip],
.summary-card[data-tooltip] {
  position: relative !important;
}

/* Info icon button - positioned in header */
.kpi-card .kpi-info-btn,
.summary-card .kpi-info-btn {
  display: none;
}

/* Show info button when tooltip exists */
.kpi-card[data-tooltip] .kpi-info-btn,
.summary-card[data-tooltip] .kpi-info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(102, 126, 234, 0.1) 100%);
  border: 2px solid rgba(102, 126, 234, 0.5);
  border-radius: 50%;
  color: #667eea;
  font-size: 14px;
  font-weight: 700;
  cursor: help;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex-shrink: 0;
  margin-left: auto;
  position: relative;
  z-index: 10;
  padding: 0;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.kpi-card[data-tooltip] .kpi-info-btn:hover,
.summary-card[data-tooltip] .kpi-info-btn:hover {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.3) 0%, rgba(102, 126, 234, 0.2) 100%);
  border-color: rgba(102, 126, 234, 0.8);
  transform: scale(1.15);
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.kpi-card[data-tooltip] .kpi-info-btn:active,
.summary-card[data-tooltip] .kpi-info-btn:active {
  transform: scale(0.95);
}

/* Ensure header is flex for proper alignment */
.kpi-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  flex-wrap: nowrap !important;
  width: 100% !important;
  position: relative !important;
}

/* Tooltip container - positioned relative to header */
.kpi-info-tooltip {
  position: absolute;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  color: #1e293b;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  white-space: normal;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 1001;
  pointer-events: none;
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.15),
    0 8px 20px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(102, 126, 234, 0.2);
  border: 1.5px solid rgba(102, 126, 234, 0.25);
  max-width: 300px;
  text-align: center;
  bottom: auto;
  top: calc(100% + 12px);
  right: 0;
  left: auto;
  transform: translateY(-12px) scale(0.95);
}

/* Show tooltip on hover or focus */
.kpi-card[data-tooltip] .kpi-info-btn:hover ~ .kpi-info-tooltip,
.summary-card[data-tooltip] .kpi-info-btn:hover ~ .kpi-info-tooltip,
.kpi-info-tooltip.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Tooltip arrow - enhanced */
.kpi-info-tooltip::before {
  content: '';
  position: absolute;
  bottom: 100%;
  right: 20px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid rgba(102, 126, 234, 0.25);
  filter: drop-shadow(0 -2px 4px rgba(0, 0, 0, 0.05));
}

/* Adjust tooltip position for bottom placement on mobile */
@media (max-width: 768px) {
  .kpi-info-tooltip {
    max-width: 240px;
    font-size: 12px;
    padding: 10px 14px;
  }
  
  /* Position tooltip below on mobile to avoid viewport cutoff */
  .kpi-card[data-tooltip] .kpi-info-tooltip,
  .summary-card[data-tooltip] .kpi-info-tooltip {
    top: calc(100% + 12px);
    bottom: auto;
  }
  
  .kpi-info-tooltip::before {
    bottom: auto;
    top: -6px;
    border-bottom: none;
    border-top: 6px solid rgba(102, 126, 234, 0.15);
  }
}

/* Extra small mobile */
@media (max-width: 480px) {
  .kpi-card[data-tooltip] .kpi-info-btn,
  .summary-card[data-tooltip] .kpi-info-btn {
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
    font-size: 12px;
  }
  
  .kpi-info-tooltip {
    max-width: 200px;
    font-size: 11px;
    padding: 8px 12px;
  }
}

/* Dark mode support */
:root.dark-mode .kpi-info-tooltip {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #e2e8f0;
  border-color: rgba(102, 126, 234, 0.25);
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.4),
    0 4px 12px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(102, 126, 234, 0.2);
}

:root.dark-mode .kpi-info-tooltip::before {
  border-bottom-color: rgba(102, 126, 234, 0.25);
}

:root.dark-mode .kpi-info-tooltip.show::before {
  border-top-color: rgba(102, 126, 234, 0.25);
}

/* ============================================
   2. FLOATING ACTION BUTTON (FAB)
   ============================================ */
.fab-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
}

.fab-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4A90E2 0%, #00CED1 100%);
  color: white;
  border: none;
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.fab-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(74, 144, 226, 0.5);
}

.fab-btn:active {
  transform: scale(0.95);
}

.fab-btn svg {
  width: 24px;
  height: 24px;
}

/* ============================================
   3. CATEGORY ICONS
   ============================================ */
.category-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  font-size: 14px;
  margin-right: 8px;
  flex-shrink: 0;
}

.expense-category-with-icon {
  display: flex;
  align-items: center;
}

/* ============================================
   4. RECURRING BADGE
   ============================================ */
.recurring-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  background: linear-gradient(135deg, #9B59B6 0%, #8E44AD 100%);
  color: white;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.recurring-badge svg {
  width: 12px;
  height: 12px;
}

/* ============================================
   4.1 TRIP GROUP BADGE
   ============================================ */
.trip-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  background: linear-gradient(135deg, #3498DB 0%, #2980B9 100%);
  color: white;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.trip-badge:hover {
  background: linear-gradient(135deg, #2980B9 0%, #1a5276 100%);
  transform: scale(1.05);
}

/* ============================================
   5. DUPLICATE BUTTON
   ============================================ */
.btn-duplicate {
  color: #3498DB;
  border-color: #3498DB;
}

.btn-duplicate:hover {
  background: #3498DB;
  color: white;
}

/* ============================================
   6. SKELETON LOADING
   ============================================ */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 4px;
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-card {
  background: white;
  border: 2px solid #E0E0E0;
  border-radius: 12px;
  padding: 1.25rem;
}

.skeleton-line {
  height: 16px;
  margin-bottom: 8px;
}

.skeleton-line.short { width: 40%; }
.skeleton-line.medium { width: 70%; }
.skeleton-line.long { width: 100%; }

.skeleton-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

/* ============================================
   7. PULL TO REFRESH
   ============================================ */
.pull-to-refresh {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #4A90E2 0%, #00CED1 100%);
  color: white;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
  z-index: 1001;
}

.pull-to-refresh.visible {
  transform: translateY(0);
}

.pull-to-refresh .spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================
   8. SWIPE ACTIONS (Mobile)
   ============================================ */
.swipeable-card {
  position: relative;
  overflow: hidden;
  touch-action: pan-y;
}

.swipe-actions {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.swipe-action {
  width: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.swipe-action.edit {
  background: #3498DB;
}

.swipe-action.delete {
  background: #E74C3C;
}

.swipe-action.duplicate {
  background: #27AE60;
}

.swipeable-card.swiped .swipe-actions {
  transform: translateX(0);
}

.swipeable-card .card-content {
  background: white;
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.swipeable-card.swiped .card-content {
  transform: translateX(-140px);
}

/* ============================================
   9. DARK MODE TOGGLE IN HEADER
   ============================================ */
.theme-toggle-header {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.theme-toggle-header:hover {
  background: rgba(0,0,0,0.1);
}

.theme-toggle-header svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

[data-theme="dark"] .theme-toggle-header .theme-icon-light,
.theme-toggle-header .theme-icon-dark {
  display: none;
}

[data-theme="dark"] .theme-toggle-header .theme-icon-dark,
.theme-toggle-header .theme-icon-light {
  display: block;
}

/* ============================================
   10. SPENDING ALERT
   ============================================ */
.spending-alert {
  background: linear-gradient(135deg, #fff5f5 0%, #ffe0e0 100%);
  border: 2px solid #E74C3C;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.spending-alert.warning {
  background: linear-gradient(135deg, #fffbf0 0%, #fff3cd 100%);
  border-color: #F39C12;
}

.spending-alert-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.spending-alert-content {
  flex: 1;
}

.spending-alert-title {
  font-weight: 600;
  color: #2C3E50;
  margin-bottom: 2px;
}

.spending-alert-text {
  font-size: 0.875rem;
  color: #7F8C8D;
}

.spending-alert-close {
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: #7F8C8D;
  padding: 4px;
}

/* ============================================
   11. TOP CATEGORIES WIDGET
   ============================================ */
.top-categories-widget {
  background: white;
  border: 2px solid #4A90E2;
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.top-categories-title {
  font-size: 1rem;
  font-weight: 600;
  color: #2C3E50;
  margin-bottom: 1rem;
}

.category-bar {
  margin-bottom: 0.75rem;
}

.category-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.category-bar-name {
  font-size: 0.875rem;
  color: #2C3E50;
  display: flex;
  align-items: center;
  gap: 6px;
}

.category-bar-amount {
  font-size: 0.875rem;
  font-weight: 600;
  color: #2C3E50;
}

.category-bar-track {
  height: 8px;
  background: #E0E0E0;
  border-radius: 4px;
  overflow: hidden;
}

.category-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s ease;
}

/* ============================================
   12. UPCOMING BILLS WIDGET
   ============================================ */
.upcoming-bills-widget {
  background: white;
  border: 2px solid #4A90E2;
  border-radius: 12px;
  padding: 1.25rem;
}

.upcoming-bills-title {
  font-size: 1rem;
  font-weight: 600;
  color: #2C3E50;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bill-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid #E0E0E0;
}

.bill-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.bill-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  margin-right: 12px;
  background: linear-gradient(135deg, #4A90E2 0%, #00CED1 100%);
}

.bill-info {
  flex: 1;
}

.bill-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: #2C3E50;
}

.bill-due {
  font-size: 0.75rem;
  color: #7F8C8D;
}

.bill-due.overdue {
  color: #E74C3C;
}

.bill-due.today {
  color: #F39C12;
}

.bill-amount {
  font-size: 0.875rem;
  font-weight: 600;
  color: #2C3E50;
}

/* ============================================
   13. GOAL PROGRESS WIDGET
   ============================================ */
.goal-progress-widget {
  background: white;
  border: 2px solid #27AE60;
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.goal-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.goal-progress-title {
  font-size: 1rem;
  font-weight: 600;
  color: #2C3E50;
}

.goal-progress-percent {
  font-size: 1.25rem;
  font-weight: 700;
  color: #27AE60;
}

.goal-progress-bar {
  height: 12px;
  background: #E0E0E0;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.goal-progress-fill {
  height: 100%;
  background: linear-gradient(135deg, #27AE60 0%, #2ECC71 100%);
  border-radius: 6px;
  transition: width 0.5s ease;
}

.goal-progress-details {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #7F8C8D;
}

/* ============================================
   14. BULK ACTIONS
   ============================================ */
.bulk-actions-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #2C3E50;
  color: white;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  z-index: 1000;
}

.bulk-actions-bar.visible {
  transform: translateY(0);
}

.bulk-actions-count {
  font-weight: 600;
}

.bulk-actions-buttons {
  display: flex;
  gap: 0.75rem;
}

.bulk-actions-buttons .btn {
  padding: 0.5rem 1rem;
}

/* Cancel button in bulk actions - ensure visibility */
.bulk-actions-buttons .btn-outline {
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
}

.bulk-actions-buttons .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff;
}

/* Checkbox for selection */
.expense-checkbox {
  width: 20px;
  height: 20px;
  margin-right: 12px;
  cursor: pointer;
  accent-color: #4A90E2;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .fab-container {
    bottom: 80px;
    right: 16px;
  }
  
  .fab-btn {
    width: 48px;
    height: 48px;
  }
  
  .bulk-actions-bar {
    padding: 0.75rem;
  }
  
  .spending-alert {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
}


/* ============================================
   15. WIDGETS ROW
   ============================================ */

/* Desktop only: Allow auto-fit grid */
@media (min-width: 769px) {
  .widgets-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
  }
}

/* ============================================
   16. INCOME SOURCE WITH ICON (Base styles)
   ============================================ */
.income-source-with-icon,
.expense-category-with-icon {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Recurring badge styling */
.income-source-with-icon .recurring-badge,
.expense-category-with-icon .recurring-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--primary-blue);
  background: rgba(74, 144, 226, 0.1);
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 4px;
}

/* ============================================
   17. SELECTED CARD STATE
   ============================================ */
.expense-card.selected,
.income-card.selected {
  border-color: #4A90E2;
  background: linear-gradient(135deg, #f0f7ff 0%, #e6f2ff 100%);
}

/* ============================================
   18. DARK MODE ENHANCEMENTS
   ============================================ */
[data-theme="dark"] .spending-alert {
  background: linear-gradient(135deg, #3d2020 0%, #4a2525 100%);
  border-color: #E74C3C;
}

[data-theme="dark"] .spending-alert.warning {
  background: linear-gradient(135deg, #3d3520 0%, #4a4025 100%);
  border-color: #F39C12;
}

[data-theme="dark"] .top-categories-widget,
[data-theme="dark"] .upcoming-bills-widget,
[data-theme="dark"] .goal-progress-widget {
  background: #1e1e1e;
  border-color: #3d3d3d;
}

[data-theme="dark"] .category-bar-track,
[data-theme="dark"] .goal-progress-bar {
  background: #3d3d3d;
}

[data-theme="dark"] .bill-item {
  border-bottom-color: #3d3d3d;
}

[data-theme="dark"] .skeleton {
  background: linear-gradient(90deg, #2d2d2d 25%, #3d3d3d 50%, #2d2d2d 75%);
}

[data-theme="dark"] .skeleton-card {
  background: #1e1e1e;
  border-color: #3d3d3d;
}

[data-theme="dark"] .bulk-actions-bar {
  background: #1e1e1e;
}

[data-theme="dark"] .bulk-actions-buttons .btn-outline {
  border-color: #fff;
  color: #fff;
}

[data-theme="dark"] .bulk-actions-buttons .btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .expense-card.selected,
[data-theme="dark"] .income-card.selected {
  background: linear-gradient(135deg, #1a2a3a 0%, #1e3040 100%);
}

[data-theme="dark"] .kpi-card[data-tooltip]::after,
[data-theme="dark"] .summary-card[data-tooltip]::after {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.4),
    0 4px 12px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .kpi-card[data-tooltip]::before,
[data-theme="dark"] .summary-card[data-tooltip]::before {
  background: linear-gradient(135deg, #818cf8 0%, #a78bfa 100%);
  box-shadow: 0 2px 8px rgba(129, 140, 248, 0.4);
}

/* ============================================
   19. FAB BUTTON GREEN VARIANT FOR INCOME
   ============================================ */
.fab-btn.income-fab {
  background: linear-gradient(135deg, #27AE60 0%, #2ECC71 100%);
  box-shadow: 0 4px 12px rgba(39, 174, 96, 0.4);
}

.fab-btn.income-fab:hover {
  box-shadow: 0 6px 20px rgba(39, 174, 96, 0.5);
}

/* ============================================
   20. CHECKBOX STYLING
   ============================================ */
.expense-checkbox,
.income-checkbox {
  width: 18px;
  height: 18px;
  margin-right: 10px;
  cursor: pointer;
  accent-color: #4A90E2;
  flex-shrink: 0;
}

/* ============================================
   21. CARD HEADER WITH CHECKBOX - CLEAN TWO-ROW LAYOUT
   ============================================ */
.expense-header,
.income-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  row-gap: 4px;
}

.expense-header .expense-amount,
.income-header .income-amount {
  flex: 0 0 auto;
  margin-right: auto;
}

.expense-header .expense-category-with-icon,
.income-header .income-source-with-icon {
  flex: 0 0 100%;
  order: 10;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
  padding-left: 28px;
  margin-top: 2px;
}

.expense-header .expense-category-with-icon .category-icon,
.income-header .income-source-with-icon .category-icon {
  font-size: 14px;
}

.expense-header .expense-actions,
.income-header .income-actions {
  flex: 0 0 auto;
}

/* ============================================
   MOBILE RESPONSIVE ADDITIONS
   ============================================ */
@media (max-width: 768px) {
  .widgets-row {
    grid-template-columns: 1fr !important;
  }
  
  /* Force ALL widgets to full width on mobile */
  .widgets-row > * {
    grid-column: 1 / -1 !important;
  }
  
  .expense-header,
  .income-header {
    flex-wrap: wrap;
  }
  
  .expense-checkbox,
  .income-checkbox {
    order: -1;
  }
  
  .expense-header .expense-category-with-icon,
  .income-header .income-source-with-icon {
    padding-left: 24px;
  }
}


/* ========== mobile-enhancements.css ========== */
/* ============================================
   RUPIYA - MOBILE ENHANCEMENTS
   Optimized styles for mobile devices
   ============================================ */

/* ============================================
   MOBILE-FIRST BASE IMPROVEMENTS
   ============================================ */

/* Better touch targets */
@media (max-width: 768px) {
  /* Minimum touch target size (44x44px recommended by Apple) */
  .btn,
  .nav-item,
  .form-control,
  .form-select,
  .dropdown-item,
  .transaction-item,
  .btn-icon {
    min-height: 44px;
  }
  
  /* Improved spacing for touch */
  .nav-item {
    padding: 14px 16px;
  }
  
  /* Better form inputs on mobile */
  .form-control,
  .form-select {
    font-size: 16px; /* Prevents iOS zoom on focus */
    padding: 14px 16px;
  }
  
  /* Larger checkboxes and radios */
  .form-check-input {
    width: 24px;
    height: 24px;
  }
}

/* ============================================
   IMPROVED MOBILE NAVIGATION
   ============================================ */

@media (max-width: 768px) {
  /* Sidebar improvements */
  .sidebar {
    width: 85%;
    max-width: 320px;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
  }
  
  .sidebar.open {
    animation: slideInLeft 0.3s ease-out;
  }
  
  /* Mobile header sticky */
  .mobile-header {
    position: sticky;
    top: 0;
    z-index: 10001;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
  }
  
  [data-theme="dark"] .mobile-header {
    background: rgba(30, 30, 30, 0.95);
  }
  
  /* Bottom navigation option */
  .bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  }
  
  .bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 10px;
    transition: color 0.2s ease;
  }
  
  .bottom-nav-item.active {
    color: var(--primary-blue);
  }
  
  .bottom-nav-item .nav-icon {
    font-size: 20px;
  }
  
  /* Add padding to main content when bottom nav is present */
  .has-bottom-nav .main-content {
    padding-bottom: calc(70px + env(safe-area-inset-bottom));
  }
}

/* ============================================
   MOBILE CARDS & GRIDS
   ============================================ */

@media (max-width: 768px) {
  /* Full-width cards on mobile */
  .card,
  .kpi-card,
  .chart-card,
  .transactions-card {
    border-radius: 12px;
    margin-left: -4px;
    margin-right: -4px;
    width: calc(100% + 8px);
  }
  
  /* Horizontal scroll for KPI cards */
  .kpi-grid-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 4px 0;
    margin: 0 -12px;
    padding-left: 12px;
    padding-right: 12px;
  }
  
  .kpi-grid-scroll::-webkit-scrollbar {
    display: none;
  }
  
  .kpi-grid-scroll .kpi-card {
    flex: 0 0 auto;
    width: 160px;
    scroll-snap-align: start;
    margin: 0;
  }
  
  /* Compact transaction list */
  .transaction-item-compact {
    padding: 12px;
    gap: 12px;
  }
  
  .transaction-item-compact .transaction-icon {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
  
  .transaction-item-compact .transaction-title {
    font-size: 14px;
  }
  
  .transaction-item-compact .transaction-meta {
    font-size: 11px;
  }
  
  .transaction-item-compact .transaction-amount {
    font-size: 14px;
  }
}

/* ============================================
   MOBILE FORMS
   ============================================ */

@media (max-width: 768px) {
  /* Stack form grid on mobile */
  .form-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }
  
  .form-grid-2 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  /* Full-width form actions */
  .form-actions {
    flex-direction: column;
    gap: 12px;
  }
  
  .form-actions .btn {
    width: 100%;
    justify-content: center;
  }
  
  /* Floating labels for mobile */
  .form-floating {
    position: relative;
  }
  
  .form-floating .form-control {
    padding-top: 24px;
    padding-bottom: 8px;
  }
  
  .form-floating .form-label {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    transition: all 0.2s ease;
    pointer-events: none;
    color: var(--text-secondary);
    margin: 0;
  }
  
  .form-floating .form-control:focus ~ .form-label,
  .form-floating .form-control:not(:placeholder-shown) ~ .form-label {
    top: 12px;
    font-size: 11px;
    color: var(--primary-blue);
  }
}

/* ============================================
   MOBILE MODALS
   ============================================ */

@media (max-width: 768px) {
  /* Full-screen modals on mobile */
  .modal-overlay {
    padding: 0;
    align-items: flex-end;
  }
  
  .modal-container {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 20px 20px 0 0;
    margin: 0;
  }
  
  .modal-container.modal-sm {
    max-width: 100%;
  }
  
  /* Bottom sheet style modal */
  .modal-bottom-sheet .modal-container {
    animation: slideInUp 0.3s ease-out;
  }
  
  /* Modal drag handle */
  .modal-drag-handle {
    width: 40px;
    height: 4px;
    background: var(--medium-gray);
    border-radius: 2px;
    margin: 8px auto 16px;
  }
  
  /* Compact modal header */
  .modal-header {
    padding: 16px;
  }
  
  .modal-body {
    padding: 16px;
    max-height: calc(90vh - 140px);
    overflow-y: auto;
  }
  
  .modal-footer {
    padding: 16px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
  }
}

/* ============================================
   MOBILE TABLES
   ============================================ */

@media (max-width: 768px) {
  /* Responsive table wrapper */
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -12px;
    padding: 0 12px;
  }
  
  /* Card-style table rows on mobile */
  .table-cards tbody tr {
    display: block;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 12px;
    padding: 12px;
  }
  
  .table-cards tbody td {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border: none;
    border-bottom: 1px solid var(--border-color);
  }
  
  .table-cards tbody td:last-child {
    border-bottom: none;
  }
  
  .table-cards tbody td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 12px;
  }
  
  .table-cards thead {
    display: none;
  }
}

/* ============================================
   MOBILE CHARTS
   ============================================ */

@media (max-width: 768px) {
  .chart-container {
    height: 220px;
  }
  
  /* Horizontal scroll for chart filters */
  .chart-filters {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
  }
  
  .chart-filters::-webkit-scrollbar {
    display: none;
  }
  
  .chart-filter {
    flex-shrink: 0;
    white-space: nowrap;
  }
}

/* ============================================
   MOBILE EMPTY STATES
   ============================================ */

@media (max-width: 768px) {
  .empty-state {
    padding: 32px 16px;
  }
  
  .empty-state-icon {
    font-size: 48px;
  }
  
  .empty-state-title {
    font-size: 18px;
  }
  
  .empty-state-text {
    font-size: 14px;
  }
}

/* ============================================
   MOBILE TYPOGRAPHY
   ============================================ */

@media (max-width: 768px) {
  h1 { font-size: 24px; }
  h2 { font-size: 20px; }
  h3 { font-size: 18px; }
  h4 { font-size: 16px; }
  
  .page-title {
    font-size: 22px;
  }
  
  .page-subtitle {
    font-size: 13px;
  }
  
  /* Truncate long text */
  .text-truncate-mobile {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }
}

/* ============================================
   MOBILE SPACING
   ============================================ */

@media (max-width: 768px) {
  .container {
    padding: 0 12px;
  }
  
  .main-content {
    padding: 12px;
  }
  
  /* Compact sections */
  .section-compact {
    margin-bottom: 16px;
  }
  
  /* Reduced gaps */
  .gap-mobile-sm { gap: 8px; }
  .gap-mobile-md { gap: 12px; }
  .gap-mobile-lg { gap: 16px; }
}

/* ============================================
   MOBILE SAFE AREAS (Notch support)
   ============================================ */

@supports (padding: env(safe-area-inset-top)) {
  .mobile-header {
    padding-top: env(safe-area-inset-top);
  }
  
  .sidebar {
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
  }
  
  .modal-footer {
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
  }
}

/* ============================================
   MOBILE PULL TO REFRESH
   ============================================ */

.ptr-element {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

.ptr-element.visible {
  transform: translateY(0);
}

.ptr-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--light-gray);
  border-top-color: var(--primary-blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ============================================
   MOBILE SWIPE ACTIONS
   ============================================ */

.swipe-container {
  position: relative;
  overflow: hidden;
}

.swipe-content {
  transition: transform 0.3s ease;
}

.swipe-actions {
  position: absolute;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: stretch;
}

.swipe-actions-left {
  left: 0;
  transform: translateX(-100%);
}

.swipe-actions-right {
  right: 0;
  transform: translateX(100%);
}

.swipe-action {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  color: white;
  font-weight: 600;
}

.swipe-action-delete {
  background: var(--accent-red);
}

.swipe-action-edit {
  background: var(--primary-blue);
}

/* ============================================
   MOBILE DARK MODE ENHANCEMENTS
   ============================================ */

@media (max-width: 768px) {
  [data-theme="dark"] .mobile-header {
    background: rgba(30, 30, 30, 0.95);
    border-color: #333;
  }
  
  [data-theme="dark"] .bottom-nav {
    background: #1e1e1e;
    border-color: #333;
  }
  
  [data-theme="dark"] .card,
  [data-theme="dark"] .kpi-card,
  [data-theme="dark"] .transactions-card {
    background: #1e1e1e;
    border-color: #333;
  }
}

/* ============================================
   LANDSCAPE MOBILE OPTIMIZATIONS
   ============================================ */

@media (max-width: 768px) and (orientation: landscape) {
  .mobile-header {
    padding: 8px 12px;
  }
  
  .kpi-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .modal-container {
    max-height: 85vh;
  }
  
  .chart-container {
    height: 180px;
  }
}

/* ============================================
   SMALL MOBILE (< 375px)
   ============================================ */

@media (max-width: 374px) {
  .container {
    padding: 0 8px;
  }
  
  .main-content {
    padding: 8px;
  }
  
  .kpi-card {
    padding: 10px;
  }
  
  .kpi-value {
    font-size: 18px;
  }
  
  .btn {
    padding: 10px 16px;
    font-size: 13px;
  }
  
  .form-control,
  .form-select {
    padding: 12px;
  }
}


/* ============================================
   CRITICAL MOBILE FIXES - JANUARY 2026
   ============================================ */

/* ============================================
   PREVENT HORIZONTAL SCROLL
   ============================================ */

html, body {
  overflow-x: hidden;
  max-width: 100vw;
  position: relative;
}

* {
  max-width: 100%;
  box-sizing: border-box;
}

/* ============================================
   TEXT OVERFLOW HANDLING
   ============================================ */

body {
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Long URLs and emails */
a, p, span, li, td, label {
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Input fields */
input, textarea, select {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* ============================================
   MOBILE BUTTON IMPROVEMENTS
   ============================================ */

@media (max-width: 768px) {
  /* All buttons minimum 44x44px */
  .btn {
    min-width: 44px;
    min-height: 44px;
    padding: 12px 20px;
    font-size: 14px;
    border-radius: 8px;
    transition: all 0.2s ease;
  }
  
  .btn-icon {
    min-width: 44px;
    min-height: 44px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Full-width buttons on mobile */
  .btn-block {
    width: 100%;
    display: block;
  }
  
  /* Button groups */
  .btn-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }
  
  .btn-group .btn {
    flex: 1;
    min-width: 100px;
  }
}

/* ============================================
   MOBILE LINK IMPROVEMENTS
   ============================================ */

@media (max-width: 768px) {
  a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 8px 4px;
  }
  
  /* Navigation links */
  .nav-link, .sidebar-link {
    min-height: 44px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
  }
}

/* ============================================
   MOBILE INPUT IMPROVEMENTS
   ============================================ */

@media (max-width: 768px) {
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="number"],
  input[type="date"],
  input[type="tel"],
  textarea,
  select {
    font-size: 16px; /* Prevents iOS zoom */
    padding: 14px 16px;
    min-height: 44px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    width: 100%;
  }
  
  /* Focus states */
  input:focus,
  textarea:focus,
  select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
  }
  
  /* Checkboxes and radios */
  input[type="checkbox"],
  input[type="radio"] {
    min-width: 24px;
    min-height: 24px;
    cursor: pointer;
  }
  
  /* Label touch targets */
  label {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    cursor: pointer;
  }
}

/* ============================================
   MOBILE DROPDOWN IMPROVEMENTS
   ============================================ */

@media (max-width: 768px) {
  .dropdown-menu {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 60vh;
    border-radius: 20px 20px 0 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .dropdown-item {
    padding: 16px;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

/* ============================================
   MOBILE PAGINATION
   ============================================ */

@media (max-width: 768px) {
  .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 20px 0;
  }
  
  .pagination-btn {
    min-width: 44px;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    background: var(--white);
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
  }
  
  .pagination-btn:hover:not(:disabled) {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
  }
  
  .pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }
}

/* ============================================
   MOBILE TABS
   ============================================ */

@media (max-width: 768px) {
  .tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -12px;
    padding: 0 12px;
  }
  
  .tab-btn {
    flex: 1;
    min-width: 80px;
    padding: 12px 16px;
    border: none;
    background: none;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-secondary);
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
  }
  
  .tab-btn.active {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
  }
}

/* ============================================
   MOBILE ACCORDION
   ============================================ */

@media (max-width: 768px) {
  .accordion-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 8px;
    overflow: hidden;
  }
  
  .accordion-header {
    padding: 16px;
    background: var(--white);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 44px;
    user-select: none;
  }
  
  .accordion-header:hover {
    background: var(--bg-hover);
  }
  
  .accordion-content {
    padding: 16px;
    border-top: 1px solid var(--border-color);
    display: none;
  }
  
  .accordion-item.open .accordion-content {
    display: block;
  }
}

/* ============================================
   MOBILE CARD IMPROVEMENTS
   ============================================ */

@media (max-width: 768px) {
  .card {
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--white);
    padding: 16px;
    margin-bottom: 12px;
  }
  
  .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    gap: 8px;
  }
  
  .card-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
  }
  
  .card-body {
    font-size: 14px;
  }
  
  .card-footer {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
  }
}

/* ============================================
   MOBILE BADGE IMPROVEMENTS
   ============================================ */

@media (max-width: 768px) {
  .badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
  }
  
  .badge-primary {
    background: var(--primary-blue);
    color: white;
  }
  
  .badge-success {
    background: var(--accent-green);
    color: white;
  }
  
  .badge-danger {
    background: var(--accent-red);
    color: white;
  }
}

/* ============================================
   MOBILE ALERT IMPROVEMENTS
   ============================================ */

@media (max-width: 768px) {
  .alert {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 12px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
  }
  
  .alert-icon {
    flex-shrink: 0;
    font-size: 20px;
  }
  
  .alert-content {
    flex: 1;
  }
  
  .alert-close {
    flex-shrink: 0;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    padding: 0;
    color: inherit;
  }
}

/* ============================================
   MOBILE TOOLTIP IMPROVEMENTS
   ============================================ */

@media (max-width: 768px) {
  .tooltip {
    position: fixed;
    bottom: 20px;
    left: 12px;
    right: 12px;
    padding: 12px 16px;
    background: #333;
    color: white;
    border-radius: 8px;
    font-size: 13px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
}

/* ============================================
   MOBILE LOADING STATES
   ============================================ */

@media (max-width: 768px) {
  .loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    gap: 16px;
  }
  
  .spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--light-gray);
    border-top-color: var(--primary-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
  }
  
  .spinner-lg {
    width: 48px;
    height: 48px;
    border: 4px solid var(--light-gray);
    border-top-color: var(--primary-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
  }
  
  @keyframes spin {
    to { transform: rotate(360deg); }
  }
}

/* ============================================
   MOBILE SKELETON LOADERS
   ============================================ */

@media (max-width: 768px) {
  .skeleton {
    background: linear-gradient(
      90deg,
      var(--light-gray) 25%,
      var(--bg-hover) 50%,
      var(--light-gray) 75%
    );
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
  }
  
  @keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
  }
}

/* ============================================
   MOBILE GESTURE FEEDBACK
   ============================================ */

@media (max-width: 768px) {
  .active-state {
    background: var(--bg-hover);
    transform: scale(0.98);
  }
  
  .ripple {
    position: relative;
    overflow: hidden;
  }
  
  .ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(74, 144, 226, 0.3);
    transform: translate(-50%, -50%);
    animation: ripple-animation 0.6s ease-out;
  }
  
  @keyframes ripple-animation {
    to {
      width: 300px;
      height: 300px;
      opacity: 0;
    }
  }
}

/* ============================================
   MOBILE PRINT STYLES
   ============================================ */

@media print {
  .mobile-header,
  .sidebar,
  .bottom-nav,
  .fab-container,
  .btn-icon {
    display: none !important;
  }
  
  .main-content {
    padding: 0;
  }
}

/* ============================================
   INVESTMENTS PAGE MOBILE ENHANCEMENTS
   ============================================ */

@media (max-width: 768px) {
  /* KPI Cards - 3 per row like goals page */
  .portfolio-summary {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
    margin-bottom: 1rem;
    padding: 12px;
  }
  
  .summary-card {
    padding: 10px 8px !important;
    flex-direction: column !important;
    text-align: center !important;
    align-items: center !important;
    gap: 4px !important;
    min-height: auto !important;
    border-radius: 10px;
    background: white;
    border: 2px solid #4A90E2;
  }
  
  .summary-icon {
    width: auto !important;
    height: auto !important;
    font-size: 24px !important;
    margin: 0 auto;
  }
  
  .summary-label {
    font-size: 9px !important;
    margin-bottom: 2px;
    text-transform: uppercase;
  }
  
  .summary-value {
    font-size: 14px !important;
    font-weight: 700;
  }
  
  .summary-change {
    font-size: 10px !important;
    margin-top: 2px;
  }
  
  /* Investment Cards - 1 per row for readability */
  .investments-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }
  
  .investment-card {
    padding: 0 !important;
    min-height: auto !important;
    display: block !important;
    border-radius: 12px;
    background: white;
    border: 2px solid #4A90E2;
    overflow: visible !important;
  }
  
  .investment-card-header {
    padding: 12px;
    margin-bottom: 0 !important;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
  }
  
  .investment-info {
    flex: 1;
    min-width: 0;
  }
  
  .investment-name {
    font-size: 16px !important;
    font-weight: 600;
    margin-bottom: 4px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    display: block !important;
    white-space: normal !important;
  }
  
  .investment-type {
    font-size: 11px !important;
    padding: 2px 8px !important;
    display: inline-block;
    background: #f0f0f0 !important;
    color: #666 !important;
    border-radius: 4px;
  }
  
  .investment-symbol {
    font-size: 11px !important;
    padding: 2px 6px !important;
    display: inline-block;
    margin-left: 6px;
    background: #e8f4fd !important;
    color: #4A90E2 !important;
    border-radius: 4px;
    font-family: monospace;
  }
  
  .investment-actions {
    display: flex !important;
    flex-direction: row !important;
    gap: 4px !important;
    flex-shrink: 0;
  }
  
  .investment-actions .btn-icon {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    font-size: 14px;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: #f5f5f5;
    border: none !important;
  }
  
  .investment-actions .btn-icon.btn-danger {
    background: #ffebee;
  }
  
  .investment-card-body {
    padding: 12px !important;
    display: block !important;
    gap: 0 !important;
    flex: none !important;
    margin-bottom: 0 !important;
  }
  
  .investment-stat {
    display: flex;
    flex-direction: column;
  }
  
  .investment-stat-label {
    font-size: 10px !important;
    color: #666;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
  }
  
  .investment-stat-value {
    font-size: 14px !important;
    font-weight: 600;
    display: block;
  }
  
  .investment-stat-inr {
    font-size: 12px;
    margin-top: 2px;
  }
  
  .investment-stats-row {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    margin-bottom: 12px;
  }
  
  .investment-stats-row:last-child {
    margin-bottom: 0;
  }
  
  .investment-stats-row:first-child {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  .investment-returns-row {
    padding-top: 12px !important;
    border-top: 1px solid #eee !important;
    margin-top: 12px !important;
    display: block !important;
  }
  
  .investment-stat-full {
    text-align: left !important;
    grid-column: 1 / -1;
  }
  
  .investment-stat-full .investment-stat-value {
    font-size: 16px !important;
    font-weight: 700;
  }
  
  .price-change {
    font-size: 12px !important;
    margin-top: 4px;
    font-weight: 600;
    display: block;
  }
  
  .investment-card-footer {
    padding: 10px 12px !important;
    border-top: 1px solid #eee;
    margin-top: 0 !important;
    display: block !important;
    background: #fafafa;
    border-radius: 0 0 10px 10px;
  }
  
  .investment-date {
    font-size: 11px !important;
    color: #888;
  }
  
  .investment-notes {
    margin-top: 0 !important;
    padding: 10px 12px !important;
    border-top: 1px solid #eee;
    font-size: 12px;
    color: #666;
    line-height: 1.4;
    background: #f9f9f9;
  }
  
  .live-indicator {
    font-size: 9px !important;
    background: #4CAF50 !important;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    display: inline-block;
    margin-left: 4px;
  }
}

@media (max-width: 480px) {
  /* Extra small mobile - keep 3 summary cards */
  .portfolio-summary {
    gap: 6px !important;
    padding: 8px;
  }
  
  .summary-card {
    padding: 8px 6px !important;
  }
  
  .summary-icon {
    font-size: 20px !important;
  }
  
  .summary-label {
    font-size: 8px !important;
  }
  
  .summary-value {
    font-size: 12px !important;
  }
  
  .summary-change {
    font-size: 9px !important;
  }
  
  /* Investment cards - still 1 per row */
  .investments-grid {
    gap: 10px !important;
  }
  
  .investment-card {
    padding: 0 !important;
  }
  
  .investment-card-header {
    padding: 10px;
  }
  
  .investment-card-body {
    padding: 10px !important;
  }
  
  .investment-name {
    font-size: 14px !important;
  }
  
  .investment-type,
  .investment-symbol {
    font-size: 10px !important;
    padding: 2px 6px !important;
  }
  
  .investment-actions .btn-icon {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
  }
  
  .investment-stat-label {
    font-size: 9px !important;
  }
  
  .investment-stat-value {
    font-size: 13px !important;
  }
  
  .investment-stat-full .investment-stat-value {
    font-size: 14px !important;
  }
  
  .price-change {
    font-size: 11px !important;
  }
}

/* ============================================
   FOOTER MOBILE ENHANCEMENTS
   ============================================ */

@media (max-width: 768px) {
  .landing-footer {
    padding: 3rem 1rem 1.5rem;
    margin-top: 2rem;
  }

  .footer-content {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
  }

  .footer-section h4 {
    font-size: 1rem;
    padding-bottom: 0.5rem;
  }

  .footer-section ul {
    gap: 0.5rem;
  }

  .footer-section a {
    font-size: 0.875rem;
    padding: 0.375rem 0;
  }

  .footer-bottom {
    gap: 0.75rem;
    padding-top: 1.5rem;
  }

  .footer-copyright {
    font-size: 0.8rem;
  }

  .footer-disclaimer {
    font-size: 0.75rem;
  }

  .footer-social {
    gap: 0.75rem;
  }

  .footer-social a {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .landing-footer {
    padding: 2rem 0.75rem 1rem;
    margin-top: 1.5rem;
  }

  .footer-content {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
  }

  .footer-section h4 {
    font-size: 0.9rem;
    padding-bottom: 0.375rem;
    margin-bottom: 0.25rem;
  }

  .footer-section h4::before {
    width: 3px;
    height: 16px;
  }

  .footer-section ul {
    gap: 0.375rem;
  }

  .footer-section li {
    margin: 0;
  }

  .footer-section a {
    font-size: 0.8rem;
    padding: 0.25rem 0;
  }

  .footer-section a::before {
    display: none;
  }

  .footer-bottom {
    gap: 0.5rem;
    padding-top: 1rem;
  }

  .footer-copyright {
    font-size: 0.75rem;
    line-height: 1.4;
  }

  .footer-disclaimer {
    font-size: 0.7rem;
    line-height: 1.3;
  }

  .footer-social {
    gap: 0.5rem;
  }

  .footer-social a {
    width: 36px;
    height: 36px;
    font-size: 1rem;
    border-width: 1px;
  }
}



/* ========== ux-enhancements.css ========== */
/* ============================================
   RUPIYA - UX ENHANCEMENTS
   Additional UI/UX improvements
   ============================================ */

/* ============================================
   1. BETTER LOADING STATES
   ============================================ */

/* Skeleton loading for cards */
.skeleton-card {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--border-radius-lg);
  height: 120px;
}

.skeleton-text {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
  height: 16px;
  margin-bottom: 8px;
}

.skeleton-text.short { width: 60%; }
.skeleton-text.medium { width: 80%; }

/* ============================================
   2. IMPROVED TOOLTIPS
   ============================================ */

[data-tooltip] {
  position: relative;
  cursor: help;
}

[data-tooltip]:hover::before,
[data-tooltip]:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

[data-tooltip]::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  padding: 8px 12px;
  background: var(--primary-dark);
  color: white;
  font-size: 12px;
  font-weight: 500;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

[data-tooltip]::after {
  content: '';
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  border: 6px solid transparent;
  border-top-color: var(--primary-dark);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 1000;
}

/* ============================================
   3. BETTER FOCUS STATES (Accessibility)
   ============================================ */

/* Skip to main content link */
.skip-link {
  position: fixed;
  top: -100px;
  left: 0;
  background: var(--primary-blue);
  color: white;
  padding: 8px 16px;
  z-index: 10000;
  transition: top 0.3s;
  border-radius: 0 0 8px 0;
  pointer-events: none;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
}

.skip-link:focus {
  top: 0;
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

/* Enhanced focus ring */
:focus-visible {
  outline: 3px solid var(--primary-blue);
  outline-offset: 2px;
}

/* Remove default focus for mouse users */
:focus:not(:focus-visible) {
  outline: none;
}

/* ============================================
   4. MICRO-INTERACTIONS
   ============================================ */

/* Button click feedback */
.btn {
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
}

.btn:active::after {
  width: 200%;
  height: 200%;
}

/* Checkbox animation */
.form-check-input {
  transition: all 0.2s ease;
}

.form-check-input:checked {
  animation: checkPop 0.3s ease;
}

@keyframes checkPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* Card hover lift effect */
.card-interactive {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-interactive:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

/* ============================================
   5. BETTER EMPTY STATES
   ============================================ */

.empty-state {
  text-align: center;
  padding: 48px 24px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: var(--border-radius-lg);
  border: 2px dashed var(--border-color);
}

.empty-state-icon {
  font-size: 64px;
  margin-bottom: 16px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.empty-state-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.empty-state-text {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   6. IMPROVED FORM FEEDBACK
   ============================================ */

/* Success state */
.form-control.is-valid {
  border-color: var(--accent-green);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2327AE60' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
}

.form-control.is-valid:focus {
  box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.15);
}

/* Error state with shake */
.form-control.is-invalid {
  border-color: var(--accent-red);
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}

/* Error message styling */
.error-message {
  display: block;
  color: var(--accent-red);
  font-size: 12px;
  margin-top: 4px;
  animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   7. BETTER NOTIFICATIONS/ALERTS
   ============================================ */

.alert-dismissible {
  position: relative;
  padding-right: 48px;
}

.alert-close {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.alert-close:hover {
  opacity: 1;
}

/* Animated alert entrance */
.alert-animated {
  animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ============================================
   8. IMPROVED NAVIGATION FEEDBACK
   ============================================ */

.nav-item {
  position: relative;
  transition: all 0.2s ease;
}

.nav-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: var(--primary-blue);
  border-radius: 0 3px 3px 0;
  transition: height 0.2s ease;
}

.nav-item:hover::before,
.nav-item.active::before {
  height: 60%;
}

.nav-item.active {
  background: rgba(74, 144, 226, 0.1);
  color: var(--primary-blue);
}

/* ============================================
   9. SCROLL PROGRESS INDICATOR
   ============================================ */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-blue), var(--accent-cyan));
  z-index: 9999;
  transition: width 0.1s ease;
  pointer-events: none;
}

/* ============================================
   10. BETTER MODAL TRANSITIONS
   ============================================ */

.modal-overlay {
  background: rgba(0, 0, 0, 0);
  transition: background 0.3s ease;
}

.modal-overlay.show {
  background: rgba(0, 0, 0, 0.5);
}

.modal-container {
  transform: scale(0.95) translateY(-20px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.show .modal-container {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* ============================================
   11. IMPROVED CARD STATES
   ============================================ */

/* Selected state */
.card.selected,
.expense-card.selected,
.income-card.selected {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

/* Disabled state */
.card.disabled {
  opacity: 0.6;
  pointer-events: none;
}

/* ============================================
   12. BETTER LOADING BUTTON STATES
   ============================================ */

.btn-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.btn-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ============================================
   13. SWIPE HINT FOR MOBILE
   ============================================ */

@media (max-width: 768px) {
  .swipe-hint {
    position: relative;
    overflow: hidden;
  }
  
  .swipe-hint::after {
    content: '← Swipe for actions';
    position: absolute;
    right: -100%;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    color: var(--text-secondary);
    animation: swipeHint 3s ease-in-out 2s;
    animation-fill-mode: forwards;
  }
  
  @keyframes swipeHint {
    0% { right: -100%; opacity: 0; }
    20% { right: 12px; opacity: 1; }
    80% { right: 12px; opacity: 1; }
    100% { right: -100%; opacity: 0; }
  }
}

/* ============================================
   14. BETTER DATE PICKER STYLING
   ============================================ */

input[type="date"] {
  position: relative;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  background: transparent;
  bottom: 0;
  color: transparent;
  cursor: pointer;
  height: auto;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  width: auto;
}

/* ============================================
   15. QUICK ACTION FAB IMPROVEMENTS
   ============================================ */

.fab-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
}

.fab-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-blue) 0%, #3A7BC8 100%);
  color: white;
  border: none;
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fab-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(74, 144, 226, 0.5);
}

.fab-btn:active {
  transform: scale(0.95);
}

/* FAB with menu */
.fab-menu {
  position: absolute;
  bottom: 70px;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.fab-container.open .fab-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.fab-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  background: white;
  border-radius: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  white-space: nowrap;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

.fab-menu-item:hover {
  transform: translateX(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* ============================================
   16. BETTER SEARCH INPUT
   ============================================ */

.search-box {
  position: relative;
}

.search-box input {
  padding-left: 44px;
  transition: all 0.3s ease;
}

.search-box input:focus {
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.15);
}

.search-box svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.search-box input:focus + svg,
.search-box:focus-within svg {
  color: var(--primary-blue);
}

/* Search clear button */
.search-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--light-gray);
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.search-box input:not(:placeholder-shown) ~ .search-clear {
  opacity: 1;
}

/* ============================================
   17. IMPROVED TABS
   ============================================ */

.settings-tabs {
  display: flex;
  gap: 4px;
  background: var(--light-gray);
  padding: 4px;
  border-radius: 12px;
  margin-bottom: 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tab-btn {
  flex: 1;
  min-width: max-content;
  padding: 12px 16px;
  background: transparent;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.5);
}

.tab-btn.active {
  background: white;
  color: var(--primary-blue);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ============================================
   18. BETTER PROGRESS INDICATORS
   ============================================ */

.progress-ring {
  transform: rotate(-90deg);
}

.progress-ring-circle {
  transition: stroke-dashoffset 0.5s ease;
  transform-origin: 50% 50%;
}

/* Animated progress bar */
.progress-animated .progress-bar {
  animation: progressPulse 2s ease-in-out infinite;
}

@keyframes progressPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* ============================================
   19. DARK MODE ENHANCEMENTS
   ============================================ */

[data-theme="dark"] {
  --skeleton-base: #2a2a2a;
  --skeleton-highlight: #3a3a3a;
}

[data-theme="dark"] .skeleton-card,
[data-theme="dark"] .skeleton-text {
  background: linear-gradient(90deg, var(--skeleton-base) 25%, var(--skeleton-highlight) 50%, var(--skeleton-base) 75%);
  background-size: 200% 100%;
}

[data-theme="dark"] .empty-state {
  background: linear-gradient(135deg, #1e1e1e 0%, #2a2a2a 100%);
  border-color: #333;
}

[data-theme="dark"] [data-tooltip]::before {
  background: #333;
}

[data-theme="dark"] [data-tooltip]::after {
  border-top-color: #333;
}

/* ============================================
   20. PRINT STYLES
   ============================================ */

@media print {
  .fab-container,
  .sidebar,
  .mobile-header,
  .bulk-actions-bar,
  .pull-to-refresh,
  .scroll-progress {
    display: none !important;
  }
  
  .main-content {
    margin: 0;
    padding: 0;
  }
  
  .card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }
}


/* ============================================
   GLOBAL MOBILE HEADER Z-INDEX FIX
   Ensures mobile headers are always clickable
   ============================================ */

/* Global mobile header z-index - above scroll progress and skip link */
.mobile-header {
  z-index: 10001 !important;
  position: sticky !important;
  pointer-events: auto !important;
}

/* Ensure mobile header actions are clickable */
.mobile-header-actions {
  z-index: 10002 !important;
  position: relative !important;
  pointer-events: auto !important;
}

/* Ensure hamburger menu is always clickable */
.mobile-header .sidebar-toggle,
.mobile-header-actions .sidebar-toggle,
#sidebarOpen {
  z-index: 10003 !important;
  position: relative !important;
  pointer-events: auto !important;
  cursor: pointer !important;
}

/* Ensure privacy mode button in header is properly layered */
.mobile-header .privacy-mode-btn,
.mobile-header-actions .privacy-mode-btn {
  z-index: 10003 !important;
  position: relative !important;
}


/* ============================================
   MOBILE SIDEBAR OPEN - HIDE MOBILE HEADER
   Prevents duplicate headers on mobile
   ============================================ */

@media (max-width: 768px) {
  /* When sidebar is open, hide the mobile header to prevent duplication */
  .sidebar.open ~ * .mobile-header,
  body:has(.sidebar.open) .mobile-header {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
  
  /* Ensure sidebar overlay covers everything */
  .sidebar-overlay.show,
  .sidebar-overlay.active {
    z-index: 1000 !important;
    display: block !important;
  }
  
  /* Sidebar should be above overlay */
  .sidebar.open {
    z-index: 1001 !important;
  }
  
  /* Prevent body scroll when sidebar is open */
  body:has(.sidebar.open) {
    overflow: hidden;
  }
}


/* ============================================
   SKIP LINK - ADDITIONAL SAFEGUARDS
   Ensure skip link is never visible unless focused
   ============================================ */

/* Force skip link to be hidden by default */
a.skip-link:not(:focus) {
  position: fixed !important;
  top: -200px !important;
  left: -200px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}

/* Only show when focused via keyboard */
a.skip-link:focus {
  position: fixed !important;
  top: 10px !important;
  left: 10px !important;
  width: auto !important;
  height: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  overflow: visible !important;
  clip: auto !important;
  white-space: normal !important;
  z-index: 99999 !important;
  padding: 12px 20px !important;
  background: var(--primary-blue, #4A90E2) !important;
  color: white !important;
  text-decoration: none !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}


/* ========== layout-fixes.css ========== */
/* ============================================
   RUPIYA - LAYOUT FIXES
   Comprehensive responsive layout fixes for all pages
   ============================================ */

/* ============================================
   DESKTOP LAYOUT (> 768px)
   ============================================ */
@media (min-width: 769px) {
  .dashboard-layout {
    display: flex;
    min-height: 100vh;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .sidebar {
    width: 260px;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
  }

  .main-content {
    flex: 1;
    margin-left: 260px;
    padding: 2rem;
    width: calc(100% - 260px);
    max-width: calc(100vw - 260px);
    overflow-x: hidden;
  }

  .mobile-header {
    display: none !important;
  }

  /* Page Header Desktop */
  .page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    gap: 1.5rem;
    flex-wrap: wrap;
  }

  .page-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
  }

  /* KPI Cards Desktop */
  .kpi-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
  }

  .kpi-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
  }

  .kpi-icon {
    width: 50px;
    height: 50px;
    font-size: 2rem;
    flex-shrink: 0;
  }

  .kpi-content {
    flex: 1;
    min-width: 0;
  }

  .kpi-label {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
  }

  .kpi-value {
    font-size: 1.75rem;
    font-weight: 700;
  }

  /* Filters Desktop */
  .filters-card {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }

  .filters-toggle {
    display: none;
  }

  .filters-content {
    display: block !important;
  }

  .filters-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
  }

  /* Income/Expense Grid Desktop */
  .income-grid,
  .expense-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
  }

  /* Form Grid Desktop */
  .form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .form-group-full {
    grid-column: 1 / -1;
  }
}

/* ============================================
   TABLET LAYOUT (481px - 768px)
   ============================================ */
@media (min-width: 481px) and (max-width: 768px) {
  .dashboard-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 260px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1001;
    display: flex;
    flex-direction: column;
  }

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

  .sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
  }

  .sidebar-overlay.show {
    display: block;
  }

  .main-content {
    margin-left: 0;
    padding: 1.5rem;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .mobile-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: var(--white);
    border-bottom: 2px solid var(--primary-blue);
    margin: -1.5rem -1.5rem 1.5rem -1.5rem;
  }

  /* Page Header Tablet */
  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }

  .page-title {
    font-size: 1.75rem;
  }

  .page-actions {
    width: 100%;
    display: flex;
    gap: 0.75rem;
  }

  .page-actions .btn {
    flex: 1;
  }

  /* KPI Cards Tablet */
  .kpi-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
  }

  .kpi-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
    gap: 0.75rem;
  }

  .kpi-icon {
    width: 44px;
    height: 44px;
    font-size: 1.75rem;
  }

  .kpi-label {
    font-size: 0.75rem;
  }

  .kpi-value {
    font-size: 1.25rem;
  }

  /* Filters Tablet */
  .filters-card {
    padding: 1rem;
    margin-bottom: 1.5rem;
  }

  .filters-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 0;
  }

  .filters-content {
    display: none;
    margin-top: 1rem;
  }

  .filters-content.show {
    display: block;
  }

  .filters-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
  }

  /* Income/Expense Grid Tablet */
  .income-grid,
  .expense-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  /* Form Grid Tablet */
  .form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

/* ============================================
   MOBILE LAYOUT (≤ 480px)
   ============================================ */
@media (max-width: 480px) {
  html {
    overflow-x: hidden;
    max-width: 100vw;
  }

  body {
    overflow-x: hidden;
    max-width: 100vw;
    position: relative;
  }

  .dashboard-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 260px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1001;
    display: flex;
    flex-direction: column;
  }

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

  .sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
  }

  .sidebar-overlay.show {
    display: block;
  }

  .main-content {
    margin-left: 0;
    padding: 0.75rem;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
  }

  .mobile-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: var(--white);
    border-bottom: 2px solid var(--primary-blue);
    margin: -0.75rem -0.75rem 0.75rem -0.75rem;
    position: sticky;
    top: 0;
    z-index: 100;
  }

  .mobile-brand img {
    height: 32px;
    width: auto;
  }

  .mobile-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  /* Page Header Mobile */
  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
  }

  .page-title {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
  }

  .page-subtitle {
    font-size: 0.875rem;
  }

  .page-actions {
    width: 100%;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
  }

  .page-actions .btn {
    flex: 1;
    min-width: 0;
    padding: 0.625rem 0.75rem;
    font-size: 0.875rem;
  }

  .page-actions .btn svg {
    width: 14px;
    height: 14px;
  }

  /* KPI Cards Mobile */
  .kpi-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
  }

  .kpi-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0.625rem 0.5rem;
    gap: 0.5rem;
    min-width: 0;
  }

  .kpi-icon {
    width: 36px;
    height: 36px;
    font-size: 1.25rem;
    border-radius: 8px;
  }

  .kpi-content {
    width: 100%;
    min-width: 0;
  }

  .kpi-label {
    font-size: 0.625rem;
    margin-bottom: 0.125rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
  }

  .kpi-value {
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
  }

  /* Filters Mobile */
  .filters-card {
    padding: 0.75rem;
    margin-bottom: 1rem;
  }

  .filters-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.625rem;
    margin-bottom: 0;
    font-size: 0.875rem;
  }

  .filters-content {
    display: none;
    margin-top: 0.75rem;
  }

  .filters-content.show {
    display: block;
  }

  .filters-row {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem !important;
    margin-bottom: 0.75rem !important;
  }

  .filter-group {
    margin-bottom: 0 !important;
  }

  .filter-group label {
    font-size: 0.6875rem !important;
    margin-bottom: 0.25rem !important;
  }

  .filter-select,
  .filter-input {
    padding: 0.5rem 0.625rem !important;
    font-size: 0.875rem !important;
  }

  /* Clear filters button - full width */
  .filter-group:has(#clearFiltersBtn),
  .filter-group:last-child {
    grid-column: 1 / -1 !important;
  }

  .search-row {
    flex-direction: column;
    gap: 0.5rem;
  }

  .search-box {
    width: 100%;
    min-width: 100%;
  }

  .search-box input {
    padding: 0.5rem 0.625rem 0.5rem 2.25rem !important;
    font-size: 0.875rem !important;
  }

  .results-count {
    font-size: 0.6875rem !important;
    text-align: center;
  }

  .search-box input {
    padding: 0.5rem 0.625rem 0.5rem 2.25rem;
    font-size: 0.875rem;
  }

  .results-count {
    font-size: 0.75rem;
    text-align: center;
  }

  /* Income/Expense Grid Mobile */
  .income-grid,
  .expense-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.625rem;
  }

  .income-card,
  .expense-card {
    padding: 0.75rem;
  }

  .income-header,
  .expense-header {
    gap: 0.5rem;
    row-gap: 0.25rem;
    align-items: center;
  }

  .income-amount,
  .expense-amount {
    font-size: 1.125rem;
  }

  /* Source/Category with icon on its own line */
  .income-source-with-icon,
  .expense-category-with-icon {
    font-size: 0.75rem;
    padding-left: 1.5rem;
  }

  .income-description,
  .expense-description {
    font-size: 0.8125rem;
  }

  .income-meta,
  .expense-meta {
    gap: 0.5rem;
  }

  .income-meta-item,
  .expense-meta-item {
    font-size: 0.6875rem;
  }

  .income-meta-item svg,
  .expense-meta-item svg {
    width: 12px;
    height: 12px;
  }

  .btn-icon {
    width: 28px;
    height: 28px;
    padding: 0;
  }

  .btn-icon svg {
    width: 14px;
    height: 14px;
  }

  /* Form Grid Mobile */
  .form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.5rem;
  }

  .form-group {
    margin-bottom: 0;
  }

  .form-group-full {
    grid-column: 1 / -1;
  }

  .form-group label {
    font-size: 0.6875rem;
    margin-bottom: 0.25rem;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 0.5rem 0.625rem;
    font-size: 0.875rem;
  }

  .form-actions {
    flex-direction: column-reverse;
    gap: 0.5rem;
    padding-top: 0.625rem;
  }

  .form-actions .btn {
    width: 100%;
    min-width: 100%;
  }

  /* Add Income/Expense Section Mobile */
  .add-income-section,
  .add-expense-section {
    padding: 0.625rem;
    margin-bottom: 0.75rem;
  }

  .add-income-header,
  .add-expense-header {
    margin-bottom: 0.625rem;
    padding-bottom: 0.625rem;
  }

  .add-income-title,
  .add-expense-title {
    font-size: 1rem;
  }

  /* Empty State Mobile */
  .empty-state {
    padding: 2rem 1rem;
    min-height: 300px;
  }

  .empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
  }

  .empty-state-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
  }

  .empty-state-text {
    font-size: 0.875rem;
    margin-bottom: 1rem;
  }

  .empty-state .btn {
    width: 100%;
    max-width: 280px;
  }

  /* Pagination Mobile */
  .pagination-container {
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.75rem;
  }

  .pagination-container .btn {
    width: 100%;
  }

  .pagination-info {
    font-size: 0.875rem;
  }

  /* Modal Mobile */
  .modal-container {
    max-width: 100%;
    max-height: 100vh;
    border-radius: 0;
    margin: 0;
  }

  .modal-header {
    padding: 0.75rem;
  }

  .modal-title {
    font-size: 1.125rem;
  }

  .modal-body {
    padding: 0.75rem;
  }

  .modal-footer {
    padding: 0.75rem;
    gap: 0.5rem;
    flex-direction: column-reverse;
  }

  .modal-footer .btn {
    width: 100%;
  }

  /* Radio Group Mobile */
  .radio-group {
    flex-direction: column;
    gap: 0.5rem;
  }

  .radio-option {
    padding: 0.5rem 0.75rem;
  }

  .radio-option span {
    font-size: 0.8125rem;
  }
}

/* ============================================
   LANDSCAPE MOBILE FIXES
   ============================================ */
@media (max-width: 768px) and (orientation: landscape) {
  .main-content {
    padding: 0.5rem;
  }

  .mobile-header {
    padding: 0.5rem 0.75rem;
    margin: -0.5rem -0.5rem 0.5rem -0.5rem;
  }

  .kpi-summary {
    gap: 0.375rem;
  }

  .kpi-card {
    padding: 0.5rem 0.375rem;
  }

  .kpi-icon {
    width: 32px;
    height: 32px;
    font-size: 1.125rem;
  }

  .kpi-label {
    font-size: 0.5625rem;
  }

  .kpi-value {
    font-size: 0.8125rem;
  }
}

/* ============================================
   PREVENT HORIZONTAL SCROLL
   ============================================ */
* {
  max-width: 100%;
}

.dashboard-layout,
.main-content,
.page-header,
.kpi-summary,
.filters-card,
.income-grid,
.expense-grid,
.income-container,
.expense-container {
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* ============================================
   SAFE AREA INSETS (for notched devices)
   ============================================ */
@supports (padding: env(safe-area-inset-top)) {
  .mobile-header {
    padding-top: max(0.75rem, env(safe-area-inset-top));
  }

  .main-content {
    padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
  }
}

/* ============================================
   ADDITIONAL COMPONENT FIXES
   ============================================ */

/* Dashboard KPI Grid */
@media (min-width: 769px) {
  .kpi-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  .kpi-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 480px) {
  .kpi-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
  }
}

/* Charts Grid */
@media (min-width: 769px) {
  .charts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
  }
}

@media (max-width: 768px) {
  .charts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
  }
}

/* Widgets Row */
@media (min-width: 769px) {
  .widgets-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
  }
}

@media (max-width: 768px) {
  .widgets-row {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 1rem;
    margin-bottom: 1rem;
  }
  
  /* Force ALL widgets to full width on mobile */
  .widgets-row > * {
    grid-column: 1 / -1 !important;
  }
}

/* Transaction List */
@media (max-width: 480px) {
  .transaction-list {
    gap: 0.625rem;
  }

  .transaction-item {
    padding: 0.75rem;
    gap: 0.625rem;
  }

  .transaction-icon {
    width: 36px;
    height: 36px;
    font-size: 1.125rem;
  }

  .transaction-title {
    font-size: 0.875rem;
  }

  .transaction-meta {
    font-size: 0.75rem;
  }

  .transaction-amount {
    font-size: 1rem;
  }
}

/* Card Styles */
@media (max-width: 480px) {
  .card {
    border-radius: 0.75rem;
  }

  .card-header,
  .card-body,
  .card-footer {
    padding: 0.75rem;
  }

  .card-title {
    font-size: 1.125rem;
  }
}

/* Table Responsive */
@media (max-width: 768px) {
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table {
    min-width: 600px;
  }
}

/* Bulk Actions Bar */
@media (max-width: 480px) {
  .bulk-actions-bar {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem;
  }

  .bulk-actions-buttons {
    width: 100%;
    display: flex;
    gap: 0.5rem;
  }

  .bulk-actions-buttons .btn {
    flex: 1;
  }
}

/* FAB Button */
@media (max-width: 768px) {
  .fab-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 100;
  }

  .fab-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .fab-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  }
}

/* Spending Alert */
@media (max-width: 480px) {
  .spending-alert {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.625rem;
    padding: 0.75rem;
  }

  .spending-alert-icon {
    font-size: 1.25rem;
  }

  .spending-alert-title {
    font-size: 0.875rem;
  }

  .spending-alert-text {
    font-size: 0.75rem;
  }
}

/* PWA Install Banner */
@media (max-width: 480px) {
  .pwa-install-banner-dashboard {
    padding: 0.75rem;
  }

  .pwa-banner-content {
    flex-wrap: wrap;
    gap: 0.625rem;
  }

  .pwa-banner-icon {
    font-size: 1.5rem;
  }

  .pwa-banner-text strong {
    font-size: 0.9375rem;
  }

  .pwa-banner-text p {
    font-size: 0.8125rem;
  }

  .pwa-banner-content .btn {
    width: 100%;
    margin-top: 0.5rem;
  }
}

/* Category Suggestion */
@media (max-width: 480px) {
  .category-suggestion {
    padding: 0.625rem;
    gap: 0.375rem;
  }

  .category-suggestion .suggestion-text {
    font-size: 0.75rem;
  }

  .category-suggestion .suggestion-apply {
    padding: 0.25rem 0.5rem;
    font-size: 0.6875rem;
  }
}

/* Savings Rate Widget */
@media (max-width: 480px) {
  .savings-rate-widget,
  .goal-progress-widget,
  .top-categories-widget,
  .upcoming-bills-widget {
    padding: 0.75rem;
  }

  .savings-rate-title,
  .goal-progress-title,
  .top-categories-title,
  .upcoming-bills-title {
    font-size: 0.875rem;
  }

  .savings-rate-value {
    font-size: 1.25rem;
  }

  .savings-rate-details {
    gap: 0.5rem;
  }

  .savings-detail {
    padding: 0.5rem;
  }

  .savings-detail .detail-label {
    font-size: 0.625rem;
  }

  .savings-detail .detail-value {
    font-size: 0.875rem;
  }
}

/* Fix for very small screens */
@media (max-width: 360px) {
  .main-content {
    padding: 0.5rem;
  }

  .page-title {
    font-size: 1.25rem;
  }

  .kpi-summary {
    gap: 0.375rem;
  }

  .kpi-card {
    padding: 0.5rem 0.375rem;
  }

  .kpi-icon {
    width: 28px;
    height: 28px;
    font-size: 1rem;
  }

  .kpi-label {
    font-size: 0.5625rem;
  }

  .kpi-value {
    font-size: 0.8125rem;
  }

  .btn {
    padding: 0.5rem 0.625rem;
    font-size: 0.8125rem;
  }
}

/* Print Styles */
@media print {
  .sidebar,
  .mobile-header,
  .sidebar-overlay,
  .fab-container,
  .bulk-actions-bar,
  .page-actions,
  .filters-toggle,
  .btn-icon,
  .pwa-install-banner-dashboard {
    display: none !important;
  }

  .main-content {
    margin-left: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
  }

  .dashboard-layout {
    display: block;
  }

  .kpi-summary,
  .income-grid,
  .expense-grid {
    page-break-inside: avoid;
  }
}


/* ========== form-mobile-optimization.css ========== */
/* ============================================
   RUPIYA - MOBILE FORM OPTIMIZATION
   Compact, efficient forms for mobile devices
   ============================================ */

/* ============================================
   DESKTOP FORMS (> 768px)
   ============================================ */
@media (min-width: 769px) {
  .form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 1rem;
    row-gap: 1.75rem;
    margin-bottom: 1.25rem;
  }

  .form-group {
    margin-bottom: 0;
  }

  .form-group-full {
    grid-column: 1 / -1;
  }

  .form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.375rem;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: all 0.2s ease;
  }

  .form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    margin-top: 1rem;
  }

  .form-actions .btn {
    min-width: 120px;
  }
}

/* ============================================
   TABLET FORMS (481px - 768px)
   ============================================ */
@media (min-width: 481px) and (max-width: 768px) {
  .form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 1rem;
    row-gap: 1.5rem;
    margin-bottom: 0.875rem;
  }

  .form-group {
    margin-bottom: 0;
  }

  .form-group-full {
    grid-column: 1 / -1;
  }

  .form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.375rem;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    width: 100%;
    padding: 0.625rem 0.75rem;
    font-size: 0.9375rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
  }

  .form-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    padding-top: 0.875rem;
    border-top: 1px solid var(--border-color);
    margin-top: 0.875rem;
  }

  .form-actions .btn {
    flex: 1;
  }
}

/* ============================================
   MOBILE FORMS (≤ 480px) - OPTIMIZED
   ============================================ */
@media (max-width: 480px) {
  /* Compact 2-column grid for mobile */
  .form-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    column-gap: 0.75rem !important;
    row-gap: 1.25rem !important;
    margin-bottom: 0.5rem !important;
  }

  .form-group {
    margin-bottom: 0 !important;
  }

  /* Full width for textarea and specific fields */
  .form-group-full,
  .form-group:has(textarea),
  .form-group:has(input[type="text"][maxlength]),
  .form-group:has(#description),
  .form-group:has(#notes),
  .form-group:has(#address),
  .form-group:has(#details) {
    grid-column: 1 / -1 !important;
  }

  /* Compact labels */
  .form-group label {
    display: block;
    font-size: 0.6875rem !important;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.3rem !important;
    line-height: 1.2;
  }

  /* Compact inputs */
  .form-group input,
  .form-group select {
    width: 100%;
    padding: 0.5rem 0.625rem !important;
    font-size: 0.875rem !important;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    line-height: 1.4;
    min-height: 38px;
  }

  /* Textarea with reduced height */
  .form-group textarea {
    width: 100%;
    padding: 0.5rem 0.625rem !important;
    font-size: 0.875rem !important;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    line-height: 1.4;
    min-height: 60px;
    max-height: 80px;
    resize: vertical;
  }

  /* Remove extra spacing */
  .form-group input:focus,
  .form-group select:focus,
  .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.1);
  }

  /* Compact error messages */
  .error-message {
    font-size: 0.625rem !important;
    margin-top: 0.125rem !important;
    min-height: 0 !important;
    line-height: 1.2;
  }

  /* Compact form actions */
  .form-actions {
    display: flex;
    flex-direction: column-reverse;
    gap: 0.5rem !important;
    padding-top: 0.625rem !important;
    border-top: 1px solid var(--border-color);
    margin-top: 0.625rem !important;
  }

  .form-actions .btn {
    width: 100%;
    padding: 0.625rem 0.75rem !important;
    font-size: 0.875rem !important;
    min-width: 0;
  }

  /* Compact form sections */
  .add-income-section,
  .add-expense-section,
  .add-budget-section,
  .add-goal-section,
  .add-investment-section,
  .add-loan-section,
  .add-house-section,
  .add-vehicle-section,
  .add-document-section,
  .add-note-section {
    padding: 0.625rem !important;
    margin-bottom: 0.75rem !important;
  }

  .add-income-header,
  .add-expense-header,
  .add-budget-header,
  .add-goal-header,
  .add-investment-header,
  .add-loan-header,
  .add-house-header,
  .add-vehicle-header,
  .add-document-header,
  .add-note-header {
    margin-bottom: 0.625rem !important;
    padding-bottom: 0.5rem !important;
  }

  .add-income-title,
  .add-expense-title,
  .add-budget-title,
  .add-goal-title,
  .add-investment-title,
  .add-loan-title,
  .add-house-title,
  .add-vehicle-title,
  .add-document-title,
  .add-note-title {
    font-size: 1rem !important;
  }

  /* Radio groups - keep vertical but compact */
  .radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem !important;
    margin-top: 0.375rem !important;
  }

  .radio-option {
    padding: 0.375rem 0.625rem !important;
    font-size: 0.8125rem !important;
  }

  .radio-option span {
    font-size: 0.8125rem !important;
  }

  /* Form help text */
  .form-help,
  small.form-help {
    font-size: 0.625rem !important;
    line-height: 1.3;
    margin-top: 0.25rem !important;
  }

  /* Select dropdowns */
  .form-group select {
    background-size: 14px 10px;
    background-position: right 0.5rem center;
    padding-right: 2rem !important;
  }

  /* Date inputs */
  .form-group input[type="date"],
  .form-group input[type="time"],
  .form-group input[type="datetime-local"] {
    padding: 0.5rem 0.5rem !important;
  }

  /* Number inputs */
  .form-group input[type="number"] {
    -moz-appearance: textfield;
  }

  .form-group input[type="number"]::-webkit-inner-spin-button,
  .form-group input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
  }
}

/* ============================================
   VERY SMALL SCREENS (≤ 360px)
   ============================================ */
@media (max-width: 360px) {
  .form-grid {
    gap: 0.375rem;
  }

  .form-group label {
    font-size: 0.625rem;
    margin-bottom: 0.1875rem;
  }

  .form-group input,
  .form-group select {
    padding: 0.4375rem 0.5rem;
    font-size: 0.8125rem;
    min-height: 36px;
  }

  .form-group textarea {
    padding: 0.4375rem 0.5rem;
    font-size: 0.8125rem;
    min-height: 54px;
  }

  .form-actions .btn {
    padding: 0.5625rem 0.625rem;
    font-size: 0.8125rem;
  }
}

/* ============================================
   MODAL FORMS
   ============================================ */
@media (max-width: 480px) {
  .modal-body {
    padding: 0.625rem;
  }

  .modal-header {
    padding: 0.625rem;
  }

  .modal-title {
    font-size: 1rem;
  }

  .modal-footer {
    padding: 0.625rem;
    gap: 0.5rem;
  }

  .modal-footer .btn {
    padding: 0.625rem 0.75rem;
    font-size: 0.875rem;
  }
  
  /* Modal form grids - override with higher specificity */
  .modal-body .form-grid,
  .modal .form-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    column-gap: 0.75rem !important;
    row-gap: 1.25rem !important;
    margin-bottom: 0.5rem !important;
  }
  
  .modal-body .form-group,
  .modal .form-group {
    margin-bottom: 0 !important;
  }
  
  .modal-body .form-group-full,
  .modal .form-group-full {
    grid-column: 1 / -1 !important;
  }
  
  .modal-body .form-group label,
  .modal .form-group label {
    display: block !important;
    font-size: 0.6875rem !important;
    font-weight: 600 !important;
    color: var(--text-primary) !important;
    margin-bottom: 0.3rem !important;
    line-height: 1.2 !important;
  }
  
  .modal-body .form-group input,
  .modal-body .form-group select,
  .modal-body .form-group textarea,
  .modal .form-group input,
  .modal .form-group select,
  .modal .form-group textarea {
    width: 100% !important;
    padding: 0.5rem 0.625rem !important;
    font-size: 0.875rem !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 0.375rem !important;
    line-height: 1.4 !important;
    min-height: 38px !important;
    margin-bottom: 0 !important;
  }
}

/* ============================================
   SPECIFIC FIELD OPTIMIZATIONS
   ============================================ */

/* Filters - 2 column layout on mobile */
@media (max-width: 480px) {
  .filters-row {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem !important;
    margin-bottom: 0.75rem !important;
  }

  .filter-group {
    margin-bottom: 0 !important;
  }

  .filter-group label {
    font-size: 0.6875rem !important;
    margin-bottom: 0.25rem !important;
    font-weight: 600;
  }

  .filter-select,
  .filter-input {
    padding: 0.5rem 0.625rem !important;
    font-size: 0.875rem !important;
    min-height: 38px;
  }

  /* Clear filters button - full width */
  .filter-group:has(#clearFiltersBtn),
  .filter-group:last-child {
    grid-column: 1 / -1 !important;
  }

  /* Search box - full width */
  .search-row {
    flex-direction: column !important;
    gap: 0.5rem !important;
    margin-top: 0.5rem !important;
  }

  .search-box {
    width: 100% !important;
    min-width: 100% !important;
  }

  .search-box input {
    padding: 0.5rem 0.625rem 0.5rem 2.25rem !important;
    font-size: 0.875rem !important;
  }

  .results-count {
    font-size: 0.6875rem !important;
    text-align: center;
  }

  /* Payment method specific fields */
  #specificPaymentMethodGroup {
    grid-column: 1 / -1;
  }

  /* Income/Expense type radio group */
  #incomeTypeGroup,
  #expenseTypeGroup {
    grid-column: 1 / -1;
  }

  /* Category suggestion */
  .category-suggestion {
    grid-column: 1 / -1;
    padding: 0.5rem;
    gap: 0.375rem;
    margin-top: 0.375rem;
  }

  .category-suggestion .suggestion-text {
    font-size: 0.6875rem;
  }

  .category-suggestion .suggestion-apply {
    padding: 0.25rem 0.5rem;
    font-size: 0.625rem;
  }
}

/* ============================================
   FORM VALIDATION STATES
   ============================================ */
@media (max-width: 480px) {
  .form-control.is-invalid,
  .form-group input.is-invalid,
  .form-group select.is-invalid,
  .form-group textarea.is-invalid {
    border-color: var(--accent-red);
    padding-right: 0.625rem;
  }

  .invalid-feedback {
    font-size: 0.625rem;
    margin-top: 0.125rem;
    line-height: 1.2;
  }
}

/* ============================================
   BUTTON FIXES - ENSURE ALWAYS CLICKABLE
   ============================================ */
@media (max-width: 480px) {
  /* Ensure buttons are always on top and clickable */
  .form-actions {
    position: relative;
    z-index: 10;
  }

  .form-actions .btn {
    position: relative;
    z-index: 10;
    pointer-events: auto;
  }

  /* Fix for loading spinner in buttons */
  .btn .spinner,
  .btn #saveFormBtnSpinner,
  .btn #deleteBtnSpinner,
  .btn #saveBtnSpinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 0.8s linear infinite;
    margin-left: 0.5rem;
    vertical-align: middle;
  }

  @keyframes spin {
    to { transform: rotate(360deg); }
  }

  /* Ensure button text is visible */
  .btn span {
    position: relative;
    z-index: 1;
  }

  /* Disabled state should still be visible */
  .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
  }

  /* Fix for buttons being covered by other elements */
  .modal-footer,
  .form-actions,
  .add-income-section .form-actions,
  .add-expense-section .form-actions,
  .add-budget-section .form-actions,
  .add-goal-section .form-actions {
    position: relative;
    z-index: 100;
    background: var(--white);
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
@media (max-width: 480px) {
  /* Ensure touch targets are at least 38px */
  .form-group input,
  .form-group select,
  .form-group button {
    min-height: 38px;
  }

  /* Focus states */
  .form-group input:focus,
  .form-group select:focus,
  .form-group textarea:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 1px;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  .form-actions {
    display: none;
  }

  .add-income-section,
  .add-expense-section {
    border: none;
    box-shadow: none;
  }
}


/* ============================================
   CRITICAL FORM SPACING FIX - HIGHEST PRIORITY
   Applied to all forms including modals
   ============================================ */

/* Desktop - all forms */
@media (min-width: 769px) {
  .form-grid,
  .modal-body .form-grid,
  .modal .form-grid,
  .add-income-section .form-grid,
  .add-expense-section .form-grid,
  .add-budget-section .form-grid,
  .add-goal-section .form-grid,
  .add-investment-section .form-grid,
  .add-loan-section .form-grid,
  .add-house-section .form-grid,
  .add-vehicle-section .form-grid,
  .add-document-section .form-grid,
  .add-note-section .form-grid,
  .add-policy-section .form-grid,
  .add-card-section .form-grid {
    column-gap: 1rem !important;
    row-gap: 1.75rem !important;
  }
  
  .form-group label,
  .modal-body .form-group label,
  .modal .form-group label {
    margin-bottom: 0.375rem !important;
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea,
  .modal-body .form-group input,
  .modal-body .form-group select,
  .modal-body .form-group textarea,
  .modal .form-group input,
  .modal .form-group select,
  .modal .form-group textarea {
    margin-bottom: 0 !important;
  }
}

/* Tablet - all forms */
@media (min-width: 481px) and (max-width: 768px) {
  .form-grid,
  .modal-body .form-grid,
  .modal .form-grid,
  .add-income-section .form-grid,
  .add-expense-section .form-grid,
  .add-budget-section .form-grid,
  .add-goal-section .form-grid,
  .add-investment-section .form-grid,
  .add-loan-section .form-grid,
  .add-house-section .form-grid,
  .add-vehicle-section .form-grid,
  .add-document-section .form-grid,
  .add-note-section .form-grid,
  .add-policy-section .form-grid,
  .add-card-section .form-grid {
    column-gap: 1rem !important;
    row-gap: 1.5rem !important;
  }
  
  .form-group label,
  .modal-body .form-group label,
  .modal .form-group label {
    margin-bottom: 0.375rem !important;
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea,
  .modal-body .form-group input,
  .modal-body .form-group select,
  .modal-body .form-group textarea,
  .modal .form-group input,
  .modal .form-group select,
  .modal .form-group textarea {
    margin-bottom: 0 !important;
  }
}

/* Mobile - all forms */
@media (max-width: 480px) {
  .form-grid,
  .modal-body .form-grid,
  .modal .form-grid,
  .add-income-section .form-grid,
  .add-expense-section .form-grid,
  .add-budget-section .form-grid,
  .add-goal-section .form-grid,
  .add-investment-section .form-grid,
  .add-loan-section .form-grid,
  .add-house-section .form-grid,
  .add-vehicle-section .form-grid,
  .add-document-section .form-grid,
  .add-note-section .form-grid,
  .add-policy-section .form-grid,
  .add-card-section .form-grid {
    column-gap: 0.75rem !important;
    row-gap: 1.25rem !important;
  }
  
  .form-group label,
  .modal-body .form-group label,
  .modal .form-group label {
    margin-bottom: 0.3rem !important;
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea,
  .modal-body .form-group input,
  .modal-body .form-group select,
  .modal-body .form-group textarea,
  .modal .form-group input,
  .modal .form-group select,
  .modal .form-group textarea {
    margin-bottom: 0 !important;
  }
}


/* ========== button-fix.css ========== */
/* ============================================
   BUTTON FIX - ENSURE BUTTONS ALWAYS WORK
   Critical fixes for button visibility and clickability
   ============================================ */

/* Ensure all buttons have proper z-index and are clickable */
.btn,
button,
input[type="submit"],
input[type="button"] {
  position: relative;
  z-index: 10;
  pointer-events: auto !important;
}

/* Form actions should always be on top */
.form-actions,
.modal-footer {
  position: relative;
  z-index: 100 !important;
  background: var(--white);
}

/* Ensure buttons in form actions are clickable */
.form-actions .btn,
.modal-footer .btn {
  position: relative;
  z-index: 101 !important;
  pointer-events: auto !important;
}

/* Disabled buttons should not be clickable but should be visible */
.btn:disabled,
button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none !important;
}

/* Loading spinner in buttons */
.btn .spinner,
.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: currentColor;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Ensure button content is visible */
.btn span,
button span {
  position: relative;
  z-index: 1;
}

/* Fix for buttons being covered by other elements */
.add-income-section,
.add-expense-section,
.add-budget-section,
.add-goal-section,
.add-investment-section,
.add-loan-section,
.add-house-section,
.add-vehicle-section,
.add-document-section,
.add-note-section,
.payment-method-form,
.profile-section {
  position: relative;
  z-index: 1;
}

/* Ensure form actions are at the bottom and visible */
.add-income-section .form-actions,
.add-expense-section .form-actions,
.add-budget-section .form-actions,
.add-goal-section .form-actions,
.add-investment-section .form-actions,
.add-loan-section .form-actions,
.add-house-section .form-actions,
.add-vehicle-section .form-actions,
.add-document-section .form-actions,
.add-note-section .form-actions,
.payment-method-form .form-actions,
.profile-section .form-actions {
  position: relative;
  z-index: 100 !important;
  background: var(--white);
  padding-top: 1rem;
  padding-bottom: 1rem;
  margin-top: 1rem;
  border-top: 1px solid var(--border-color);
}

/* Mobile specific fixes */
@media (max-width: 768px) {
  .form-actions,
  .modal-footer {
    position: relative;
    z-index: 100 !important;
    background: var(--white);
    padding: 0.75rem;
  }

  .form-actions .btn,
  .modal-footer .btn {
    z-index: 101 !important;
    width: 100%;
    min-height: 44px;
    touch-action: manipulation;
  }

  /* Ensure buttons are not covered by FAB or other floating elements */
  .fab-container {
    z-index: 50;
  }

  .bulk-actions-bar {
    z-index: 60;
  }

  /* Ensure modal buttons are always on top */
  .modal-overlay {
    z-index: 2000;
  }

  .modal-container {
    z-index: 2001;
  }

  .modal-footer {
    z-index: 2002 !important;
  }

  .modal-footer .btn {
    z-index: 2003 !important;
  }
}

/* Fix for specific payment method button */
#addPaymentMethodBtn,
#saveProfileBtn,
#changePasswordBtn,
#savePreferencesBtn,
#saveIncomeBtn,
#saveExpenseBtn,
#saveBudgetBtn,
#saveGoalBtn {
  position: relative !important;
  z-index: 101 !important;
  pointer-events: auto !important;
}

/* Ensure button is visible even when loading */
#addPaymentMethodBtn:disabled,
#saveProfileBtn:disabled,
#changePasswordBtn:disabled,
#savePreferencesBtn:disabled {
  opacity: 0.7 !important;
  cursor: wait !important;
  pointer-events: none !important;
}

/* Fix for button text being hidden */
.btn-text,
#addPaymentMethodBtnText,
#saveProfileBtnText,
#changePasswordBtnText,
#savePreferencesBtnText {
  display: inline-block;
  vertical-align: middle;
}

/* Fix for spinner being too large */
.btn .spinner,
#addPaymentMethodBtnSpinner,
#saveProfileBtnSpinner,
#changePasswordBtnSpinner,
#savePreferencesBtnSpinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* Dark mode support */
[data-theme="dark"] .form-actions,
[data-theme="dark"] .modal-footer {
  background: var(--bg-card);
}

/* Print - hide buttons */
@media print {
  .form-actions,
  .modal-footer {
    display: none;
  }
}


/* ========== privacy-mode.css ========== */
/**
 * Privacy Mode Styles
 * Auto-detects and hides sensitive financial data
 * No HTML changes required!
 * 
 * NOTE: admin.html is excluded from privacy mode effects
 */

/* Privacy Mode Button */
.privacy-mode-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.3s ease;
    color: #666;
    font-size: 1.2em;
    min-width: 44px;
    min-height: 44px;
    -webkit-appearance: none;
    appearance: none;
    position: relative;
    z-index: 10002;
}

.privacy-mode-btn:hover {
    background: #f3f4f6;
    color: #4A90E2;
}

.privacy-mode-btn:active {
    transform: scale(0.95);
}

.privacy-mode-btn.active {
    background: #e8f1ff;
    color: #4A90E2;
    border: 1px solid #4A90E2;
}

/* Locked state - when privacy mode is ON */
.privacy-mode-btn.privacy-mode-locked {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
    cursor: not-allowed;
    opacity: 0.7;
}

.privacy-mode-btn.privacy-mode-locked:hover {
    background: #fff3cd;
    color: #856404;
    transform: none;
}

.privacy-mode-btn svg {
    width: 20px;
    height: 20px;
    display: block;
    flex-shrink: 0;
}

/* Auto-Hidden Elements */
.privacy-hidden {
    color: #999 !important;
    font-weight: 500 !important;
    letter-spacing: 2px !important;
    user-select: none !important;
    cursor: default !important;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%) !important;
    background-size: 200% 100% !important;
    animation: shimmer 1.5s infinite !important;
}

.privacy-hidden-percent {
    color: #999 !important;
    font-weight: 500 !important;
    letter-spacing: 1px !important;
    user-select: none !important;
    cursor: default !important;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%) !important;
    background-size: 200% 100% !important;
    animation: shimmer 1.5s infinite !important;
}

.privacy-hidden-email {
    color: #999 !important;
    font-weight: 500 !important;
    letter-spacing: 1px !important;
    user-select: none !important;
    cursor: default !important;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%) !important;
    background-size: 200% 100% !important;
    animation: shimmer 1.5s infinite !important;
}

.privacy-hidden-label {
    color: #999 !important;
    font-weight: 500 !important;
    user-select: none !important;
    cursor: default !important;
}

.privacy-hidden-chart {
    position: relative;
}

.privacy-hidden-chart::after {
    content: 'Chart Hidden for Privacy';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.9em;
    z-index: 10;
    white-space: nowrap;
}

/* Privacy Mode Indicator */
.privacy-mode-indicator {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.9em;
    color: #856404;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
    animation: slideIn 0.3s ease;
}

.privacy-mode-indicator.show {
    display: flex;
    align-items: center;
    gap: 8px;
}

.privacy-mode-indicator svg {
    width: 18px;
    height: 18px;
}

/* Privacy Mode Badge */
.privacy-badge {
    display: inline-block;
    background: #e8f1ff;
    color: #4A90E2;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: 600;
    margin-left: 8px;
}

/* Privacy Mode Tooltip */
.privacy-tooltip {
    position: relative;
}

.privacy-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.85em;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    margin-bottom: 8px;
    z-index: 100;
}

.privacy-tooltip:hover::after {
    opacity: 1;
}

/* Blur effect alternative (optional) */
.privacy-blur {
    filter: blur(4px);
    user-select: none;
}

/* Privacy Mode Settings Panel */
.privacy-settings-panel {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 24px;
    margin: 20px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.privacy-settings-panel h3 {
    color: #4A90E2;
    margin-bottom: 20px;
    font-size: 1.1em;
    font-weight: 600;
}

.privacy-setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid #f3f4f6;
    gap: 20px;
}

.privacy-setting-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.privacy-setting-label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.privacy-setting-label strong {
    color: #1f2937;
    font-size: 0.95em;
    font-weight: 600;
}

.privacy-setting-label small {
    color: #9ca3af;
    font-size: 0.85em;
    line-height: 1.4;
}

.privacy-toggle {
    position: relative;
    width: 52px;
    height: 30px;
    background: #d1d5db;
    border-radius: 15px;
    cursor: pointer;
    transition: background 0.3s ease;
    border: none;
    padding: 0;
    flex-shrink: 0;
    pointer-events: auto !important;
    z-index: 100;
    touch-action: manipulation;
}

.privacy-toggle:hover {
    background: #c4c7ce;
}

.privacy-toggle:active {
    transform: scale(0.98);
}

.privacy-toggle.active {
    background: #4A90E2;
}

.privacy-toggle.active:hover {
    background: #3a7bc8;
}

.privacy-toggle::after {
    content: '';
    position: absolute;
    width: 26px;
    height: 26px;
    background: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: left 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    pointer-events: none;
}

.privacy-toggle.active::after {
    left: 24px;
}

/* Privacy Mode Info Box */
.privacy-info-box {
    background: #f0f9ff;
    border-left: 4px solid #00D4FF;
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
}

.privacy-info-box h4 {
    color: #00A8CC;
    margin-bottom: 8px;
    font-size: 0.95em;
}

.privacy-info-box p {
    color: #0369a1;
    font-size: 0.9em;
    line-height: 1.5;
    margin: 0;
}

.privacy-info-box ul {
    margin: 8px 0 0 20px;
    color: #0369a1;
    font-size: 0.9em;
}

.privacy-info-box li {
    margin: 4px 0;
}

/* Privacy Mode Warning */
.privacy-warning {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
}

.privacy-warning h4 {
    color: #856404;
    margin-bottom: 8px;
    font-size: 0.95em;
}

.privacy-warning p {
    color: #856404;
    font-size: 0.9em;
    line-height: 1.5;
    margin: 0;
}

/* Animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .privacy-mode-indicator {
        top: 10px;
        right: 10px;
        padding: 10px 12px;
        font-size: 0.85em;
    }
    
    .privacy-settings-panel {
        padding: 16px;
        margin: 15px 0;
    }
    
    .privacy-setting-item {
        padding: 14px 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .privacy-setting-label {
        width: 100%;
    }
    
    .privacy-toggle {
        align-self: flex-end;
        margin-top: 8px;
        width: 60px;
        height: 36px;
        min-height: 44px;
        min-width: 44px;
    }
    
    .privacy-toggle::after {
        width: 30px;
        height: 30px;
        top: 3px;
        left: 3px;
    }
    
    .privacy-toggle.active::after {
        left: 27px;
    }
    
    /* Fix layout on mobile */
    html.privacy-settings-page .main-content {
        margin-left: 0 !important;
        width: 100% !important;
        padding: 0 !important;
    }
    
    html.privacy-settings-page .page-container {
        max-width: 100% !important;
        padding: 15px 12px !important;
        margin: 0 !important;
    }
}

@media (max-width: 480px) {
    .privacy-settings-panel {
        padding: 12px;
        margin: 12px 0;
    }
    
    .privacy-settings-panel h3 {
        font-size: 1em;
        margin-bottom: 16px;
    }
    
    .privacy-setting-item {
        padding: 12px 0;
    }
    
    .privacy-setting-label strong {
        font-size: 0.9em;
    }
    
    .privacy-setting-label small {
        font-size: 0.8em;
    }
    
    .privacy-toggle {
        width: 56px;
        height: 34px;
        min-height: 48px;
        min-width: 48px;
        align-self: flex-end;
    }
    
    .privacy-toggle::after {
        width: 28px;
        height: 28px;
        top: 3px;
        left: 3px;
    }
    
    .privacy-toggle.active::after {
        left: 25px;
    }
}

/* Print Mode - Always show data */
@media print {
    .privacy-hidden {
        color: inherit;
    }
    
    .privacy-hidden::before {
        content: none;
    }
    
    .privacy-mode-indicator {
        display: none;
    }
}

/* ============================================
   PRIVACY SETTINGS PAGE EXCLUSION
   Ensure privacy-settings page is NEVER blocked
   ============================================ */

/* CRITICAL: Use html.privacy-settings-page selector for maximum specificity */
html.privacy-settings-page,
html.privacy-settings-page body {
    visibility: visible !important;
    pointer-events: auto !important;
    filter: none !important;
    background: inherit !important;
}

html.privacy-settings-page body {
    display: block !important;
    overflow: auto !important;
}

html.privacy-settings-page .sidebar {
    display: flex !important;
    visibility: visible !important;
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    width: 280px !important;
    height: 100vh !important;
    z-index: 1000 !important;
    pointer-events: auto !important;
    background: white !important;
    border-right: 1px solid #e0e0e0 !important;
    flex-direction: column !important;
    opacity: 1 !important;
}

/* Ensure sidebar nav is visible and scrollable */
html.privacy-settings-page .sidebar-nav {
    flex: 1 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    display: block !important;
    visibility: visible !important;
    pointer-events: auto !important;
    opacity: 1 !important;
}

/* Ensure sidebar footer stays at bottom */
html.privacy-settings-page .sidebar-footer {
    margin-top: auto !important;
    flex-shrink: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    visibility: visible !important;
    pointer-events: auto !important;
    opacity: 1 !important;
}

html.privacy-settings-page .main-content {
    margin-left: 280px !important;
    display: block !important;
    visibility: visible !important;
    pointer-events: auto !important;
    flex: 1 !important;
    width: calc(100% - 280px) !important;
    opacity: 1 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

html.privacy-settings-page .page-container {
    visibility: visible !important;
    pointer-events: auto !important;
    filter: none !important;
    display: block !important;
    overflow: visible !important;
}

html.privacy-settings-page .dashboard-layout {
    display: flex !important;
    visibility: visible !important;
    pointer-events: auto !important;
    opacity: 1 !important;
    width: 100% !important;
    height: 100vh !important;
}

html.privacy-settings-page .mobile-header {
    display: none !important;
}

html.privacy-settings-page .sidebar-overlay {
    display: none !important;
}

html.privacy-settings-page button,
html.privacy-settings-page input,
html.privacy-settings-page select,
html.privacy-settings-page textarea,
html.privacy-settings-page a,
html.privacy-settings-page .btn,
html.privacy-settings-page .sidebar-toggle,
html.privacy-settings-page .privacy-toggle,
html.privacy-settings-page .privacy-setting-item,
html.privacy-settings-page .nav-item,
html.privacy-settings-page .nav-section-header,
html.privacy-settings-page .quick-search-input {
    visibility: visible !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    filter: none !important;
    opacity: 1 !important;
}

/* On privacy-settings page, disable ALL privacy mode visual effects */
html.privacy-settings-page .privacy-hidden,
html.privacy-settings-page .privacy-hidden-percent,
html.privacy-settings-page .privacy-hidden-email,
html.privacy-settings-page .privacy-hidden-chart {
    color: inherit !important;
    filter: none !important;
    pointer-events: auto !important;
    user-select: auto !important;
}

html.privacy-settings-page .privacy-hidden-chart::after {
    display: none !important;
}

html.privacy-settings-page .privacy-blur {
    filter: none !important;
    user-select: auto !important;
}

/* Mobile-specific: ensure sidebar is hidden by default but can be opened */
@media (max-width: 768px) {
    html.privacy-settings-page .sidebar {
        display: flex !important;
        flex-direction: column !important;
        transform: translateX(-100%) !important;
        transition: transform 0.3s ease !important;
    }
    
    html.privacy-settings-page .sidebar.open {
        transform: translateX(0) !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    html.privacy-settings-page .main-content {
        margin-left: 0 !important;
        width: 100% !important;
        padding: 0 !important;
    }
    
    html.privacy-settings-page .page-container {
        max-width: 100% !important;
        padding: 15px 12px !important;
        margin: 0 !important;
    }
    
    html.privacy-settings-page .mobile-header {
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }
    
    html.privacy-settings-page .sidebar-overlay {
        display: block !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
    
    html.privacy-settings-page .sidebar-overlay.active {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }
}

/* Desktop: Optimize layout for better content width */
@media (min-width: 769px) {
    html.privacy-settings-page .page-container {
        max-width: 100% !important;
        margin: 0 !important;
        padding: 30px 20px !important;
        width: 100% !important;
    }
    
    html.privacy-settings-page .main-content {
        padding: 0 !important;
        overflow-y: auto !important;
    }
    
    html.privacy-settings-page .sidebar {
        display: flex !important;
        flex-direction: column !important;
    }
    
    html.privacy-settings-page .mobile-header {
        display: none !important;
    }
}

/* ============================================
   ENSURE USER GUIDE PAGE IS NEVER AFFECTED
   ============================================ */

/* User guide page should never be grayed out */
html:not(.privacy-settings-page) body,
html:not(.privacy-settings-page) .dashboard-layout,
html:not(.privacy-settings-page) .main-content,
html:not(.privacy-settings-page) .guide-container,
html:not(.privacy-settings-page) .sidebar,
html:not(.privacy-settings-page) .mobile-header {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    filter: none !important;
}


/* ============================================
   PRIVACY MODE - PREVENT FLASH OF CONTENT
   Hide sensitive data immediately on page load
   ============================================ */

/* Check if privacy mode is enabled via localStorage and hide content immediately */
@supports (selector(:has(*))) {
  /* Modern browsers with :has() support */
  html:has(body[data-privacy-mode="true"]) .kpi-value,
  html:has(body[data-privacy-mode="true"]) .summary-value,
  html:has(body[data-privacy-mode="true"]) .ai-stat-value,
  html:has(body[data-privacy-mode="true"]) .score-number,
  html:has(body[data-privacy-mode="true"]) .factor-value,
  html:has(body[data-privacy-mode="true"]) .amount,
  html:has(body[data-privacy-mode="true"]) .balance,
  html:has(body[data-privacy-mode="true"]) .total,
  html:has(body[data-privacy-mode="true"]) [class*="amount"],
  html:has(body[data-privacy-mode="true"]) [class*="value"] {
    visibility: hidden !important;
    opacity: 0 !important;
  }
}

/* Fallback for browsers without :has() support */
body[data-privacy-mode="true"] .kpi-value,
body[data-privacy-mode="true"] .summary-value,
body[data-privacy-mode="true"] .ai-stat-value,
body[data-privacy-mode="true"] .score-number,
body[data-privacy-mode="true"] .factor-value,
body[data-privacy-mode="true"] .amount,
body[data-privacy-mode="true"] .balance,
body[data-privacy-mode="true"] .total,
body[data-privacy-mode="true"] [class*="amount"],
body[data-privacy-mode="true"] [class*="value"] {
  visibility: hidden !important;
  opacity: 0 !important;
}

/* Show content after JavaScript has processed it */
body[data-privacy-mode="true"] .privacy-hidden,
body[data-privacy-mode="true"] .privacy-hidden-percent,
body[data-privacy-mode="true"] .privacy-hidden-email {
  visibility: visible !important;
  opacity: 1 !important;
}


/* ============================================
   MOBILE HEADER FIX FOR PRIVACY SETTINGS PAGE
   ============================================ */

@media (max-width: 768px) {
    html.privacy-settings-page .mobile-header {
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
        z-index: 99999 !important;
        position: sticky !important;
        top: 0 !important;
        pointer-events: auto !important;
    }
    
    html.privacy-settings-page .mobile-header-actions {
        z-index: 100000 !important;
        position: relative !important;
        pointer-events: auto !important;
    }
    
    html.privacy-settings-page .sidebar-toggle {
        z-index: 100001 !important;
        position: relative !important;
        pointer-events: auto !important;
        cursor: pointer !important;
    }
    
    /* Ensure guide container doesn't overlap header */
    html.privacy-settings-page .guide-container {
        position: relative !important;
        z-index: 1 !important;
        margin-top: 0 !important;
    }
    
    /* Ensure page content stays below header */
    html.privacy-settings-page .main-content > * {
        position: relative !important;
        z-index: 1 !important;
    }
    
    /* But keep mobile header above everything */
    html.privacy-settings-page .main-content > .mobile-header {
        z-index: 99999 !important;
    }
}


/* ========== setup-wizard.css ========== */
/**
 * Setup Wizard Styles
 * First-time user account setup - Enhanced for mobile
 */

.setup-wizard-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  backdrop-filter: blur(4px);
}

.setup-wizard-container {
  background: var(--bg-card, #fff);
  border-radius: 24px;
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: wizardSlideIn 0.4s ease-out;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

@keyframes wizardSlideIn {
  from { opacity: 0; transform: translateY(40px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Mobile Header - Hidden on desktop */
.setup-wizard-header {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: linear-gradient(135deg, #4A90E2, #00CED1);
  color: white;
}

.setup-header-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.setup-header-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.setup-header-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.setup-header-title {
  text-align: center;
  flex: 1;
}

.setup-header-step {
  font-size: 0.75rem;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.setup-header-title h3 {
  margin: 4px 0 0 0;
  font-size: 1.1rem;
  font-weight: 700;
}


/* Progress Bar */
.setup-wizard-progress {
  display: flex;
  justify-content: space-between;
  padding: 24px 32px;
  background: var(--bg-secondary, #f3f4f6);
  border-bottom: 1px solid var(--border-color, #e5e7eb);
  overflow-x: auto;
  gap: 8px;
}

.setup-progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.4;
  transition: all 0.3s ease;
  min-width: 60px;
  cursor: not-allowed;
  position: relative;
}

.setup-progress-step.clickable {
  cursor: pointer;
  opacity: 0.6;
}

.setup-progress-step.clickable:hover {
  opacity: 0.8;
}

.setup-progress-step.active,
.setup-progress-step.completed {
  opacity: 1;
}

.setup-progress-dot {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-tertiary, #e5e7eb);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: all 0.3s ease;
  border: 3px solid transparent;
}

.setup-progress-step.clickable:hover .setup-progress-dot {
  border-color: var(--primary-color, #4A90E2);
  transform: scale(1.05);
}

.setup-progress-step.active .setup-progress-dot {
  background: linear-gradient(135deg, #4A90E2, #00CED1);
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.4);
  transform: scale(1.1);
}

.setup-progress-step.completed .setup-progress-dot {
  background: #10b981;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.setup-progress-step.completed .setup-progress-dot::after {
  content: '✓';
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 20px;
  height: 20px;
  background: #10b981;
  border-radius: 50%;
  font-size: 0.7rem;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-secondary, #f3f4f6);
}

.setup-progress-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted, #9ca3af);
  text-align: center;
  white-space: nowrap;
}

.setup-progress-step.active .setup-progress-label {
  color: var(--primary-color, #4A90E2);
}

.setup-progress-step.completed .setup-progress-label {
  color: #10b981;
}

/* Content Area */
.setup-wizard-content {
  flex: 1;
  overflow-y: auto;
  padding: 32px;
}

/* Footer */
.setup-wizard-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 32px;
  border-top: 1px solid var(--border-color, #e5e7eb);
  background: var(--bg-secondary, #f3f4f6);
  gap: 16px;
}

.setup-wizard-nav {
  display: flex;
  gap: 12px;
}

.setup-skip-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted, #9ca3af);
}

.setup-skip-btn:hover {
  color: var(--danger-red, #ef4444);
}

#setupPrevBtn,
#setupNextBtn {
  display: flex;
  align-items: center;
  gap: 8px;
}

#setupNextBtn {
  min-width: 120px;
  justify-content: center;
}


/* Welcome Step */
.setup-step-welcome {
  text-align: center;
  padding: 5px 0;
}

.setup-welcome-icon {
  font-size: 4rem;
  margin-bottom: 5px;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.setup-step-welcome h2 {
  font-size: 2rem;
  margin: 0 0 12px 0;
  color: var(--text-primary, #1f2937);
}

.setup-step-welcome > p {
  color: var(--text-secondary, #6b7280);
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.setup-welcome-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.setup-welcome-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--bg-secondary, #f3f4f6);
  border-radius: 12px;
  font-size: 0.95rem;
  color: var(--text-primary, #1f2937);
  transition: all 0.3s ease;
}

.setup-welcome-feature:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.setup-welcome-feature span {
  font-size: 1.5rem;
}

.setup-time-estimate {
  color: var(--text-muted, #9ca3af);
  font-size: 0.9rem;
  padding: 12px 20px;
  background: rgba(74, 144, 226, 0.1);
  border-radius: 20px;
  display: inline-block;
}

/* Step Content */
.setup-step-content {
  padding: 10px 0;
}

.setup-step-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.setup-step-icon {
  font-size: 2.5rem;
}

.setup-step-header h2 {
  margin: 0 0 8px 0;
  font-size: 1.5rem;
  color: var(--text-primary, #1f2937);
}

.setup-step-header p {
  margin: 0;
  color: var(--text-secondary, #6b7280);
}

/* Payment Methods */
.setup-payment-types {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.setup-payment-type {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--bg-secondary, #f3f4f6);
  border-radius: 12px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.setup-payment-type:hover {
  border-color: var(--primary-color, #4A90E2);
  transform: translateX(4px);
}

.setup-payment-icon {
  font-size: 2rem;
}

.setup-payment-info {
  flex: 1;
}

.setup-payment-info h4 {
  margin: 0 0 4px 0;
  font-size: 1rem;
  color: var(--text-primary, #1f2937);
}

.setup-payment-info p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted, #9ca3af);
}

/* Categories */
.setup-categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.setup-category-col h4 {
  margin: 0 0 16px 0;
  font-size: 1rem;
  color: var(--text-primary, #1f2937);
}

.setup-category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.setup-category-tag {
  padding: 8px 14px;
  background: var(--bg-secondary, #f3f4f6);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--text-primary, #1f2937);
  transition: all 0.2s ease;
}

.setup-category-tag:hover {
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.1), rgba(0, 206, 209, 0.1));
}


/* Budget Templates */
.setup-budget-templates {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.setup-budget-template {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--bg-secondary, #f3f4f6);
  border-radius: 16px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.setup-budget-template:hover {
  border-color: var(--primary-color, #4A90E2);
  transform: translateY(-2px);
}

.setup-budget-template.selected {
  border-color: var(--primary-color, #4A90E2);
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.1), rgba(0, 206, 209, 0.1));
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.2);
}

.setup-template-icon {
  font-size: 2.5rem;
}

.setup-template-info h4 {
  margin: 0 0 4px 0;
  font-size: 1rem;
  color: var(--text-primary, #1f2937);
}

.setup-template-info p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted, #9ca3af);
}

/* Assets Grid */
.setup-assets-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.setup-asset-card {
  padding: 20px;
  background: var(--bg-secondary, #f3f4f6);
  border-radius: 16px;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.setup-asset-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: var(--border-color, #e5e7eb);
}

.setup-asset-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.setup-asset-card h4 {
  margin: 0 0 8px 0;
  font-size: 1rem;
  color: var(--text-primary, #1f2937);
}

.setup-asset-card p {
  margin: 0 0 16px 0;
  font-size: 0.85rem;
  color: var(--text-muted, #9ca3af);
}

/* Complete Step */
.setup-step-complete {
  text-align: center;
  padding: 20px 0;
}

.setup-complete-icon {
  font-size: 5rem;
  margin-bottom: 20px;
  animation: celebrate 0.6s ease-out;
}

@keyframes celebrate {
  0% { transform: scale(0); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.setup-step-complete h2 {
  font-size: 2rem;
  margin: 0 0 12px 0;
  color: var(--text-primary, #1f2937);
}

.setup-step-complete > p {
  color: var(--text-secondary, #6b7280);
  margin-bottom: 32px;
}

.setup-next-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.setup-next-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--bg-secondary, #f3f4f6);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-primary, #1f2937);
  font-weight: 500;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.setup-next-step:hover {
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.1), rgba(0, 206, 209, 0.1));
  transform: translateX(4px);
  border-color: var(--primary-color, #4A90E2);
}

.setup-next-icon {
  font-size: 1.5rem;
}

/* Skip Hint */
.setup-skip-hint {
  margin-top: 24px;
  padding: 12px 16px;
  background: rgba(74, 144, 226, 0.1);
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary, #6b7280);
  text-align: center;
}


/* ============================================
   MOBILE RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .setup-wizard-overlay {
    padding: 0;
    align-items: flex-end;
  }
  
  .setup-wizard-container {
    max-height: 100vh;
    height: 100vh;
    border-radius: 0;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
  }
  
  /* Show mobile header */
  .setup-wizard-header {
    display: flex;
  }
  
  /* Compact progress bar on mobile */
  .setup-wizard-progress {
    padding: 12px 16px;
    gap: 4px;
    justify-content: center;
  }

  .setup-progress-step {
    min-width: auto;
    flex: 1;
    max-width: 60px;
  }
  
  .setup-progress-dot {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .setup-progress-step.completed .setup-progress-dot::after {
    width: 16px;
    height: 16px;
    font-size: 0.6rem;
  }

  .setup-progress-label {
    display: none;
  }

  .setup-wizard-content {
    padding: 20px 16px;
  }
  
  /* Welcome step mobile */
  .setup-welcome-icon {
    font-size: 3rem;
    margin-bottom: 16px;
  }
  
  .setup-step-welcome h2 {
    font-size: 1.5rem;
  }
  
  .setup-step-welcome > p {
    font-size: 0.95rem;
    margin-bottom: 5px;
  }

  .setup-welcome-features {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .setup-welcome-feature {
    padding: 12px 16px;
    font-size: 0.9rem;
  }
  
  .setup-welcome-feature span {
    font-size: 1.25rem;
  }
  
  .setup-time-estimate {
    font-size: 0.8rem;
    padding: 10px 16px;
  }
  
  /* Step header mobile */
  .setup-step-header {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  
  .setup-step-icon {
    font-size: 2rem;
  }
  
  .setup-step-header h2 {
    font-size: 1.25rem;
  }
  
  .setup-step-header p {
    font-size: 0.9rem;
  }
  
  /* Payment types mobile */
  .setup-payment-type {
    padding: 12px;
    gap: 12px;
  }
  
  .setup-payment-icon {
    font-size: 1.5rem;
  }
  
  .setup-payment-info h4 {
    font-size: 0.9rem;
  }
  
  .setup-payment-info p {
    font-size: 0.75rem;
  }
  
  /* Categories mobile */
  .setup-categories-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .setup-category-col h4 {
    font-size: 0.9rem;
    margin-bottom: 12px;
  }
  
  .setup-category-tag {
    padding: 6px 10px;
    font-size: 0.75rem;
  }
  
  /* Budget templates mobile - 2 columns */
  .setup-budget-templates {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .setup-budget-template {
    flex-direction: column;
    text-align: center;
    padding: 16px 12px;
    gap: 8px;
  }
  
  .setup-template-icon {
    font-size: 2rem;
  }
  
  .setup-template-info h4 {
    font-size: 0.85rem;
  }
  
  .setup-template-info p {
    font-size: 0.7rem;
  }
  
  /* Assets grid mobile - 2 columns */
  .setup-assets-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .setup-asset-card {
    padding: 16px 12px;
  }
  
  .setup-asset-icon {
    font-size: 2rem;
    margin-bottom: 8px;
  }
  
  .setup-asset-card h4 {
    font-size: 0.85rem;
    margin-bottom: 4px;
  }
  
  .setup-asset-card p {
    font-size: 0.7rem;
    margin-bottom: 12px;
  }
  
  .setup-asset-card .btn {
    font-size: 0.75rem;
    padding: 6px 10px;
  }
  
  /* Complete step mobile */
  .setup-complete-icon {
    font-size: 4rem;
  }
  
  .setup-step-complete h2 {
    font-size: 1.5rem;
  }
  
  .setup-step-complete > p {
    font-size: 0.9rem;
    margin-bottom: 24px;
  }
  
  .setup-next-steps {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .setup-next-step {
    padding: 14px 16px;
  }
  
  .setup-next-icon {
    font-size: 1.25rem;
  }
  
  /* Footer mobile */
  .setup-wizard-footer {
    flex-direction: column-reverse;
    padding: 16px;
    gap: 12px;
  }

  .setup-wizard-nav {
    width: 100%;
    justify-content: space-between;
  }
  
  #setupPrevBtn,
  #setupNextBtn {
    flex: 1;
    justify-content: center;
  }
  
  #setupNextBtn {
    min-width: auto;
  }
  
  .setup-skip-btn {
    width: 100%;
    justify-content: center;
    padding: 10px;
    font-size: 0.85rem;
  }
  
  .setup-skip-hint {
    margin-top: 16px;
    padding: 10px 12px;
    font-size: 0.8rem;
  }
}

/* Very small screens */
@media (max-width: 400px) {
  .setup-progress-dot {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }
  
  .setup-budget-templates,
  .setup-assets-grid {
    gap: 8px;
  }
  
  .setup-budget-template,
  .setup-asset-card {
    padding: 12px 8px;
  }
  
  .setup-template-icon,
  .setup-asset-icon {
    font-size: 1.75rem;
  }
  
  .setup-template-info h4,
  .setup-asset-card h4 {
    font-size: 0.8rem;
  }
  
  .setup-template-info p,
  .setup-asset-card p {
    font-size: 0.65rem;
  }
}

/* ============================================
   DARK MODE
   ============================================ */

[data-theme="dark"] .setup-wizard-container {
  background: var(--bg-card, #1f2937);
}

[data-theme="dark"] .setup-wizard-progress,
[data-theme="dark"] .setup-wizard-footer {
  background: var(--bg-secondary, #111827);
}

[data-theme="dark"] .setup-progress-dot {
  background: var(--bg-tertiary, #374151);
}

[data-theme="dark"] .setup-progress-step.completed .setup-progress-dot::after {
  border-color: var(--bg-secondary, #111827);
}

[data-theme="dark"] .setup-payment-type,
[data-theme="dark"] .setup-category-tag,
[data-theme="dark"] .setup-budget-template,
[data-theme="dark"] .setup-asset-card,
[data-theme="dark"] .setup-welcome-feature,
[data-theme="dark"] .setup-next-step {
  background: var(--bg-secondary, #374151);
}

[data-theme="dark"] .setup-budget-template.selected {
  background: rgba(74, 144, 226, 0.2);
}

/* ========== kpi-enhancements.css ========== */
/* ============================================
   RUPIYA - KPI CARD ENHANCEMENTS
   Enhanced KPI cards with trends, sparklines, and interactions
   ============================================ */

/* KPI Grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-2xl);
}

/* Enhanced KPI Card */
.kpi-card {
  background: linear-gradient(135deg, var(--white) 0%, var(--light-gray) 100%);
  border: 2px solid var(--primary-blue);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  position: relative;
  overflow: visible;
  cursor: pointer;
}

.kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.05) 0%, transparent 100%);
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}

.kpi-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
  border-color: #3A7BC8;
}

.kpi-card:hover::before {
  opacity: 1;
}

.kpi-card.positive {
  border-color: var(--accent-green);
}

.kpi-card.negative {
  border-color: var(--accent-red);
}

.kpi-card.neutral {
  border-color: var(--accent-cyan);
}

/* KPI Header */
.kpi-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--spacing-md);
}

.kpi-title {
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xs);
}

.kpi-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background: rgba(74, 144, 226, 0.1);
  flex-shrink: 0;
}

/* KPI Value */
.kpi-value {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
  line-height: 1.2;
}

/* KPI Tooltip (full amount) */
.kpi-card[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: var(--text-primary);
  color: var(--white);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: var(--font-size-xs);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
  z-index: 10;
  font-weight: 600;
}

.kpi-card:hover[data-tooltip]::after {
  opacity: 1;
}

/* KPI Change Indicator */
.kpi-change {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-size: var(--font-size-sm);
  font-weight: 600;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--border-radius);
  background: var(--bg-secondary);
  width: fit-content;
}

.kpi-change span:first-child {
  font-size: var(--font-size-lg);
  display: inline-block;
  animation: trendArrow 2s ease-in-out infinite;
}

.kpi-change.positive {
  color: var(--accent-green);
  background: rgba(39, 174, 96, 0.1);
}

.kpi-change.negative {
  color: var(--accent-red);
  background: rgba(231, 76, 60, 0.1);
}

.kpi-change.neutral {
  color: var(--text-secondary);
  background: var(--bg-secondary);
}

@keyframes trendArrow {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

/* Sparkline Chart (mini trend chart) */
.kpi-sparkline {
  margin-top: var(--spacing-md);
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--border-color);
}

.kpi-sparkline-title {
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
  margin-bottom: var(--spacing-sm);
  font-weight: 600;
}

.kpi-sparkline-chart {
  height: 40px;
  display: flex;
  align-items: flex-end;
  gap: 2px;
}

.kpi-sparkline-bar {
  flex: 1;
  background: linear-gradient(180deg, var(--primary-blue) 0%, rgba(74, 144, 226, 0.5) 100%);
  border-radius: 2px 2px 0 0;
  transition: all var(--transition-fast);
  cursor: pointer;
  position: relative;
}

.kpi-sparkline-bar:hover {
  opacity: 0.8;
  filter: brightness(1.1);
}

.kpi-sparkline-bar.positive {
  background: linear-gradient(180deg, var(--accent-green) 0%, rgba(39, 174, 96, 0.5) 100%);
}

.kpi-sparkline-bar.negative {
  background: linear-gradient(180deg, var(--accent-red) 0%, rgba(231, 76, 60, 0.5) 100%);
}

/* KPI Details Breakdown */
.kpi-details {
  margin-top: var(--spacing-md);
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--border-color);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-md);
}

.kpi-detail-item {
  display: flex;
  flex-direction: column;
}

.kpi-detail-label {
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xs);
  font-weight: 600;
}

.kpi-detail-value {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--text-primary);
}

/* View Details Link */
.kpi-view-details {
  margin-top: var(--spacing-md);
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--font-size-sm);
  color: var(--primary-blue);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.kpi-view-details:hover {
  gap: var(--spacing-sm);
}

.kpi-view-details svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.kpi-view-details:hover svg {
  transform: translateX(4px);
}

/* Dark Mode */
[data-theme="dark"] .kpi-card {
  background: linear-gradient(135deg, var(--card-bg) 0%, rgba(255, 255, 255, 0.05) 100%);
}

[data-theme="dark"] .kpi-icon {
  background: rgba(74, 144, 226, 0.2);
}

[data-theme="dark"] .kpi-change {
  background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .kpi-change.positive {
  background: rgba(39, 174, 96, 0.15);
}

[data-theme="dark"] .kpi-change.negative {
  background: rgba(231, 76, 60, 0.15);
}

/* Responsive */
@media (max-width: 768px) {
  .kpi-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .kpi-card {
    padding: var(--spacing-md);
  }

  .kpi-value {
    font-size: var(--font-size-2xl);
  }

  .kpi-details {
    grid-template-columns: 1fr;
  }
}


/* ========== empty-states.css ========== */
/* ============================================
   RUPIYA - ENHANCED EMPTY STATES
   Contextual, actionable empty states with illustrations
   ============================================ */

/* Empty State Container - Enhanced */
.empty-state {
  text-align: center;
  padding: var(--spacing-3xl) var(--spacing-xl);
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--white) 100%);
  border-radius: var(--border-radius-lg);
  border: 2px dashed var(--border-color);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.empty-state::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(74, 144, 226, 0.03) 0%, transparent 70%);
  animation: emptyStateGlow 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes emptyStateGlow {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.5;
  }
  50% {
    transform: translate(10%, 10%) scale(1.1);
    opacity: 1;
  }
}

.empty-state:hover {
  border-color: var(--primary-blue);
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.08) 0%, var(--white) 100%);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(74, 144, 226, 0.15);
}

/* Empty State Icon - Enhanced with Illustrations */
.empty-state-icon {
  font-size: 96px;
  margin-bottom: var(--spacing-xl);
  opacity: 0.5;
  animation: floatIcon 4s ease-in-out infinite;
  display: inline-block;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.empty-state:hover .empty-state-icon {
  opacity: 0.7;
  transform: scale(1.1) translateY(-8px);
  filter: drop-shadow(0 8px 20px rgba(74, 144, 226, 0.2));
}

@keyframes floatIcon {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-12px) rotate(-2deg);
  }
  50% {
    transform: translateY(-8px) rotate(0deg);
  }
  75% {
    transform: translateY(-12px) rotate(2deg);
  }
}

/* Animated Icon Variants */
.empty-state-icon.pulse {
  animation: floatIcon 4s ease-in-out infinite, iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 0.7;
  }
}

/* Empty State Title - Enhanced */
.empty-state-title {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
  line-height: 1.3;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Empty State Text - Enhanced */
.empty-state-text {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xl);
  line-height: 1.7;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* Empty State Subtext - Enhanced */
.empty-state-subtext {
  font-size: var(--font-size-base);
  color: var(--text-light);
  margin-bottom: var(--spacing-xl);
  font-style: italic;
  padding: var(--spacing-sm) var(--spacing-md);
  background: rgba(74, 144, 226, 0.05);
  border-radius: var(--border-radius);
  display: inline-block;
}

/* Empty State Actions - Enhanced */
.empty-state-actions {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--spacing-xl);
}

.empty-state-actions .btn {
  min-width: 180px;
  font-weight: 600;
  padding: 14px 28px;
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.empty-state-actions .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(74, 144, 226, 0.3);
}

.empty-state-actions .btn-primary {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-dark) 100%);
  position: relative;
  overflow: hidden;
}

.empty-state-actions .btn-primary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.empty-state-actions .btn-primary:hover::before {
  width: 300px;
  height: 300px;
}

.empty-state-actions .btn-secondary {
  background: var(--white);
  border: 2px solid var(--primary-blue);
  color: var(--primary-blue);
}

.empty-state-actions .btn-secondary:hover {
  background: var(--primary-blue);
  color: var(--white);
}

/* Empty State Illustration Variants - Enhanced */
.empty-state.expenses-empty .empty-state-icon::before {
  content: '💸';
  animation: moneyFloat 3s ease-in-out infinite;
}

@keyframes moneyFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(5deg); }
}

.empty-state.income-empty .empty-state-icon::before {
  content: '💰';
  animation: coinSpin 4s ease-in-out infinite;
}

@keyframes coinSpin {
  0%, 100% { transform: rotateY(0deg); }
  50% { transform: rotateY(180deg); }
}

.empty-state.investments-empty .empty-state-icon::before {
  content: '📈';
  animation: chartGrow 3s ease-in-out infinite;
}

@keyframes chartGrow {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

.empty-state.goals-empty .empty-state-icon::before {
  content: '🎯';
  animation: targetPulse 2s ease-in-out infinite;
}

@keyframes targetPulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.7; }
}

.empty-state.transactions-empty .empty-state-icon::before {
  content: '📊';
}

.empty-state.search-empty .empty-state-icon::before {
  content: '🔍';
  animation: searchSway 3s ease-in-out infinite;
}

@keyframes searchSway {
  0%, 100% { transform: rotate(-10deg); }
  50% { transform: rotate(10deg); }
}

.empty-state.filter-empty .empty-state-icon::before {
  content: '🔎';
}

.empty-state.family-empty .empty-state-icon::before {
  content: '👨‍👩‍👧‍👦';
}

.empty-state.documents-empty .empty-state-icon::before {
  content: '📄';
  animation: paperFloat 4s ease-in-out infinite;
}

@keyframes paperFloat {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-12px) rotate(2deg); }
}

.empty-state.notes-empty .empty-state-icon::before {
  content: '📝';
}

.empty-state.budgets-empty .empty-state-icon::before {
  content: '💳';
}

.empty-state.loans-empty .empty-state-icon::before {
  content: '🏦';
}

.empty-state.vehicles-empty .empty-state-icon::before {
  content: '🚗';
}

.empty-state.houses-empty .empty-state-icon::before {
  content: '🏠';
}

.empty-state.healthcare-empty .empty-state-icon::before {
  content: '🏥';
}

.empty-state.trips-empty .empty-state-icon::before {
  content: '✈️';
  animation: planefly 5s ease-in-out infinite;
}

@keyframes planefly {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(20px, -20px) rotate(5deg); }
}

.empty-state.recurring-empty .empty-state-icon::before {
  content: '🔄';
  animation: rotate 4s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Contextual Empty State Messages - Enhanced */
.empty-state-context {
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.08) 0%, rgba(74, 144, 226, 0.03) 100%);
  border-left: 4px solid var(--primary-blue);
  padding: var(--spacing-lg);
  border-radius: var(--border-radius-lg);
  margin-top: var(--spacing-xl);
  text-align: left;
  box-shadow: 0 2px 8px rgba(74, 144, 226, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.empty-state-context:hover {
  box-shadow: 0 4px 16px rgba(74, 144, 226, 0.15);
  transform: translateX(4px);
}

.empty-state-context-title {
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: var(--spacing-sm);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.empty-state-context-title::before {
  content: '💡';
  font-size: 20px;
}

.empty-state-context-text {
  font-size: var(--font-size-base);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Empty State Tips - Enhanced */
.empty-state-tips {
  margin-top: var(--spacing-xl);
  padding: var(--spacing-lg);
  background: var(--white);
  border-radius: var(--border-radius-lg);
  border: 2px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.empty-state-tips:hover {
  border-color: var(--primary-blue);
  box-shadow: 0 4px 16px rgba(74, 144, 226, 0.1);
}

.empty-state-tips-title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.empty-state-tips-title::before {
  content: '✨';
  font-size: 24px;
}

.empty-state-tips-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.empty-state-tips-item {
  font-size: var(--font-size-base);
  color: var(--text-secondary);
  padding: var(--spacing-sm) 0;
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: var(--border-radius);
  padding-left: var(--spacing-sm);
  margin-bottom: var(--spacing-xs);
}

.empty-state-tips-item:hover {
  background: rgba(74, 144, 226, 0.05);
  padding-left: var(--spacing-md);
}

.empty-state-tips-item::before {
  content: '✓';
  color: var(--accent-green);
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(46, 204, 113, 0.1);
  border-radius: 50%;
}

/* Empty State with Example Data - Enhanced */
.empty-state-example {
  margin-top: var(--spacing-xl);
  padding: var(--spacing-lg);
  background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(74, 144, 226, 0.03) 100%);
  border-radius: var(--border-radius-lg);
  text-align: left;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.empty-state-example-title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.empty-state-example-title::before {
  content: '📋';
  font-size: 24px;
}

.empty-state-example-item {
  font-size: var(--font-size-base);
  color: var(--text-secondary);
  padding: var(--spacing-sm) var(--spacing-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--white);
  border-radius: var(--border-radius);
  margin-bottom: var(--spacing-sm);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.empty-state-example-item:hover {
  transform: translateX(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.empty-state-example-item:last-child {
  margin-bottom: 0;
}

.empty-state-example-item-label {
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.empty-state-example-item-label::before {
  content: '•';
  color: var(--primary-blue);
  font-size: 20px;
  font-weight: 700;
}

.empty-state-example-item-value {
  color: var(--text-primary);
  font-weight: 600;
  background: rgba(74, 144, 226, 0.1);
  padding: 4px 12px;
  border-radius: var(--border-radius);
}

/* Empty State Animation - Enhanced */
.empty-state.animate-in {
  animation: emptyStateSlideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes emptyStateSlideIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Stagger animation for multiple empty state elements */
.empty-state-stagger {
  opacity: 0;
  animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.empty-state-stagger:nth-child(1) { animation-delay: 0.1s; }
.empty-state-stagger:nth-child(2) { animation-delay: 0.2s; }
.empty-state-stagger:nth-child(3) { animation-delay: 0.3s; }
.empty-state-stagger:nth-child(4) { animation-delay: 0.4s; }

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

/* Empty State Quick Actions */
.empty-state-quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-xl);
}

.empty-state-quick-action {
  background: var(--white);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-lg);
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
}

.empty-state-quick-action:hover {
  border-color: var(--primary-blue);
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.05) 0%, var(--white) 100%);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(74, 144, 226, 0.15);
}

.empty-state-quick-action-icon {
  font-size: 48px;
  opacity: 0.7;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.empty-state-quick-action:hover .empty-state-quick-action-icon {
  opacity: 1;
  transform: scale(1.1);
}

.empty-state-quick-action-title {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--text-primary);
}

.empty-state-quick-action-description {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Dark Mode */
[data-theme="dark"] .empty-state {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(255, 255, 255, 0.05) 100%);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .empty-state:hover {
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  border-color: var(--primary-blue);
}

[data-theme="dark"] .empty-state-context {
  background: rgba(74, 144, 226, 0.1);
}

[data-theme="dark"] .empty-state-tips {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .empty-state-example {
  background: rgba(255, 255, 255, 0.05);
}

/* Responsive - Enhanced */
@media (max-width: 768px) {
  .empty-state {
    padding: var(--spacing-2xl) var(--spacing-lg);
  }

  .empty-state-icon {
    font-size: 72px;
    margin-bottom: var(--spacing-lg);
  }

  .empty-state-title {
    font-size: var(--font-size-xl);
  }

  .empty-state-text {
    font-size: var(--font-size-base);
  }

  .empty-state-actions {
    flex-direction: column;
    gap: var(--spacing-sm);
  }

  .empty-state-actions .btn {
    width: 100%;
    min-width: auto;
  }

  .empty-state-quick-actions {
    grid-template-columns: 1fr;
  }

  .empty-state-context,
  .empty-state-tips,
  .empty-state-example {
    padding: var(--spacing-md);
  }

  .empty-state-tips-item {
    font-size: var(--font-size-sm);
  }

  .empty-state-example-item {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-xs);
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .empty-state-icon,
  .empty-state,
  .empty-state-quick-action {
    animation: none !important;
  }

  .empty-state:hover,
  .empty-state-quick-action:hover {
    transform: none;
  }
}

/* Print Styles */
@media print {
  .empty-state {
    border: 1px solid var(--border-color);
    box-shadow: none;
  }

  .empty-state-actions,
  .empty-state-quick-actions {
    display: none;
  }
}


/* ========== form-validation-enhancements.css ========== */
/* ============================================
   RUPIYA - FORM VALIDATION ENHANCEMENTS
   Real-time validation with visual feedback
   ============================================ */

/* Form Group */
.form-group {
  margin-bottom: var(--spacing-lg);
  position: relative;
}

/* Form Label */
.form-label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.form-label.required::after {
  content: ' *';
  color: var(--accent-red);
}

.form-label-hint {
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
  font-weight: 400;
}

/* Form Control */
.form-control {
  width: 100%;
  padding: 12px 16px;
  font-size: var(--font-size-base);
  line-height: 1.5;
  color: var(--text-primary);
  background-color: var(--white);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  transition: all var(--transition-fast);
  position: relative;
}

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

.form-control:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
  outline: none;
}

.form-control:disabled {
  background-color: var(--light-gray);
  cursor: not-allowed;
  opacity: 0.6;
}

/* Valid State */
.form-control.is-valid {
  border-color: var(--accent-green);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2327AE60' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px 12px;
  padding-right: 40px;
}

.form-control.is-valid:focus {
  border-color: var(--accent-green);
  box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
}

/* Invalid State */
.form-control.is-invalid {
  border-color: var(--accent-red);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5' fill='%23E74C3C'/%3e%3cpath fill='%23fff' d='M5.8 3.6h.4v3.2h-.4zm0 4h.4v.4h-.4z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px 12px;
  padding-right: 40px;
}

.form-control.is-invalid:focus {
  border-color: var(--accent-red);
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

/* Validation Feedback */
.valid-feedback,
.invalid-feedback {
  display: none;
  margin-top: var(--spacing-xs);
  font-size: var(--font-size-sm);
  font-weight: 500;
}

.valid-feedback {
  color: var(--accent-green);
}

.invalid-feedback {
  color: var(--accent-red);
}

.form-control.is-valid ~ .valid-feedback {
  display: block;
}

.form-control.is-invalid ~ .invalid-feedback {
  display: block;
}

/* Form Text (Helper Text) */
.form-text {
  display: block;
  margin-top: var(--spacing-xs);
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}

.form-text.error {
  color: var(--accent-red);
}

.form-text.success {
  color: var(--accent-green);
}

/* Character Counter */
.form-counter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--spacing-xs);
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
}

.form-counter-current {
  font-weight: 600;
  color: var(--text-primary);
}

.form-counter.warning .form-counter-current {
  color: var(--accent-orange);
}

.form-counter.error .form-counter-current {
  color: var(--accent-red);
}

/* Password Strength Indicator */
.password-strength {
  margin-top: var(--spacing-sm);
}

.password-strength-bar {
  height: 4px;
  background-color: var(--light-gray);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: var(--spacing-xs);
}

.password-strength-fill {
  height: 100%;
  width: 0%;
  transition: all var(--transition-base);
  border-radius: 2px;
}

.password-strength-fill.weak {
  width: 33%;
  background-color: var(--accent-red);
}

.password-strength-fill.fair {
  width: 66%;
  background-color: var(--accent-orange);
}

.password-strength-fill.good {
  width: 100%;
  background-color: var(--accent-green);
}

.password-strength-text {
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--text-secondary);
}

.password-strength-text.weak {
  color: var(--accent-red);
}

.password-strength-text.fair {
  color: var(--accent-orange);
}

.password-strength-text.good {
  color: var(--accent-green);
}

/* Password Requirements */
.password-requirements {
  margin-top: var(--spacing-md);
  padding: var(--spacing-md);
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
  border-left: 4px solid var(--border-color);
}

.password-requirements-title {
  font-size: var(--font-size-xs);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.password-requirements-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.password-requirements-item {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  padding: var(--spacing-xs) 0;
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  transition: all var(--transition-fast);
}

.password-requirements-item::before {
  content: '○';
  font-weight: 700;
  color: var(--text-light);
  font-size: var(--font-size-lg);
  flex-shrink: 0;
}

.password-requirements-item.met {
  color: var(--accent-green);
}

.password-requirements-item.met::before {
  content: '✓';
  color: var(--accent-green);
}

/* Form Select */
.form-select {
  width: 100%;
  padding: 12px 40px 12px 16px;
  font-size: var(--font-size-base);
  color: var(--text-primary);
  background-color: var(--white);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px 12px;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  appearance: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.form-select:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
  outline: none;
}

.form-select.is-valid {
  border-color: var(--accent-green);
}

.form-select.is-invalid {
  border-color: var(--accent-red);
}

/* Form Check (Checkbox/Radio) */
.form-check {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
  position: relative;
}

.form-check-input {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--primary-blue);
  transition: all var(--transition-fast);
}

.form-check-input:focus {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

.form-check-label {
  font-size: var(--font-size-base);
  color: var(--text-primary);
  cursor: pointer;
  user-select: none;
}

/* Form Validation Summary */
.form-validation-summary {
  padding: var(--spacing-md);
  background: rgba(231, 76, 60, 0.1);
  border: 1px solid var(--accent-red);
  border-radius: var(--border-radius);
  margin-bottom: var(--spacing-lg);
  display: none;
}

.form-validation-summary.show {
  display: block;
  animation: slideDown 0.3s ease-out;
}

.form-validation-summary-title {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--accent-red);
  margin-bottom: var(--spacing-sm);
}

.form-validation-summary-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.form-validation-summary-item {
  font-size: var(--font-size-sm);
  color: var(--accent-red);
  padding: var(--spacing-xs) 0;
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.form-validation-summary-item::before {
  content: '✕';
  font-weight: 700;
  flex-shrink: 0;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Dark Mode */
[data-theme="dark"] .form-control {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

[data-theme="dark"] .form-control:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
}

[data-theme="dark"] .form-select {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

[data-theme="dark"] .password-requirements {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .form-validation-summary {
  background: rgba(231, 76, 60, 0.15);
  border-color: rgba(231, 76, 60, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
  .form-control,
  .form-select {
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 14px 16px;
  }

  .form-label {
    flex-direction: column;
    align-items: flex-start;
  }

  .form-label-hint {
    margin-top: var(--spacing-xs);
  }
}


/* ========== transaction-list-enhancements.css ========== */
/* ============================================
   RUPIYA - TRANSACTION LIST ENHANCEMENTS
   Enhanced transaction UI with visual improvements
   ============================================ */

/* Transaction List */
.transaction-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

/* Transaction Item */
.transaction-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.transaction-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--primary-blue);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform var(--transition-fast);
}

.transaction-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
  border-color: var(--primary-blue);
}

.transaction-item:hover::before {
  transform: scaleY(1);
}

.transaction-item.expense::before {
  background: var(--accent-red);
}

.transaction-item.income::before {
  background: var(--accent-green);
}

.transaction-item.split::before {
  background: var(--accent-purple);
}

/* Transaction Icon */
.transaction-icon {
  font-size: 24px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
  flex-shrink: 0;
}

.transaction-item.expense .transaction-icon {
  background: rgba(231, 76, 60, 0.1);
}

.transaction-item.income .transaction-icon {
  background: rgba(39, 174, 96, 0.1);
}

.transaction-item.split .transaction-icon {
  background: rgba(155, 89, 182, 0.1);
}

/* Transaction Details */
.transaction-details {
  flex: 1;
  min-width: 0;
}

.transaction-title {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.transaction-meta {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  flex-wrap: nowrap !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.transaction-meta-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.transaction-meta-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  background: var(--bg-secondary);
  border-radius: 12px;
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--text-secondary);
}

.transaction-meta-badge.split {
  background: rgba(155, 89, 182, 0.1);
  color: var(--accent-purple);
}

/* Transaction Amount */
.transaction-amount {
  font-size: var(--font-size-lg);
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 100px;
  text-align: right;
}

.transaction-amount.expense {
  color: var(--accent-red);
}

.transaction-amount.income {
  color: var(--accent-green);
}

.transaction-amount.split {
  color: var(--accent-purple);
}

/* Transaction Status */
.transaction-status {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: 4px 12px;
  background: var(--bg-secondary);
  border-radius: 12px;
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.transaction-status.pending {
  background: rgba(243, 156, 18, 0.1);
  color: var(--accent-orange);
}

.transaction-status.completed {
  background: rgba(39, 174, 96, 0.1);
  color: var(--accent-green);
}

.transaction-status.failed {
  background: rgba(231, 76, 60, 0.1);
  color: var(--accent-red);
}

.transaction-status::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}

/* Transaction Actions */
.transaction-actions {
  display: flex;
  gap: var(--spacing-xs);
  opacity: 0;
  transition: opacity var(--transition-fast);
  flex-shrink: 0;
}

.transaction-item:hover .transaction-actions {
  opacity: 1;
}

.transaction-action-btn {
  width: 32px;
  height: 32px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  font-size: 16px;
}

.transaction-action-btn:hover {
  background: var(--primary-blue);
  color: var(--white);
  transform: scale(1.1);
}

.transaction-action-btn.delete:hover {
  background: var(--accent-red);
}

/* Transaction Filters */
.transaction-filters {
  display: flex;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
  flex-wrap: wrap;
}

.transaction-filter-btn {
  padding: 8px 16px;
  background: var(--white);
  border: 2px solid var(--border-color);
  border-radius: 20px;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.transaction-filter-btn:hover {
  border-color: var(--primary-blue);
  color: var(--primary-blue);
}

.transaction-filter-btn.active {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
  color: var(--white);
}

/* Transaction Expandable Details */
.transaction-item.expandable {
  cursor: pointer;
}

.transaction-item.expandable .transaction-expand-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.transaction-item.expandable.expanded .transaction-expand-icon {
  transform: rotate(180deg);
}

.transaction-details-expanded {
  display: none;
  grid-column: 1 / -1;
  padding: var(--spacing-md);
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  margin-top: var(--spacing-sm);
  border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.transaction-item.expanded .transaction-details-expanded {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-md);
}

.transaction-detail-field {
  display: flex;
  flex-direction: column;
}

.transaction-detail-label {
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.transaction-detail-value {
  font-size: var(--font-size-base);
  color: var(--text-primary);
  font-weight: 600;
}

/* Transaction Category Badge */
.transaction-category {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: 4px 12px;
  background: var(--bg-secondary);
  border-radius: 12px;
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--text-secondary);
}

.transaction-category::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-blue);
}

/* Transaction List Empty State */
.transaction-list-empty {
  text-align: center;
  padding: var(--spacing-2xl);
  color: var(--text-secondary);
}

.transaction-list-empty-icon {
  font-size: 64px;
  margin-bottom: var(--spacing-md);
  opacity: 0.3;
}

.transaction-list-empty-title {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.transaction-list-empty-text {
  font-size: var(--font-size-base);
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
}

/* Mobile Swipe Actions */
@media (max-width: 768px) {
  .transaction-item {
    position: relative;
    flex-wrap: nowrap;
    gap: 10px;
    padding: 12px;
  }

  .transaction-icon {
    width: 40px;
    height: 40px;
    font-size: 20px;
    flex-shrink: 0;
  }

  .transaction-details {
    flex: 1;
    min-width: 0;
  }

  .transaction-title {
    font-size: 14px;
    margin-bottom: 4px;
  }

  .transaction-meta {
    font-size: 11px;
    gap: 4px;
  }

  .transaction-meta-item {
    gap: 2px;
  }

  .transaction-amount {
    min-width: auto;
    font-size: 14px;
    text-align: right;
    flex-shrink: 0;
    padding-left: 8px;
  }

  .transaction-actions {
    opacity: 1;
    position: static;
    transform: none;
    gap: 4px;
    flex-shrink: 0;
  }

  .transaction-action-btn {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }
}

/* Dark Mode */
[data-theme="dark"] .transaction-item {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .transaction-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary-blue);
}

[data-theme="dark"] .transaction-icon {
  background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .transaction-action-btn {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
}

[data-theme="dark"] .transaction-action-btn:hover {
  background: var(--primary-blue);
  color: var(--white);
}

[data-theme="dark"] .transaction-filter-btn {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
}

[data-theme="dark"] .transaction-filter-btn:hover {
  border-color: var(--primary-blue);
  color: var(--primary-blue);
}

[data-theme="dark"] .transaction-filter-btn.active {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
  color: var(--white);
}

[data-theme="dark"] .transaction-details-expanded {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 640px) {
  .transaction-item {
    flex-wrap: nowrap;
    gap: 8px;
    padding: 10px;
  }

  .transaction-icon {
    width: 36px;
    height: 36px;
    font-size: 18px;
    flex-shrink: 0;
  }

  .transaction-details {
    flex: 1;
    min-width: 0;
    order: 0;
  }

  .transaction-title {
    font-size: 13px;
    margin-bottom: 3px;
  }

  .transaction-meta {
    font-size: 10px;
    gap: 3px;
  }

  .transaction-amount {
    flex-basis: auto;
    order: 0;
    text-align: right;
    font-size: 13px;
    min-width: 60px;
    flex-shrink: 0;
  }

  .transaction-actions {
    order: 0;
    flex-basis: auto;
    justify-content: flex-end;
    margin-top: 0;
    gap: 3px;
  }

  .transaction-action-btn {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }
}


/* ========== feature-settings.css ========== */
/* Feature Settings Component Styles */

.feature-settings-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

.feature-settings-header {
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.feature-settings-header h2 {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 8px 0;
  color: var(--text-primary);
}

.feature-settings-header p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0 0 16px 0;
  line-height: 1.5;
}

.feature-settings-header .btn {
  margin-top: 12px;
}

.feature-categories {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 40px;
}

.feature-category {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  background: var(--bg-secondary);
}

.category-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.category-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.category-info h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 4px 0;
  color: var(--text-primary);
}

.category-info p {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.4;
}

.category-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-item {
  display: flex;
  align-items: center;
  padding: 12px;
  border-radius: 6px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
}

.feature-item:hover {
  border-color: var(--primary-blue);
  background: var(--bg-hover);
}

.feature-item.required {
  opacity: 1;
}

.feature-item.required .feature-checkbox {
  cursor: not-allowed;
}

.feature-toggle {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
}

.feature-checkbox {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  cursor: pointer;
  flex-shrink: 0;
  accent-color: var(--primary-blue);
}

.feature-checkbox:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.feature-label {
  flex: 1;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.feature-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.feature-description {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.feature-badge {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
  margin-top: 4px;
  width: fit-content;
}

.required-badge {
  background: #dbeafe;
  color: #1e40af;
}

.feature-settings-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  gap: 20px;
}

.feature-stats {
  display: flex;
  gap: 24px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-label {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

.stat-value {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
}

/* Notification Styles */
@keyframes slideIn {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(400px);
    opacity: 0;
  }
}

.notification {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  font-weight: 500;
}

/* Dark Mode Support */
[data-theme="dark"] .feature-settings-container {
  --text-primary: #E8EAED;
  --text-secondary: #B0B0B0;
  --bg-primary: #2C2C2C;
  --bg-secondary: #1E1E1E;
  --bg-hover: #3A3A3A;
  --border-color: #424242;
}

[data-theme="dark"] .feature-settings-header h2 {
  color: var(--text-primary);
}

[data-theme="dark"] .feature-settings-header p {
  color: var(--text-secondary);
}

[data-theme="dark"] .feature-category {
  background: var(--bg-secondary);
  border-color: var(--border-color);
}

[data-theme="dark"] .category-info h3 {
  color: var(--text-primary);
}

[data-theme="dark"] .category-info p {
  color: var(--text-secondary);
}

[data-theme="dark"] .feature-item {
  background: var(--bg-primary);
  border-color: var(--border-color);
}

[data-theme="dark"] .feature-item:hover {
  border-color: var(--primary-blue);
  background: var(--bg-hover);
}

[data-theme="dark"] .feature-name {
  color: var(--text-primary);
}

[data-theme="dark"] .feature-description {
  color: var(--text-secondary);
}

[data-theme="dark"] .stat-label {
  color: var(--text-secondary);
}

[data-theme="dark"] .stat-value {
  color: var(--text-primary);
}

[data-theme="dark"] .required-badge {
  background: rgba(30, 64, 175, 0.2);
  color: #60a5fa;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .feature-settings-container {
    padding: 16px;
  }

  .feature-settings-header {
    margin-bottom: 24px;
  }

  .feature-categories {
    gap: 20px;
  }

  .feature-category {
    padding: 16px;
  }

  .category-header {
    gap: 10px;
  }

  .category-icon {
    font-size: 20px;
  }

  .category-info h3 {
    font-size: 14px;
  }

  .category-info p {
    font-size: 12px;
  }

  .feature-item {
    padding: 10px;
  }

  .feature-checkbox {
    width: 18px;
    height: 18px;
  }

  .feature-name {
    font-size: 13px;
  }

  .feature-description {
    font-size: 11px;
  }

  .feature-settings-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .feature-stats {
    justify-content: space-around;
    width: 100%;
  }

  .feature-settings-footer .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .feature-settings-container {
    padding: 12px;
  }

  .feature-settings-header {
    margin-bottom: 20px;
  }

  .feature-settings-header h2 {
    font-size: 20px;
  }

  .feature-settings-header p {
    font-size: 13px;
  }

  .feature-categories {
    gap: 16px;
  }

  .feature-category {
    padding: 12px;
  }

  .category-header {
    gap: 8px;
    margin-bottom: 16px;
  }

  .category-icon {
    font-size: 18px;
  }

  .category-info h3 {
    font-size: 13px;
  }

  .category-info p {
    font-size: 11px;
  }

  .feature-item {
    padding: 8px;
  }

  .feature-checkbox {
    width: 16px;
    height: 16px;
    margin-top: 1px;
  }

  .feature-name {
    font-size: 12px;
  }

  .feature-description {
    font-size: 10px;
  }

  .feature-settings-footer {
    flex-direction: column;
    gap: 12px;
    padding-top: 16px;
  }

  .feature-stats {
    gap: 16px;
  }

  .stat-label {
    font-size: 11px;
  }

  .stat-value {
    font-size: 18px;
  }
}


/* ========== feature-onboarding.css ========== */
/* Feature Onboarding Styles */

.feature-onboarding-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.feature-onboarding-modal {
  background: var(--bg-primary, #ffffff);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.onboarding-header {
  padding: 32px;
  border-bottom: 1px solid var(--border-color, #e5e7eb);
  background: linear-gradient(135deg, var(--primary-color, #4a90e2) 0%, var(--primary-dark, #2563eb) 100%);
  color: white;
}

.onboarding-header h1 {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 8px 0;
}

.onboarding-header p {
  font-size: 16px;
  margin: 0;
  opacity: 0.95;
}

.onboarding-content {
  flex: 1;
  overflow-y: auto;
  padding: 32px;
}

.feature-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.onboarding-category {
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 8px;
  padding: 20px;
  background: var(--bg-secondary, #f9fafb);
  transition: all 0.2s ease;
}

.onboarding-category:hover {
  border-color: var(--primary-color, #4a90e2);
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.1);
}

.category-header-compact {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-color, #e5e7eb);
}

.category-header-compact .category-icon {
  font-size: 24px;
}

.category-header-compact h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  color: var(--text-primary, #1f2937);
}

.category-features-compact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-checkbox-compact {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.feature-checkbox-compact:hover {
  background: var(--bg-hover, #f3f4f6);
  border-color: var(--primary-color, #4a90e2);
}

.feature-checkbox-compact.selected {
  background: var(--primary-light, #eff6ff);
  border-color: var(--primary-color, #4a90e2);
}

.feature-checkbox-compact.required {
  opacity: 0.8;
}

.feature-checkbox-compact.required .feature-checkbox-input {
  cursor: not-allowed;
}

.checkbox-visual {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-color, #d1d5db);
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-checkbox-input {
  display: none;
}

.feature-checkbox-input:checked ~ .checkbox-visual {
  background: var(--primary-color, #4a90e2);
  border-color: var(--primary-color, #4a90e2);
}

.feature-checkbox-input:checked ~ .checkbox-visual::after {
  content: '✓';
  color: white;
  font-size: 14px;
  font-weight: bold;
}

.feature-info-compact {
  flex: 1;
}

.feature-name-compact {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary, #1f2937);
  margin-bottom: 4px;
}

.feature-description-compact {
  font-size: 12px;
  color: var(--text-secondary, #6b7280);
  line-height: 1.4;
}

.feature-badge-compact {
  display: inline-block;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 3px;
  background: var(--info-bg, #dbeafe);
  color: var(--info-text, #1e40af);
  font-weight: 600;
  margin-top: 6px;
}

.onboarding-footer {
  padding: 20px 32px;
  border-top: 1px solid var(--border-color, #e5e7eb);
  background: var(--bg-secondary, #f9fafb);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.onboarding-stats {
  font-size: 14px;
  color: var(--text-secondary, #6b7280);
}

.onboarding-stats strong {
  color: var(--text-primary, #1f2937);
  font-weight: 600;
}

.onboarding-actions {
  display: flex;
  gap: 12px;
}

.onboarding-actions .btn {
  min-width: 120px;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .feature-onboarding-modal {
    --bg-primary: #1f2937;
    --bg-secondary: #111827;
    --bg-hover: #374151;
    --text-primary: #f3f4f6;
    --text-secondary: #d1d5db;
    --border-color: #374151;
    --primary-light: #1e3a8a;
  }

  .onboarding-category {
    background: var(--bg-secondary);
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .feature-onboarding-overlay {
    padding: 10px;
  }

  .feature-onboarding-modal {
    max-height: 95vh;
  }

  .onboarding-header {
    padding: 24px;
  }

  .onboarding-header h1 {
    font-size: 22px;
  }

  .onboarding-header p {
    font-size: 14px;
  }

  .onboarding-content {
    padding: 20px;
  }

  .feature-categories-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .onboarding-footer {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
  }

  .onboarding-actions {
    flex-direction: column;
  }

  .onboarding-actions .btn {
    width: 100%;
  }
}


