/* ===== CSS RESET & VARIABLES ===== */
:root {
  --primary-color: #009640;
  --primary-dark: #007a33;
  --primary-light: #10b981;
  --accent-gold: #FFD700;
  --accent-blue: #3B82F6;
  --accent-purple: #8B5CF6;
  --accent-red: #EF4444;
  --text-dark: #1E293B;
  --text-light: #64748B;
  --bg-light: #F8FAFC;
  --bg-white: #FFFFFF;
  --success: #10B981;
  --warning: #F59E0B;
  --error: #EF4444;
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);
  --shadow-glow: 0 0 30px rgba(0, 150, 64, 0.3);
  --border-radius: 16px;
  --border-radius-lg: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #f0f9f4 0%, #e6f3ec 50%, #d1fae5 100%);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

/* ===== GLASS MORPHISM EFFECTS ===== */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
}

.glass-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: var(--shadow-md);
}

/* ===== APP CONTAINER ===== */
.app-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: transparent;
}

/* ===== ENHANCED HEADER ===== */
.app-header {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--border-radius-lg);
  padding: 20px 24px;
  box-shadow: 
    0 8px 32px rgba(0, 150, 64, 0.15),
    inset 0 2px 2px rgba(255, 255, 255, 0.5),
    inset 0 -2px 4px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.app-header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transform: rotate(30deg);
  transition: all 0.8s;
}

.app-header:hover {
  box-shadow: 
    0 12px 40px rgba(0, 150, 64, 0.25),
    inset 0 2px 2px rgba(255, 255, 255, 0.7),
    inset 0 -2px 4px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}

.app-header:hover::before {
  transform: rotate(30deg) translate(20%, 20%);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-logo {
  font-size: 2.5rem;
  color: var(--primary-color);
  filter: drop-shadow(0 0 15px rgba(0, 150, 64, 0.4));
  text-shadow: 
    0 0 10px rgba(0, 150, 64, 0.3),
    0 0 20px rgba(0, 150, 64, 0.2);
  transition: all 0.3s ease;
}

.brand-logo:hover {
  transform: scale(1.1) rotate(5deg);
  filter: drop-shadow(0 0 20px rgba(0, 150, 64, 0.6));
}

.brand-section h1 {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 1.8rem;
  background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
}

.brand-section h1::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
  border-radius: 3px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s ease;
}

.brand-section:hover h1::after {
  transform: scaleX(1);
  transform-origin: left;
}

.user-section {
  display: flex;
  align-items: center;
  gap: 20px;
}

.user-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.user-role {
  font-size: 0.9rem;
  padding: 6px 16px;
  border-radius: 25px;
  background: linear-gradient(45deg, #e0f2e9, #a7f3d0);
  color: var(--primary-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 
    0 4px 12px rgba(0, 150, 64, 0.2),
    inset 0 2px 2px rgba(255, 255, 255, 0.5);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.user-role::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: 0.5s;
}

.user-role:hover::before {
  left: 100%;
}

.user-role.admin {
  background: linear-gradient(45deg, #dbeafe, #93c5fd);
  color: #1d4ed8;
  box-shadow: 
    0 4px 12px rgba(59, 130, 246, 0.2),
    inset 0 2px 2px rgba(255, 255, 255, 0.5);
}

.user-name {
  font-size: 1rem;
  color: var(--text-dark);
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.logout-btn {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--text-light);
  padding: 12px;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  box-shadow: 
    0 4px 15px rgba(0, 0, 0, 0.1),
    inset 0 2px 2px rgba(255, 255, 255, 0.5);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.logout-btn:hover {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(239, 68, 68, 0.1));
  color: var(--error);
  transform: scale(1.08) rotate(10deg);
  border-color: rgba(239, 68, 68, 0.4);
  box-shadow: 
    0 6px 20px rgba(239, 68, 68, 0.25),
    inset 0 2px 2px rgba(255, 255, 255, 0.7);
}

/* ===== ENHANCED STATS GRID ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-lg);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
}

.stat-card:hover::before {
  left: 100%;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.stat-card.primary {
  background: linear-gradient(135deg, rgba(0, 150, 64, 0.1), rgba(16, 185, 129, 0.1));
  border: 1px solid rgba(0, 150, 64, 0.2);
}

.stat-card.secondary {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(96, 165, 250, 0.1));
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.stat-card.success {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(52, 211, 153, 0.1));
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.stat-card.warning {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(251, 191, 36, 0.1));
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
}

.stat-card.primary .stat-icon {
  color: var(--primary-color);
  background: linear-gradient(135deg, #e0f2e9, #a7f3d0);
}

.stat-card.secondary .stat-icon {
  color: var(--accent-blue);
  background: linear-gradient(135deg, #dbeafe, #93c5fd);
}

.stat-content {
  flex: 1;
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  font-family: 'Orbitron', sans-serif;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 8px;
  font-weight: 500;
}

.stat-trend {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
}

.stat-trend.positive {
  color: var(--success);
}

.stat-trend.negative {
  color: var(--error);
}

/* ===== ENHANCED ACTION BUTTONS ===== */
.quick-actions {
  margin-bottom: 24px;
}

.section-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
  font-family: 'Inter', sans-serif;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
}

.action-grid.expanded {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  border: none;
  border-radius: var(--border-radius);
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--glass-border);
}

.action-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: 0.5s;
}

.action-btn:hover::before {
  left: 100%;
}

.action-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.action-btn:active {
  transform: translateY(-1px);
}

.action-btn i {
  font-size: 1.8rem;
  margin-bottom: 8px;
  transition: var(--transition);
}

.action-btn:hover i {
  transform: scale(1.1);
}

.action-btn.large {
  grid-column: span 2;
  flex-direction: row;
  gap: 12px;
  padding: 24px 20px;
}

.action-btn.large i {
  font-size: 2rem;
  margin-bottom: 0;
}

/* Button Variants */
.action-btn.primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: white;
  border: none;
}

.action-btn.secondary {
  background: linear-gradient(135deg, var(--accent-blue), #60a5fa);
  color: white;
  border: none;
}

.action-btn.accent {
  background: linear-gradient(135deg, var(--accent-purple), #a78bfa);
  color: white;
  border: none;
}

.action-btn.info {
  background: linear-gradient(135deg, #06b6d4, #22d3ee);
  color: white;
  border: none;
}

.action-btn.success {
  background: linear-gradient(135deg, var(--success), #34d399);
  color: white;
  border: none;
}

.action-btn.danger {
  background: linear-gradient(135deg, var(--error), #f87171);
  color: white;
  border: none;
}

/* ===== ENHANCED MODAL ===== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 20px;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.modal-container {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--border-radius-lg);
  max-width: 90%;
  width: 500px;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 24px 0;
  margin-bottom: 20px;
}

.modal-header h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.close {
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-light);
  transition: var(--transition);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.close:hover {
  color: var(--text-dark);
  background: rgba(0, 0, 0, 0.05);
}

.modal-body {
  padding: 0 24px;
}

.modal-footer {
  display: flex;
  gap: 12px;
  padding: 20px 24px 24px;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
}

.btn-primary, .btn-secondary {
  flex: 1;
  padding: 12px 20px;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(203, 213, 225, 0.6);
  color: var(--text-dark);
}

.btn-secondary:hover {
  background: white;
  border-color: var(--text-light);
}

/* Report Card Styles */
.report-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 0;
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.report-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
}

.report-header i {
  font-size: 1.5rem;
  color: var(--primary-color);
}

.store-name {
  font-weight: 600;
  color: var(--text-dark);
}

.report-period {
  font-size: 0.9rem;
  color: var(--text-light);
}

.report-stats {
  padding: 20px;
}

.report-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.report-stat:last-child {
  border-bottom: none;
}

.report-stat.highlight {
  background: linear-gradient(135deg, rgba(0, 150, 64, 0.05), transparent);
  margin: 0 -20px;
  padding: 12px 20px;
  border-bottom: none;
  border-top: 1px solid rgba(226, 232, 240, 0.5);
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.stat-name {
  color: var(--text-light);
  font-weight: 500;
}

.stat-value {
  font-weight: 700;
  color: var(--text-dark);
  font-family: 'Inter', sans-serif;
}

.report-stat.highlight .stat-value {
  color: var(--primary-color);
  font-size: 1.1rem;
}

.report-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 16px 20px;
  background: rgba(59, 130, 246, 0.05);
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.5;
}

.report-note i {
  color: var(--accent-blue);
  margin-top: 2px;
}

/* ===== STORE SELECTOR ===== */
.store-selector-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  margin-bottom: 24px;
  transition: var(--transition);
}

.store-selector-card:hover {
  border-color: rgba(0, 150, 64, 0.3);
  transform: translateY(-2px);
}

.selector-icon {
  font-size: 1.2rem;
  color: var(--primary-color);
}

.store-select {
  flex: 1;
  background: transparent;
  border: none;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-dark);
  font-family: 'Inter', sans-serif;
  cursor: pointer;
}

.store-select:focus {
  outline: none;
}

.selector-arrow {
  color: var(--text-light);
  transition: var(--transition);
}

.store-selector-card:hover .selector-arrow {
  color: var(--primary-color);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (min-width: 768px) {
  .app-container {
    max-width: 720px;
    padding: 28px;
    gap: 28px;
  }

  .brand-section h1 {
    font-size: 2rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .action-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .action-grid.expanded {
    grid-template-columns: repeat(3, 1fr);
  }

  .login-card {
    max-width: 480px;
    padding: 48px;
  }
  
  .user-role {
    font-size: 0.95rem;
    padding: 7px 18px;
  }
  
  .user-name {
    font-size: 1.1rem;
  }
  
  .logout-btn {
    width: 55px;
    height: 55px;
    font-size: 1.3rem;
  }
}

@media (min-width: 1024px) {
  .app-container {
    max-width: 1000px;
    padding: 32px;
    gap: 32px;
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .action-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .action-grid.expanded {
    grid-template-columns: repeat(6, 1fr);
  }

  .login-card {
    max-width: 520px;
    padding: 56px;
  }

  .modal-container {
    width: 560px;
  }
  
  .brand-section h1 {
    font-size: 2.2rem;
  }
  
  .user-role {
    font-size: 1rem;
    padding: 8px 20px;
  }
  
  .user-name {
    font-size: 1.2rem;
  }
  
  .logout-btn {
    width: 60px;
    height: 60px;
    font-size: 1.4rem;
  }
}

@media (min-width: 1440px) {
  .app-container {
    max-width: 1200px;
  }
  
  .brand-section h1 {
    font-size: 2.5rem;
  }
}

/* Mobile responsive improvements */
@media (max-width: 767px) {
  .app-container {
    padding: 15px;
    gap: 20px;
  }
  
  .app-header {
    padding: 16px 20px;
    border-radius: 20px;
    margin-bottom: 15px;
  }
  
  .header-content {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .brand-section {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }
  
  .brand-logo {
    font-size: 2rem;
  }
  
  .brand-section h1 {
    font-size: 1.5rem;
  }
  
  .user-section {
    gap: 15px;
  }
  
  .user-info {
    align-items: center;
  }
  
  .user-role {
    font-size: 0.8rem;
    padding: 5px 14px;
  }
  
  .user-name {
    font-size: 0.9rem;
  }
  
  .logout-btn {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
    padding: 10px;
  }
}

@media (max-width: 480px) {
  .app-container {
    padding: 12px;
    gap: 16px;
  }
  
  .app-header {
    padding: 14px 16px;
    border-radius: 18px;
    margin-bottom: 12px;
  }
  
  .brand-logo {
    font-size: 1.8rem;
  }
  
  .brand-section h1 {
    font-size: 1.3rem;
  }
  
  .user-role {
    font-size: 0.7rem;
    padding: 4px 12px;
  }
  
  .user-name {
    font-size: 0.8rem;
  }
  
  .logout-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    padding: 8px;
  }
}

/* ===== ACCESSIBILITY & ANIMATIONS ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles for accessibility */
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Loading animation */
@keyframes skeleton-loading {
  0% {
    background-color: rgba(0, 0, 0, 0.1);
  }
  50% {
    background-color: rgba(0, 0, 0, 0.15);
  }
  100% {
    background-color: rgba(0, 0, 0, 0.1);
  }
}

.skeleton {
  animation: skeleton-loading 1.5s ease-in-out infinite;
}

/* ===== ENHANCED LAYOUT SPACING ===== */
.app-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 24px; /* This ensures consistent spacing between all direct children */
  background: transparent;
}

/* Ensure main content has proper spacing from header */
.main-content {
  display: flex;
  flex-direction: column;
  gap: 24px; /* Consistent spacing between main content sections */
}

/* Specific spacing for store selector */
.store-selector-card {
  margin-bottom: 0; /* Remove any existing margin since gap handles spacing */
}

/* Ensure stats grid has proper spacing */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 0; /* Let gap handle spacing */
}

/* Quick actions section spacing */
.quick-actions {
  margin-bottom: 0; /* Let gap handle spacing */
}

/* Enhanced header spacing */
.app-header {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--border-radius-lg);
  padding: 20px 24px;
  box-shadow: 
    0 8px 32px rgba(0, 150, 64, 0.15),
    inset 0 2px 2px rgba(255, 255, 255, 0.5),
    inset 0 -2px 4px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  margin-bottom: 20px; /* Remove margin, let gap handle spacing */
  position: relative;
  overflow: hidden;
}

/* Ensure all sections have consistent spacing */
.app-header + .main-content {
  margin-top: 0; /* Remove any default margins */
  margin-bottom: 20px;
}

/* Responsive spacing adjustments */
@media (min-width: 768px) {
  .app-container {
    gap: 28px;
    padding: 28px;
  }

  .main-content {
    gap: 28px;
  }

  .stats-grid {
    gap: 24px;
  }

}

@media (min-width: 1024px) {
  .app-container {
    gap: 32px;
    padding: 32px;
  }

  .main-content {
    gap: 32px;
  }

  .stats-grid {
    gap: 28px;
  }
}
.app-view {
  padding: 20px;
}

.app-view h2 {
  margin-bottom: 20px;
}

.back-btn {
  background: none;
  border: none;
  color: var(--primary-color);
  font-size: 1rem;
  cursor: pointer;
  margin-bottom: 20px;
}
