/* ECitySoft Design Token System */
:root {
  /* ===== COLOR SYSTEM ===== */
  /* Primary Colors */
  --color-primary: #0ea5e9;
  --color-primary-foreground: #ffffff;
  --color-accent: #06b6d4;
  --color-accent-foreground: #ffffff;
  
  /* Semantic Colors */
  --color-foreground: #0f172a;
  --color-background: #ffffff;
  --color-muted: #f8fafc;
  --color-muted-foreground: #64748b;
  --color-border: #e2e8f0;
  --color-ring: #0ea5e9;
  
  /* Status Colors */
  --color-success: #22c55e;
  --color-success-foreground: #ffffff;
  --color-warning: #f59e0b;
  --color-warning-foreground: #ffffff;
  --color-error: #ef4444;
  --color-error-foreground: #ffffff;
  --color-info: #3b82f6;
  --color-info-foreground: #ffffff;
  
  /* ===== SPACING SYSTEM ===== */
  --space-xs: 0.25rem;    /* 4px */
  --space-sm: 0.5rem;     /* 8px */
  --space-md: 1rem;       /* 16px */
  --space-lg: 1.5rem;     /* 24px */
  --space-xl: 2rem;       /* 32px */
  --space-2xl: 3rem;      /* 48px */
  --space-3xl: 4rem;      /* 64px */
  --space-4xl: 6rem;      /* 96px */
  
  /* Component Specific Spacing */
  --space-section: var(--space-2xl);      /* 48px - between major sections */
  --space-subsection: var(--space-xl);    /* 32px - between subsections */
  --space-component: var(--space-lg);     /* 24px - between components */
  --space-element: var(--space-md);       /* 16px - between elements */
  --space-small: var(--space-sm);         /* 8px - small gaps */
  
  /* ===== TYPOGRAPHY SYSTEM ===== */
  /* Font Sizes */
  --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 */
  --text-5xl: 3rem;       /* 48px */
  --text-6xl: 3.75rem;    /* 60px */
  
  /* Font Weights */
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  
  /* Line Heights */
  --leading-tight: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  
  /* ===== COMPONENT TOKENS ===== */
  /* Border Radius */
  --radius-sm: 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;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  
  /* Glass Effect */
  --glass-background: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-backdrop-filter: blur(12px);
  
  /* ===== ANIMATION TOKENS ===== */
  --transition-fast: 150ms ease-in-out;
  --transition-normal: 200ms ease-in-out;
  --transition-slow: 300ms ease-in-out;
  
  /* ===== BREAKPOINTS (for reference) ===== */
  /* sm: 640px */
  /* md: 768px */
  /* lg: 1024px */
  /* xl: 1280px */
  /* 2xl: 1536px */
}

/* ===== UTILITY CLASSES ===== */

/* Remove focus outline from headings and spans */
h1, h2, h3, h4, h5, h6, span {
  outline: none !important;
}

h1:focus, h2:focus, h3:focus, h4:focus, h5:focus, h6:focus, span:focus {
  outline: none !important;
  box-shadow: none !important;
}
/* Spacing Utilities */
.space-section { margin-bottom: var(--space-section); }
.space-subsection { margin-bottom: var(--space-subsection); }
.space-component { margin-bottom: var(--space-component); }
.space-element { margin-bottom: var(--space-element); }
.space-small { margin-bottom: var(--space-small); }

/* Typography Utilities */
.heading-primary {
  font-size: var(--text-4xl);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  color: var(--color-foreground);
}

.heading-secondary {
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  color: var(--color-foreground);
}

.heading-tertiary {
  font-size: var(--text-2xl);
  font-weight: var(--font-semibold);
  line-height: var(--leading-tight);
  color: var(--color-foreground);
}

.text-body {
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-foreground);
}

.text-muted {
  color: var(--color-muted-foreground);
}

/* Component Utilities */
.glass-card {
  background: var(--glass-background);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-backdrop-filter);
  border-radius: var(--radius-xl);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--color-primary);
  color: var(--color-primary-foreground);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-md);
  font-weight: var(--font-medium);
  font-size: var(--text-sm);
  text-decoration: none;
  transition: all var(--transition-normal);
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary:hover {
  background-color: color-mix(in srgb, var(--color-primary) 90%, black);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: transparent;
  color: var(--color-foreground);
  padding: var(--space-sm) var(--space-lg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-weight: var(--font-medium);
  font-size: var(--text-sm);
  text-decoration: none;
  transition: all var(--transition-normal);
  cursor: pointer;
  white-space: nowrap;
}

.btn-secondary:hover {
  background-color: var(--color-muted);
  border-color: var(--color-accent);
}

/* Status Utilities */
.status-success {
  background-color: color-mix(in srgb, var(--color-success) 10%, transparent);
  color: var(--color-success);
  border: 1px solid color-mix(in srgb, var(--color-success) 30%, transparent);
}

.status-warning {
  background-color: color-mix(in srgb, var(--color-warning) 10%, transparent);
  color: var(--color-warning);
  border: 1px solid color-mix(in srgb, var(--color-warning) 30%, transparent);
}

.status-error {
  background-color: color-mix(in srgb, var(--color-error) 10%, transparent);
  color: var(--color-error);
  border: 1px solid color-mix(in srgb, var(--color-error) 30%, transparent);
}

.status-info {
  background-color: color-mix(in srgb, var(--color-info) 10%, transparent);
  color: var(--color-info);
  border: 1px solid color-mix(in srgb, var(--color-info) 30%, transparent);
}

/* Icon Container Standardization */
.icon-container {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xl);
  transition: transform var(--transition-normal);
}

.icon-container:hover {
  transform: scale(1.1);
}

.icon-container-sm {
  width: 2rem;
  height: 2rem;
}

.icon-container-md {
  width: 3rem;
  height: 3rem;
}

.icon-container-lg {
  width: 4rem;
  height: 4rem;
}

/* Responsive Typography */
@media (min-width: 640px) {
  .heading-primary {
    font-size: var(--text-5xl);
  }
  
  .heading-secondary {
    font-size: var(--text-4xl);
  }
}

@media (min-width: 1024px) {
  .heading-primary {
    font-size: var(--text-6xl);
  }
}

/* Form button specific styles - Force visibility */
button[type="submit"].btn-primary {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  z-index: 999 !important;
  min-height: 48px;
  background-color: var(--color-primary) !important;
  color: var(--color-primary-foreground) !important;
  pointer-events: auto !important;
}

button[type="submit"].btn-primary:hover {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  background-color: color-mix(in srgb, var(--color-primary) 90%, black) !important;
}

button[type="submit"].btn-primary:disabled {
  display: flex !important;
  visibility: visible !important;
  opacity: 0.7 !important;
  cursor: not-allowed;
  background-color: var(--color-primary) !important;
  color: var(--color-primary-foreground) !important;
}

/* Additional form button visibility fixes */
form button, form input[type="submit"] {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.glass-card form button {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  z-index: 999 !important;
}