/* css/app.css - TonyComm Clean Design System */
:root {
  /* TonyComm Brand Colors - Clean Minimal Design */
  --primary: #4f46e5;       /* Clean purple-blue */
  --primary-dark: #4338ca;  /* Darker for hover */
  --primary-light: #6366f1; /* Lighter variant */
  --primary-container: #f0f9ff;
  --on-primary: #ffffff;
  
  --accent: #10b981;        /* Success green */
  --accent-dark: #059669;
  --accent-light: #34d399;
  
  /* Neutral Colors - Clean Grays */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  
  /* Surface Colors - Clean White */
  --surface: #ffffff;
  --surface-variant: #fafbfc;
  --on-surface: #111827;
  --on-surface-variant: #6b7280;
  
  /* Background - Clean White/Light Gray */
  --background: #ffffff;
  --background-alt: #fafbfc;
  --outline: #e5e7eb;
  --outline-variant: #f3f4f6;
  
  /* Semantic Colors */
  --success: #10b981;
  --success-container: #ecfdf5;
  --warning: #f59e0b;
  --warning-container: #fffbeb;
  --error: #ef4444;
  --error-container: #fef2f2;
  --info: #3b82f6;
  --info-container: #eff6ff;
  
  /* Elevation - Clean Subtle Shadows */
  --elevation-1: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --elevation-2: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --elevation-3: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --elevation-4: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --card-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --button-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  
  /* Typography Scale - Clean & Readable */
  --text-xs: 0.75rem;      /* 12px */
  --text-sm: 0.875rem;     /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg: 1.125rem;     /* 18px */
  --text-xl: 1.25rem;      /* 20px */
  --text-2xl: 1.5rem;      /* 24px */
  --text-3xl: 1.875rem;    /* 30px */
  --text-4xl: 2.25rem;     /* 36px */
  
  /* Font Weights */
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  
  /* Spacing Scale */
  --space-0: 0;
  --space-1: 0.25rem;      /* 4px */
  --space-2: 0.5rem;       /* 8px */
  --space-3: 0.75rem;      /* 12px */
  --space-4: 1rem;         /* 16px */
  --space-5: 1.25rem;      /* 20px */
  --space-6: 1.5rem;       /* 24px */
  --space-8: 2rem;         /* 32px */
  --space-10: 2.5rem;      /* 40px */
  --space-12: 3rem;        /* 48px */
  --space-16: 4rem;        /* 64px */
  
  /* Border Radius */
  --radius-sm: 0.25rem;    /* 4px */
  --radius: 0.375rem;      /* 6px */
  --radius-md: 0.5rem;     /* 8px */
  --radius-lg: 0.75rem;    /* 12px */
  --radius-xl: 1rem;       /* 16px */
  --radius-2xl: 1.5rem;    /* 24px */
  --radius-full: 9999px;
  
  /* Typography Scale - Legacy Support */
  --display-large: 2.25rem;
  --display-medium: 1.875rem;
  --display-small: 2.25rem;
  
  --headline-large: 2rem;
  --headline-medium: 1.75rem;
  --headline-small: 1.5rem;
  
  --title-large: 1.375rem;
  --title-medium: 1rem;
  --title-small: 0.875rem;
  
  --body-large: 1rem;
  --body-medium: 0.875rem;
  --body-small: 0.75rem;
  
  --label-large: 0.875rem;
  --label-medium: 0.75rem;
  --label-small: 0.6875rem;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  
  /* Border Radius */
  --radius-xs: 0.25rem;
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* App Layout */
  --header-height: 64px;
  --bottom-nav-height: 80px;
  --sidebar-width: 280px;
}

/* Force Light Theme Only - Prevent Auto Dark Mode Inversion */
:root {
  color-scheme: light only !important;
}

html, body {
  color-scheme: light only !important;
}

/* Disable dark mode completely and force light theme */
@media (prefers-color-scheme: dark) {
  :root {
    /* Keep light theme colors even when dark mode is preferred */
    --surface: #ffffff !important;
    --surface-variant: #fafbfc !important;
    --on-surface: #111827 !important;
    --on-surface-variant: #6b7280 !important;
    --background: #ffffff !important;
    --background-alt: #fafbfc !important;
    --outline: #e5e7eb !important;
    --outline-variant: #f3f4f6 !important;
    color-scheme: light only !important;
  }
  
  body {
    background: #ffffff !important;
    color: #111827 !important;
    color-scheme: light only !important;
  }
  
  /* Prevent any webkit/browser auto-inversion */
  * {
    -webkit-filter: none !important;
    filter: none !important;
    color-scheme: light only !important;
  }
  
  /* Force specific background colors for all major components */
  .app, .main-content, .card, .header, .sidebar, .footer,
  .stat-card, .welcome-section, .alert, .form-control, .btn,
  .login-container, .login-card, .setup-container, .setup-card,
  .support-section, .contact-card, .billing-card, .usage-card {
    background-color: inherit !important;
    color-scheme: light only !important;
  }
  
  /* Ensure white backgrounds are maintained */
  .surface, .card, .app-header, .sidebar {
    background: #ffffff !important;
    background-color: #ffffff !important;
  }
  
  /* Ensure light backgrounds are maintained */
  .background, .background-alt, body, html {
    background: #ffffff !important;
    background-color: #ffffff !important;
  }
  
  /* Ultimate protection - force light theme on everything */
  *, *::before, *::after {
    color-scheme: light only !important;
  }
  
  /* Prevent any form of dark mode inversion */
  input, textarea, select, button {
    color-scheme: light only !important;
    background-color: inherit !important;
  }
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--background) !important;
  background-color: #ffffff !important;
  color: var(--on-surface) !important;
  color: #111827 !important;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  color-scheme: light only !important;
}

/* TonyComm Brand Typography */
.brand-gradient {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-accent {
  color: var(--accent);
}

/* Typography Scale */
.display-large {
  font-size: var(--display-large);
  line-height: 1.1;
  font-weight: 400;
}

.display-medium {
  font-size: var(--display-medium);
  line-height: 1.2;
  font-weight: 400;
}

.display-small {
  font-size: var(--display-small);
  line-height: 1.3;
  font-weight: 400;
}

.headline-large {
  font-size: var(--headline-large);
  line-height: 1.3;
  font-weight: 400;
}

.headline-medium {
  font-size: var(--headline-medium);
  line-height: 1.4;
  font-weight: 400;
}

.headline-small {
  font-size: var(--headline-small);
  line-height: 1.4;
  font-weight: 400;
}

.title-large {
  font-size: var(--title-large);
  line-height: 1.4;
  font-weight: 600;
}

.title-medium {
  font-size: var(--title-medium);
  line-height: 1.5;
  font-weight: 600;
}

.title-small {
  font-size: var(--title-small);
  line-height: 1.5;
  font-weight: 600;
}

.body-large {
  font-size: var(--body-large);
  line-height: 1.5;
  font-weight: 400;
}

.body-medium {
  font-size: var(--body-medium);
  line-height: 1.4;
  font-weight: 400;
}

.body-small {
  font-size: var(--body-small);
  line-height: 1.3;
  font-weight: 400;
}

.label-large {
  font-size: var(--label-large);
  line-height: 1.4;
  font-weight: 500;
}

.label-medium {
  font-size: var(--label-medium);
  line-height: 1.3;
  font-weight: 500;
}

.label-small {
  font-size: var(--label-small);
  line-height: 1.2;
  font-weight: 500;
}

/* App Container */
.app {
  min-height: 100vh;
  background: var(--background);
  position: relative;
}

/* Modern Header with TonyComm Branding */
.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-lg);
  z-index: 1000;
  box-shadow: var(--card-shadow);
}

.app-header__title {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 700;
}

/* Minimal header logo for all screens */
.header-logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: var(--elevation-1);
  margin: 0 auto;
  display: block;
}

.app-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* Icon Buttons */
.icon-button {
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--on-surface-variant);
  cursor: pointer;
  transition: var(--transition-fast);
  position: relative;
}

.icon-button:hover,
.icon-button:active {
  background: rgba(26, 115, 232, 0.1);
  color: #1a73e8;
  transform: scale(0.95);
  border-radius: var(--radius-lg);
  box-shadow: var(--elevation-2);
}

.icon-button--large {
  width: 48px;
  height: 48px;
}

/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-nav-height);
  background: rgba(255, 255, 255, 0.95);
  border-top: none;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: var(--space-sm);
  z-index: 1000;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 -4px 16px rgba(26, 115, 232, 0.15);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--on-surface-variant);
  text-decoration: none;
  padding: var(--space-sm);
  border-radius: var(--radius-lg);
  transition: var(--transition-fast);
  min-width: 64px;
  position: relative;
}

.nav-item--active {
  color: #1a73e8;
  background: rgba(26, 115, 232, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 8px rgba(26, 115, 232, 0.3);
}

.nav-item__icon {
  font-size: 1.3rem;
  margin-bottom: var(--space-xs);
  transition: var(--transition-fast);
}

.nav-item__label {
  font-size: var(--label-small);
  font-weight: 500;
}

.nav-item:active {
  background: var(--primary-container);
  transform: scale(0.95);
}

/* Main Content Area */
.main-content {
  padding: calc(var(--header-height) + var(--space-sm)) var(--space-md) calc(var(--bottom-nav-height) + var(--space-lg));
  min-height: 100vh;
  max-width: 100%;
  overflow-x: hidden;
}

/* Modern Cards */
.card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  margin-bottom: var(--space-lg);
  box-shadow: var(--card-shadow);
  border: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.card--interactive {
  cursor: pointer;
}

.card--interactive:active {
  transform: scale(0.98);
  box-shadow: var(--elevation-2);
}

.card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.card__title {
  color: var(--on-surface);
  margin: 0;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.card__actions {
  display: flex;
  gap: var(--space-sm);
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.stat-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  text-align: center;
  box-shadow: var(--card-shadow);
  border: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.stat-card:active {
  transform: scale(0.98);
  background: var(--surface-variant);
}

.stat-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  font-size: 1.25rem;
  color: white;
  box-shadow: var(--elevation-1);
}

.stat-card__icon--primary {
  background: #1a73e8;
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 8px rgba(26, 115, 232, 0.2);
}

.stat-card__icon--accent {
  background: #4285f4;
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 8px rgba(66, 133, 244, 0.2);
}

.stat-card__icon--success {
  background: #34a853;
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 8px rgba(52, 168, 83, 0.2);
}

.stat-card__icon--warning {
  background: #fbbc04;
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 8px rgba(251, 188, 4, 0.2);
}

.stat-card__icon--error {
  background: #ea4335;
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 8px rgba(234, 67, 53, 0.2);
}

.stat-card__value {
  font-size: var(--title-large);
  font-weight: 700;
  color: var(--on-surface);
  margin-bottom: var(--space-xs);
}

.stat-card__label {
  font-size: var(--body-small);
  color: var(--on-surface-variant);
  font-weight: 500;
}

/* Modern Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  border: none;
  border-radius: var(--radius-full);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  font-size: var(--body-large);
  transition: var(--transition-fast);
  min-height: 48px;
  touch-action: manipulation;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(188, 224, 245, 0.938);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:active::before {
  width: 300px;
  height: 300px;
}

.btn--primary {
  background: linear-gradient(135deg, #1a73e8, #4285f4);
  color: var(--on-primary);
  box-shadow: var(--button-shadow);
  border: none;
  position: relative;
  overflow: hidden;
}

.btn--primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn--primary:hover::after {
  left: 100%;
}

.btn--primary:active {
  transform: scale(0.98);
  box-shadow: var(--elevation-4);
}

.btn--accent {
  background: linear-gradient(135deg, #4285f4, #1a73e8);
  color: white;
  box-shadow: var(--elevation-1);
}

.btn--accent:active {
  transform: scale(0.98);
}

.btn--secondary {
  background: var(--secondary-container);
  color: var(--on-secondary);
}

.btn--outlined {
  background: rgba(255, 255, 255, 0.8);
  color: #1a73e8;
  border: 2px solid #1a73e8;
  backdrop-filter: blur(10px);
}

.btn--outlined:active {
  background: rgba(26, 115, 232, 0.1);
  box-shadow: var(--elevation-2);
  transform: scale(0.98);
}

.btn--elevated {
  background: rgba(255, 255, 255, 0.95);
  color: #1a73e8;
  box-shadow: var(--button-shadow);
  border: 1px solid rgba(26, 115, 232, 0.2);
  backdrop-filter: blur(10px);
}

.btn--elevated:active {
  box-shadow: var(--elevation-4);
  background: rgba(255, 255, 255, 1);
  transform: scale(0.98);
}

.btn--full-width {
  width: 100%;
}

.btn-sm {
  padding: var(--space-sm) var(--space-md);
  font-size: var(--body-medium);
  min-height: 36px;
}

.btn-lg {
  padding: var(--space-lg) var(--space-xl);
  font-size: var(--title-medium);
  min-height: 56px;
}

/* Form Elements */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  margin-bottom: var(--space-sm);
  color: var(--on-surface);
  font-weight: 600;
  font-size: var(--body-large);
}

.form-control {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  border: 1px solid var(--outline);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--on-surface);
  font-size: var(--body-large);
  transition: var(--transition-fast);
  min-height: 56px;
}

.form-control:focus {
  outline: none;
  border-color: #1a73e8;
  box-shadow: 0 0 0 3px #e8f0fe;
  border-radius: var(--radius-lg);
}

.form-control::placeholder {
  color: var(--on-surface-variant);
}

/* List Items */
.list {
  list-style: none;
}

.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--outline-variant);
  transition: var(--transition-fast);
}

.list-item:last-child {
  border-bottom: none;
}

.list-item--interactive:active {
  background: var(--primary-container);
  transform: scale(0.98);
  border-radius: var(--radius-md);
  margin: 0 calc(-1 * var(--space-md));
  padding: var(--space-md);
}

.list-item__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e8f0fe;
  color: #1a73e8;
  margin-right: var(--space-md);
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(26, 115, 232, 0.1);
}

.list-item__content {
  flex: 1;
}

.list-item__title {
  color: var(--on-surface);
  font-weight: 600;
  margin-bottom: var(--space-xs);
  font-size: var(--body-large);
}

.list-item__subtitle {
  color: var(--on-surface-variant);
  font-size: var(--body-small);
}

.list-item__action {
  color: var(--on-surface-variant);
  font-weight: 600;
}

/* Alerts & Notifications */
.alert {
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  border: 1px solid transparent;
}

.alert__icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 2px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
}

.alert--success {
  background: var(--success-container);
  border-color: var(--success);
  color: var(--success);
}

.alert--error {
  background: var(--error-container);
  border-color: var(--error);
  color: var(--error);
}

.alert--warning {
  background: var(--warning-container);
  border-color: var(--warning);
  color: var(--warning);
}

.alert--info {
  background: var(--info-container);
  border-color: var(--info);
  color: var(--info);
}

/* Loading States */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-radius: 50%;
  border-top-color: currentColor;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Progress Bars */
.progress {
  background: var(--surface-variant);
  border-radius: var(--radius-full);
  overflow: hidden;
  height: 8px;
}

.progress__bar {
  height: 100%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}

.progress__bar--accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
}

.progress__bar--success {
  background: linear-gradient(135deg, var(--success), #059669);
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.flex { display: flex; }
.flex-column { flex-direction: column; }
.flex-center { justify-content: center; align-items: center; }
.flex-between { justify-content: space-between; }
.flex-around { justify-content: space-around; }

.gap-xs { gap: var(--space-xs); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

.mt-xs { margin-top: var(--space-xs); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }

.mb-xs { margin-bottom: var(--space-xs); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }

.p-xs { padding: var(--space-xs); }
.p-sm { padding: var(--space-sm); }
.p-md { padding: var(--space-md); }
.p-lg { padding: var(--space-lg); }

.w-full { width: 100%; }
.h-full { height: 100%; }

/* Flat Icon Styles */
.icon-flat {
  background: #e8f0fe;
  color: #1a73e8;
  border-radius: var(--radius-lg);
  padding: var(--space-sm);
  box-shadow: 0 1px 4px rgba(26, 115, 232, 0.1);
  transition: var(--transition-fast);
}

.icon-container {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(26, 115, 232, 0.1);
  color: #1a73e8;
  border-radius: var(--radius-lg);
  font-size: 1.25rem;
  box-shadow: 0 2px 8px rgba(26, 115, 232, 0.15);
  transition: var(--transition-fast);
  border: 1px solid rgba(26, 115, 232, 0.2);
}

.icon-container--large {
  width: 64px;
  height: 64px;
  font-size: 1.5rem;
}

.icon-flat:hover {
  background: #1a73e8;
  color: white;
  box-shadow: 0 2px 8px rgba(26, 115, 232, 0.2);
}

.icon-flat--success {
  background: #e8f5e8;
  color: #34a853;
}

.icon-flat--warning {
  background: #fef7e0;
  color: #fbbc04;
}

.icon-flat--error {
  background: #fce8e6;
  color: #ea4335;
}

/* Brand Specific Styles */
.tonycomm-badge {
  background: #1a73e8;
  color: white;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-full);
  font-size: var(--label-small);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(26, 115, 232, 0.2);
}

.tonycomm-tagline {
  color: var(--primary);
  font-weight: 600;
  font-size: var(--body-large);
}

.tonycomm-mission {
  color: var(--on-surface-variant);
  font-style: italic;
  font-size: var(--body-small);
}

/* Responsive Design */
@media (max-width: 768px) {
  .main-content {
    padding: calc(var(--header-height) + var(--space-sm)) var(--space-md) calc(var(--bottom-nav-height) + var(--space-md));
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }
  
  .card {
    padding: var(--space-md);
  }
  
  /* No brand text for mobile header */
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .main-content {
    padding: calc(var(--header-height) + var(--space-xs)) var(--space-sm) calc(var(--bottom-nav-height) + var(--space-sm));
  }
  
  .app-header {
    padding: 0 var(--space-sm);
  }
  
  .header-logo-img {
    width: 28px;
    height: 28px;
  }
}

/* PWA Styles */
@media (display-mode: standalone) {
  .app-header {
    padding-top: env(safe-area-inset-top);
  }
  
  .bottom-nav {
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* Sidebar Branding - Fixed */
.sidebar-brand {
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
}

.sidebar-brand .brand-logo {
  justify-content: center;
  color: white;
}

.sidebar-brand .brand-logo__img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.sidebar-brand .brand-logo__text {
  color: white;
  font-size: 1.25rem;
  font-weight: 700;
}

/* Ensure sidebar logo is properly styled */
.sidebar .brand-logo__img {
  filter: brightness(1.1);
}

/* Page Header Component */
.page-header {
  margin-bottom: var(--space-lg);
  text-align: center;
}

.page-header h1 {
  color: var(--on-surface);
  margin-bottom: var(--space-sm);
}

.page-header p {
  color: var(--on-surface-variant);
}

/* Text Color Utilities */
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-error { color: var(--error); }
.text-on-surface { color: var(--on-surface); }
.text-on-surface-variant { color: var(--on-surface-variant); }

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

.slide-up {
  animation: slideUp 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { 
    opacity: 0;
    transform: translateY(20px);
  }
  to { 
    opacity: 1;
    transform: translateY(0);
  }
}