/* ========================================
   AI Prompt Optimizer - Modern Material Design CSS
   Responsive, Cross-Platform, Accessible
   ======================================== */

/* ========================================
   CSS CUSTOM PROPERTIES (VARIABLES)
   ======================================== */
:root {
  /* Material Design Color Palette */
  --primary-50: #e3f2fd;
  --primary-100: #bbdefb;
  --primary-200: #90caf9;
  --primary-300: #64b5f6;
  --primary-400: #42a5f5;
  --primary-500: #2196f3;
  --primary-600: #1e88e5;
  --primary-700: #1976d2;
  --primary-800: #1565c0;
  --primary-900: #0d47a1;
  
  --secondary-50: #f3e5f5;
  --secondary-100: #e1bee7;
  --secondary-200: #ce93d8;
  --secondary-300: #ba68c8;
  --secondary-400: #ab47bc;
  --secondary-500: #9c27b0;
  --secondary-600: #8e24aa;
  --secondary-700: #7b1fa2;
  --secondary-800: #6a1b9a;
  --secondary-900: #4a148c;
  
  /* Neutral Colors */
  --neutral-50: #fafafa;
  --neutral-100: #f5f5f5;
  --neutral-200: #eeeeee;
  --neutral-300: #e0e0e0;
  --neutral-400: #bdbdbd;
  --neutral-500: #9e9e9e;
  --neutral-600: #757575;
  --neutral-700: #616161;
  --neutral-800: #424242;
  --neutral-900: #212121;
  
  /* Semantic Colors */
  --success-500: #4caf50;
  --success-600: #43a047;
  --success-700: #388e3c;
  --warning-500: #ff9800;
  --warning-600: #fb8c00;
  --warning-700: #f57c00;
  --error-500: #f44336;
  --error-600: #e53935;
  --error-700: #d32f2f;
  
  /* Dark Mode Colors */
  --dark-bg-primary: #121212;
  --dark-bg-secondary: #1e1e1e;
  --dark-bg-tertiary: #2d2d2d;
  --dark-surface: #1e1e1e;
  --dark-surface-variant: #2d2d2d;
  --dark-on-surface: #ffffff;
  --dark-on-surface-variant: #b3b3b3;
  
  /* Typography */
  --font-family-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  --font-family-mono: 'JetBrains Mono', 'Fira Code', 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  
  /* Font Sizes - Fluid Typography */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
  --text-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.625vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --text-3xl: clamp(1.875rem, 1.5rem + 1.875vw, 2.5rem);
  --text-4xl: clamp(2.25rem, 1.8rem + 2.25vw, 3rem);
  
  /* Spacing Scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  
  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-normal: 250ms ease-in-out;
  --transition-slow: 350ms ease-in-out;
  
  /* Z-Index Scale */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
  --z-toast: 1080;
}

/* Dark Mode Variables */
[data-theme="dark"] {
  --primary-500: #90caf9;
  --primary-600: #64b5f6;
  --primary-700: #42a5f5;
  --secondary-500: #ce93d8;
  --secondary-600: #ba68c8;
  --secondary-700: #ab47bc;
  --neutral-50: #121212;
  --neutral-100: #1e1e1e;
  --neutral-200: #2d2d2d;
  --neutral-300: #424242;
  --neutral-400: #616161;
  --neutral-500: #757575;
  --neutral-600: #9e9e9e;
  --neutral-700: #bdbdbd;
  --neutral-800: #e0e0e0;
  --neutral-900: #f5f5f5;
}

/* ========================================
   RESET & BASE STYLES
   ======================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family-primary);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--neutral-800);
  background: linear-gradient(135deg, var(--primary-500) 0%, var(--secondary-500) 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ========================================
   LAYOUT COMPONENTS
   ======================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-4);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Responsive Container */
@media (min-width: 640px) {
  .container {
    padding: var(--space-6);
  }
}

@media (min-width: 1024px) {
  .container {
    padding: var(--space-8);
  }
}

/* ========================================
   HEADER COMPONENT
   ======================================== */
.header {
  text-align: center;
  margin-bottom: var(--space-8);
  color: white;
  position: relative;
}

.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, transparent, white, transparent);
  border-radius: var(--radius-full);
}

.header h1 {
  font-size: var(--text-4xl);
  font-weight: 700;
  margin-bottom: var(--space-3);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.025em;
}

.header p {
  font-size: var(--text-lg);
  opacity: 0.9;
  font-weight: 400;
  max-width: 600px;
  margin: 0 auto;
}

/* ========================================
   PROGRESS COMPONENT
   ======================================== */
.progress-container {
  background: white;
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  margin-bottom: var(--space-8);
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

.progress-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-500), var(--secondary-500));
}

.progress-bar {
  width: 100%;
  height: 12px;
  background: var(--neutral-200);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: var(--space-4);
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-500), var(--secondary-500));
  border-radius: var(--radius-full);
  transition: width var(--transition-normal);
  width: 20%;
  position: relative;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.progress-text {
  font-size: var(--text-sm);
  color: var(--neutral-600);
  font-weight: 500;
  text-align: center;
}

/* ========================================
   QUESTION CONTAINER
   ======================================== */
.question-container {
  background: white;
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  margin-bottom: var(--space-8);
  box-shadow: var(--shadow-xl);
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.question-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-500), var(--secondary-500));
}

.question-title {
  font-size: var(--text-2xl);
  font-weight: 600;
  margin-bottom: var(--space-4);
  color: var(--neutral-800);
  line-height: 1.3;
}

.question-description {
  font-size: var(--text-base);
  color: var(--neutral-600);
  margin-bottom: var(--space-6);
  line-height: 1.6;
}

/* ========================================
   FORM COMPONENTS
   ======================================== */
.form-group {
  margin-bottom: var(--space-6);
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: var(--space-2);
  color: var(--neutral-800);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: var(--space-4);
  border: 2px solid var(--neutral-300);
  border-radius: var(--radius-lg);
  font-size: var(--text-base);
  transition: all var(--transition-fast);
  font-family: inherit;
  background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
  transform: translateY(-1px);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
  font-family: var(--font-family-mono);
}

/* ========================================
   RADIO & CHECKBOX GROUPS
   ======================================== */
.radio-group,
.checkbox-group {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .radio-group,
  .checkbox-group {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

.radio-item,
.checkbox-item {
  display: flex;
  align-items: flex-start;
  padding: var(--space-4);
  border: 2px solid var(--neutral-300);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
  background: white;
  position: relative;
  overflow: hidden;
}

.radio-item:hover,
.checkbox-item:hover {
  border-color: var(--primary-300);
  background: var(--primary-50);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.radio-item.selected,
.checkbox-item.selected {
  border-color: var(--primary-500);
  background: var(--primary-50);
  box-shadow: var(--shadow-lg);
}

.radio-item input[type="radio"],
.checkbox-item input[type="checkbox"] {
  margin-right: var(--space-3);
  margin-top: 2px;
  width: 20px;
  height: 20px;
  accent-color: var(--primary-500);
}

.radio-item label,
.checkbox-item label {
  flex: 1;
  cursor: pointer;
  margin: 0;
  font-weight: 500;
  color: var(--neutral-800);
}

.radio-item label strong,
.checkbox-item label strong {
  display: block;
  font-size: var(--text-base);
  margin-bottom: var(--space-1);
}

.radio-item label small,
.checkbox-item label small {
  display: block;
  font-size: var(--text-sm);
  color: var(--neutral-600);
  line-height: 1.4;
}

/* ========================================
   BUTTON COMPONENTS
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border: none;
  border-radius: var(--radius-lg);
  font-size: var(--text-base);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  min-height: 48px;
  font-family: inherit;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.btn:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn:not(:disabled):active {
  transform: translateY(0);
}

/* Button Variants */
.btn-primary {
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
  box-shadow: var(--shadow-xl);
}

.btn-secondary {
  background: var(--neutral-100);
  color: var(--neutral-800);
  border: 2px solid var(--neutral-300);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--neutral-200);
  border-color: var(--neutral-400);
}

.btn-success {
  background: linear-gradient(135deg, var(--success-500), var(--success-600));
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-success:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--success-600), var(--success-700));
  box-shadow: var(--shadow-xl);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-500);
  color: var(--primary-500);
}

.btn-outline:hover:not(:disabled) {
  background: var(--primary-500);
  color: white;
}

/* ========================================
   NAVIGATION COMPONENT
   ======================================== */
.navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-8);
  gap: var(--space-4);
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .navigation {
    flex-direction: column;
    gap: var(--space-3);
  }
  
  .btn {
    width: 100%;
  }
}

/* ========================================
   RESULT CONTAINER
   ======================================== */
.result-container {
  background: white;
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-xl);
  margin-bottom: var(--space-8);
  position: relative;
  overflow: hidden;
}

.result-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--success-500), var(--primary-500));
}

.result-container h2 {
  font-size: var(--text-2xl);
  font-weight: 600;
  margin-bottom: var(--space-6);
  color: var(--neutral-800);
  text-align: center;
}

.prompt-output {
  margin-bottom: var(--space-8);
}

.prompt-output textarea {
  width: 100%;
  min-height: 200px;
  padding: var(--space-6);
  border: 2px solid var(--neutral-300);
  border-radius: var(--radius-lg);
  font-family: var(--font-family-mono);
  font-size: var(--text-sm);
  line-height: 1.6;
  resize: vertical;
  background: var(--neutral-50);
  transition: all var(--transition-fast);
}

.prompt-output textarea:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
  background: white;
}

.prompt-output button {
  margin-top: var(--space-4);
  width: 100%;
}

/* ========================================
   AI TIPS COMPONENT
   ======================================== */
.ai-tips {
  background: var(--primary-50);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  border-left: 4px solid var(--primary-500);
  margin-bottom: var(--space-8);
}

.ai-tips h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-4);
  color: var(--neutral-800);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.ai-tips ul {
  list-style: none;
  padding: 0;
}

.ai-tips li {
  padding: var(--space-2) 0;
  padding-left: var(--space-6);
  position: relative;
  color: var(--neutral-700);
  line-height: 1.6;
}

.ai-tips li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success-500);
  font-weight: bold;
  font-size: var(--text-lg);
}

/* ========================================
   RESULT ACTIONS
   ======================================== */
.result-actions {
  text-align: center;
  padding-top: var(--space-6);
  border-top: 1px solid var(--neutral-200);
}

/* ========================================
   FOOTER COMPONENT
   ======================================== */
.footer {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding: var(--space-6) 0;
  margin-top: auto;
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.footer-content p {
  margin: var(--space-1) 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--text-sm);
}

.footer-content a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.footer-content a:hover {
  color: var(--primary-200);
  text-decoration: underline;
}

/* ========================================
   DARK MODE TOGGLE
   ======================================== */
.theme-toggle {
  position: fixed;
  top: var(--space-4);
  right: var(--space-4);
  z-index: var(--z-fixed);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: none;
  border-radius: var(--radius-full);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-lg);
}

.theme-toggle:hover {
  background: white;
  transform: scale(1.1);
}

[data-theme="dark"] .theme-toggle {
  background: rgba(30, 30, 30, 0.9);
  color: white;
}

[data-theme="dark"] .theme-toggle:hover {
  background: var(--dark-bg-secondary);
}

/* ========================================
   DARK MODE STYLES
   ======================================== */
[data-theme="dark"] {
  background: linear-gradient(135deg, var(--dark-bg-primary) 0%, var(--dark-bg-secondary) 100%);
}

[data-theme="dark"] .progress-container,
[data-theme="dark"] .question-container,
[data-theme="dark"] .result-container {
  background: var(--dark-surface);
  color: var(--dark-on-surface);
}

[data-theme="dark"] .question-title {
  color: var(--dark-on-surface);
}

[data-theme="dark"] .question-description {
  color: var(--dark-on-surface-variant);
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group select,
[data-theme="dark"] .form-group textarea {
  background: var(--dark-surface-variant);
  border-color: var(--neutral-600);
  color: var(--dark-on-surface);
}

[data-theme="dark"] .radio-item,
[data-theme="dark"] .checkbox-item {
  background: var(--dark-surface-variant);
  border-color: var(--neutral-600);
  color: var(--dark-on-surface);
}

[data-theme="dark"] .radio-item:hover,
[data-theme="dark"] .checkbox-item:hover {
  background: var(--primary-900);
  border-color: var(--primary-600);
}

[data-theme="dark"] .prompt-output textarea {
  background: var(--dark-surface-variant);
  border-color: var(--neutral-600);
  color: var(--dark-on-surface);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Mobile First - Base styles above are mobile-first */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  .container {
    padding: var(--space-6);
  }
  
  .header h1 {
    font-size: var(--text-4xl);
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .container {
    padding: var(--space-8);
  }
  
  .header h1 {
    font-size: var(--text-4xl);
  }
  
  .question-container {
    padding: var(--space-10);
  }
  
  .progress-container {
    padding: var(--space-8);
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .container {
    padding: var(--space-10);
  }
  
  .header h1 {
    font-size: var(--text-4xl);
  }
  
  .radio-group,
  .checkbox-group {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    padding: var(--space-12);
  }
  
  .radio-group,
  .checkbox-group {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ========================================
   ANIMATIONS & MICRO-INTERACTIONS
   ======================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

.question-container {
  animation: fadeInUp 0.6s ease-out;
}

.btn {
  animation: fadeIn 0.3s ease-out;
}

.progress-container {
  animation: slideInRight 0.5s ease-out;
}

/* ========================================
   LOADING STATES
   ======================================== */
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--neutral-200);
  border-top: 4px solid var(--primary-500);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ========================================
   ACCESSIBILITY IMPROVEMENTS
   ======================================== */

/* Focus indicators */
*:focus {
  outline: 2px solid var(--primary-500);
  outline-offset: 2px;
}

/* Skip to content link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-500);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: var(--z-tooltip);
}

.skip-link:focus {
  top: 6px;
}

/* Screen reader only content */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary-500: #0066cc;
    --secondary-500: #6600cc;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
  .theme-toggle,
  .navigation,
  .footer {
    display: none;
  }
  
  .container {
    max-width: none;
    padding: 0;
  }
  
  .question-container,
  .result-container {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}

/* ========================================
   TOAST NOTIFICATIONS
   ======================================== */
.toast-container {
    position: fixed;
    top: var(--space-4);
    right: var(--space-4);
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    max-width: 400px;
}

.toast {
    background: white;
    border: 1px solid var(--neutral-300);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    box-shadow: var(--shadow-xl);
    transform: translateX(100%);
    transition: transform var(--transition-normal);
    font-size: var(--text-sm);
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.toast::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-500);
}

.toast-show {
    transform: translateX(0);
}

.toast-success {
    border-left-color: var(--success-500);
    color: var(--success-700);
}

.toast-success::before {
    background: var(--success-500);
}

.toast-error {
    border-left-color: var(--error-500);
    color: var(--error-700);
}

.toast-error::before {
    background: var(--error-500);
}

.toast-info {
    border-left-color: var(--primary-500);
    color: var(--primary-700);
}

.toast-info::before {
    background: var(--primary-500);
}

[data-theme="dark"] .toast {
    background: var(--dark-surface);
    border-color: var(--neutral-600);
    color: var(--dark-on-surface);
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.mt-0 { margin-top: 0; }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.grid { display: grid; }

.w-full { width: 100%; }
.h-full { height: 100%; }

.opacity-0 { opacity: 0; }
.opacity-50 { opacity: 0.5; }
.opacity-100 { opacity: 1; }

.pointer-events-none { pointer-events: none; }
.pointer-events-auto { pointer-events: auto; }
