/* ===== PROFESYONEL UI/UX TASARIM ===== */

/* CSS Variables - Design System */
:root {
  /* Color Palette - Blue-based as per user preference */
  --primary-50: #f0f4ff;
  --primary-100: #e0e7ff;
  --primary-200: #c7d2fe;
  --primary-300: #a5b4fc;
  --primary-400: #818cf8;
  --primary-500: #6366f1;
  --primary-600: #4f46e5;
  --primary-700: #4338ca;
  --primary-800: #3730a3;
  --primary-900: #312e81;
  
  --secondary-50: #f0f9ff;
  --secondary-100: #e0f2fe;
  --secondary-200: #bae6fd;
  --secondary-300: #7dd3fc;
  --secondary-400: #38bdf8;
  --secondary-500: #0ea5e9;
  --secondary-600: #0284c7;
  --secondary-700: #0369a1;
  --secondary-800: #075985;
  --secondary-900: #0c4a6e;
  
  --success-50: #f0fdf4;
  --success-100: #dcfce7;
  --success-200: #bbf7d0;
  --success-300: #86efac;
  --success-400: #4ade80;
  --success-500: #22c55e;
  --success-600: #16a34a;
  --success-700: #15803d;
  --success-800: #166534;
  --success-900: #14532d;
  
  --warning-50: #fffbeb;
  --warning-100: #fef3c7;
  --warning-200: #fde68a;
  --warning-300: #fcd34d;
  --warning-400: #fbbf24;
  --warning-500: #f59e0b;
  --warning-600: #d97706;
  --warning-700: #b45309;
  --warning-800: #92400e;
  --warning-900: #78350f;
  
  --error-50: #fef2f2;
  --error-100: #fee2e2;
  --error-200: #fecaca;
  --error-300: #fca5a5;
  --error-400: #f87171;
  --error-500: #ef4444;
  --error-600: #dc2626;
  --error-700: #b91c1c;
  --error-800: #991b1b;
  --error-900: #7f1d1d;
  
  --neutral-50: #fafafa;
  --neutral-100: #f5f5f5;
  --neutral-200: #e5e5e5;
  --neutral-300: #d4d4d4;
  --neutral-400: #a3a3a3;
  --neutral-500: #737373;
  --neutral-600: #525252;
  --neutral-700: #404040;
  --neutral-800: #262626;
  --neutral-900: #171717;
  
  /* Typography Scale */
  --font-size-xs: 0.75rem;    /* 12px */
  --font-size-sm: 0.875rem;   /* 14px */
  --font-size-base: 1rem;     /* 16px */
  --font-size-lg: 1.125rem;   /* 18px */
  --font-size-xl: 1.25rem;    /* 20px */
  --font-size-2xl: 1.5rem;    /* 24px */
  --font-size-3xl: 1.875rem;  /* 30px */
  --font-size-4xl: 2.25rem;   /* 36px */
  --font-size-5xl: 3rem;      /* 48px */
  
  /* Spacing Scale */
  --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 */
  --space-20: 5rem;     /* 80px */
  
  /* 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-3xl: 2rem;      /* 32px */
  
  /* 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);
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
  
  /* 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;
}

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

/* ===== TEXT SELECTION RESTRICTION ===== */
* {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

/* Allow text selection only for specific elements */
input, textarea, select, .filename-display {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}

/* Allow text selection for form labels and hints */
.form-group label, .hint, .assets-hint {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}

/* Prevent text selection on buttons and interactive elements */
button, .btn, .file-btn, .assets-btn, .generate-btn, .download-btn, .new-btn, .retry-btn {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

/* Prevent text selection on headers and titles */
header, h1, h2, h3, h4, h5, h6 {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

/* Prevent text selection on upload area */
.upload-area, .upload-content, .upload-icon {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--neutral-700);
  background: linear-gradient(135deg, var(--primary-600) 0%, var(--secondary-600) 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: 64px;
}

/* ===== LAYOUT & CONTAINER ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-6);
  position: relative;
  min-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 768px) {
  .container {
    padding: var(--space-4);
  }
  
  body {
    padding-top: 56px;
  }
}

/* ===== APP BAR ===== */
.app-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-fixed);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-lg);
}

.app-bar-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-4) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.app-bar-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.app-bar-icon {
  font-size: var(--font-size-xl);
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-bar-icon img {
  border-radius: var(--radius-sm);
  object-fit: contain;
}

.app-bar-title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--neutral-800);
  letter-spacing: -0.025em;
}

.app-bar-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.app-bar-link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  background: var(--primary-100);
  color: var(--primary-700);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--font-size-sm);
  transition: all var(--transition-normal);
  border: 1px solid var(--primary-200);
  min-height: 40px;
}

.app-bar-link:hover {
  background: var(--primary-200);
  color: var(--primary-800);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.app-bar-link-icon {
  font-size: var(--font-size-base);
}

.app-bar-link-icon img {
  border-radius: var(--radius-sm);
  object-fit: contain;
}

.app-bar-link-text {
  font-size: var(--font-size-sm);
  font-weight: 600;
}

/* App bar responsive */
@media (max-width: 768px) {
  .app-bar-content {
    padding: var(--space-3) var(--space-4);
    min-height: 56px;
  }
  
  .app-bar-title {
    font-size: var(--font-size-base);
  }
  
  .app-bar-link-text {
    display: none;
  }
  
  .app-bar-link {
    padding: var(--space-2);
    min-width: 40px;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .app-bar-content {
    padding: var(--space-2) var(--space-3);
  }
  
  .app-bar-brand {
    gap: var(--space-2);
  }
  
  .app-bar-title {
    font-size: var(--font-size-sm);
  }
}

/* ===== HEADER SECTION ===== */
header {
  text-align: center;
  margin-bottom: var(--space-12);
  color: white;
  position: relative;
  z-index: 1;
}

header h1 {
  font-size: var(--font-size-4xl);
  font-weight: 800;
  margin-bottom: var(--space-4);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, #ffffff 0%, #f0f4ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.025em;
}

header p {
  font-size: var(--font-size-lg);
  opacity: 0.95;
  font-weight: 500;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

@media (max-width: 768px) {
  header h1 {
    font-size: var(--font-size-3xl);
  }
  
  header p {
    font-size: var(--font-size-base);
  }
}

/* ===== UPLOAD AREA ===== */
.upload-area {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-3xl);
  padding: var(--space-12);
  text-align: center;
  box-shadow: var(--shadow-2xl);
  margin-bottom: var(--space-8);
  border: 3px dashed var(--primary-200);
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upload-area:hover {
  border-color: var(--primary-400);
  transform: translateY(-4px);
  box-shadow: var(--shadow-2xl), 0 0 0 1px var(--primary-100);
}

.upload-area.dragover {
  border-color: var(--primary-500);
  background: var(--primary-50);
  transform: scale(1.01);
  box-shadow: var(--shadow-2xl), 0 0 0 4px var(--primary-200);
}

.upload-content {
  max-width: 500px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.upload-icon {
  font-size: 4rem;
  margin-bottom: var(--space-4);
  display: inline-block;
}

.upload-content h3 {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-3);
  color: var(--neutral-800);
  font-weight: 700;
}

.upload-content p {
  margin-bottom: var(--space-6);
  color: var(--neutral-600);
  font-size: var(--font-size-base);
}

/* ===== BUTTON SYSTEM ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-xl);
  font-size: var(--font-size-base);
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  min-height: 48px;
  white-space: nowrap;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
  color: white;
  box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary-500) 0%, var(--secondary-600) 100%);
  color: white;
  box-shadow: var(--shadow-lg);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, var(--secondary-600) 0%, var(--secondary-700) 100%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

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

.btn-success:hover {
  background: linear-gradient(135deg, var(--success-600) 0%, var(--success-700) 100%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.btn-danger {
  background: linear-gradient(135deg, var(--error-500) 0%, var(--error-600) 100%);
  color: white;
  box-shadow: var(--shadow-lg);
}

.btn-danger:hover {
  background: linear-gradient(135deg, var(--error-600) 0%, var(--error-700) 100%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

/* ===== FORM SYSTEM ===== */
.form-section {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-3xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-2xl);
  margin-bottom: var(--space-8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  min-height: 50vh;
}

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

.form-section h2 {
  text-align: center;
  margin-bottom: var(--space-6);
  color: var(--neutral-800);
  font-size: var(--font-size-2xl);
  font-weight: 700;
  position: relative;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-5);
  margin-bottom: var(--space-5);
}

.form-group {
  margin-bottom: var(--space-5);
}

.form-group label {
  display: block;
  margin-bottom: var(--space-2);
  font-weight: 600;
  color: var(--neutral-700);
  font-size: var(--font-size-sm);
}

.optional-text {
  color: var(--neutral-500);
  font-size: var(--font-size-xs);
  font-weight: 400;
  font-style: italic;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: var(--space-3);
  border: 2px solid var(--neutral-200);
  border-radius: var(--radius-lg);
  font-size: var(--font-size-base);
  transition: all var(--transition-normal);
  background: white;
  color: var(--neutral-800);
}

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

.form-group input:hover,
.form-group select:hover {
  border-color: var(--primary-300);
}

/* ===== FILENAME PREVIEW ===== */
.filename-preview {
  background: linear-gradient(135deg, var(--primary-50) 0%, var(--secondary-50) 100%);
  border-radius: var(--radius-2xl);
  padding: var(--space-5);
  margin: var(--space-5) 0;
  text-align: center;
  border: 1px solid var(--primary-200);
}

.filename-preview h4 {
  margin-bottom: var(--space-3);
  color: var(--neutral-700);
  font-weight: 600;
  font-size: var(--font-size-lg);
}

.filename-display {
  background: white;
  padding: var(--space-3);
  border-radius: var(--radius-lg);
  border: 2px solid var(--primary-300);
  font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  font-size: var(--font-size-base);
  color: var(--primary-700);
  font-weight: 600;
  letter-spacing: 0.05em;
  box-shadow: var(--shadow-sm);
}

/* ===== PROGRESS SECTION ===== */
.progress-section {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-3xl);
  padding: var(--space-8);
  text-align: center;
  box-shadow: var(--shadow-2xl);
  margin-bottom: var(--space-8);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.progress-section h2 {
  margin-bottom: var(--space-5);
  color: var(--neutral-800);
  font-size: var(--font-size-2xl);
  font-weight: 700;
}

.progress-bar {
  width: 100%;
  height: 20px;
  background: var(--neutral-100);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin: var(--space-5) 0;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-500), var(--secondary-500));
  width: 0%;
  transition: width 300ms ease-out;
  position: relative;
  overflow: hidden;
}

/* ===== DOWNLOAD SECTION ===== */
.download-section {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-3xl);
  padding: var(--space-8);
  text-align: center;
  box-shadow: var(--shadow-2xl);
  margin-bottom: var(--space-8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.download-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--success-50) 0%, var(--success-100) 100%);
  opacity: 0.3;
}

.download-section h2 {
  margin-bottom: var(--space-5);
  color: var(--success-700);
  font-size: var(--font-size-2xl);
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.download-info {
  background: white;
  border-radius: var(--radius-2xl);
  padding: var(--space-5);
  margin: var(--space-5) 0;
  text-align: left;
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 1;
}

.download-info p {
  margin-bottom: var(--space-3);
  font-size: var(--font-size-base);
}

.download-info strong {
  color: var(--primary-600);
  font-weight: 600;
}

/* ===== ERROR SECTION ===== */
.error-section {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-3xl);
  padding: var(--space-8);
  text-align: center;
  box-shadow: var(--shadow-2xl);
  margin-bottom: var(--space-8);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.error-section h2 {
  margin-bottom: var(--space-5);
  color: var(--error-700);
  font-size: var(--font-size-2xl);
  font-weight: 700;
}

#errorMessage {
  background: var(--error-50);
  color: var(--error-700);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  margin: var(--space-5) 0;
  border: 1px solid var(--error-200);
  font-weight: 500;
}

/* ===== ASSETS SECTION ===== */
.assets-section {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-3xl);
  padding: var(--space-6);
  margin: var(--space-6) 0;
  box-shadow: var(--shadow-2xl);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.assets-section h3 {
  margin-bottom: var(--space-4);
  color: var(--neutral-800);
  font-size: var(--font-size-xl);
  font-weight: 600;
}

.assets-list {
  margin: var(--space-5) 0;
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  background: var(--neutral-50);
}

.assets-upload {
  text-align: center;
  padding: var(--space-5);
  border: 2px dashed var(--primary-300);
  border-radius: var(--radius-xl);
  background: var(--primary-50);
  transition: all var(--transition-normal);
}

.assets-upload:hover {
  border-color: var(--primary-500);
  background: var(--primary-100);
  transform: translateY(-2px);
}

.assets-hint {
  margin-top: var(--space-3);
  color: var(--neutral-600);
  font-size: var(--font-size-sm);
  line-height: 1.6;
}

/* Asset status styles */
.asset-status {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
  font-weight: 500;
  text-align: center;
  min-width: 80px;
}

.asset-status.success {
  background: var(--success-100);
  color: var(--success-700);
}

.asset-status.error {
  background: var(--error-100);
  color: var(--error-700);
}

.asset-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3);
  margin: var(--space-2) 0;
  background: var(--neutral-50);
  border-radius: var(--radius-sm);
  border: 1px solid var(--neutral-200);
}

.asset-name {
  flex: 1;
  font-weight: 500;
  color: var(--neutral-800);
}

.asset-size {
  font-size: var(--font-size-xs);
  color: var(--neutral-600);
  margin-left: var(--space-3);
}

/* ===== H5P SECTION ===== */
.h5p-section {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-3xl);
  padding: var(--space-6);
  margin: var(--space-6) 0;
  box-shadow: var(--shadow-2xl);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.h5p-section h3 {
  margin-bottom: var(--space-4);
  color: var(--neutral-800);
  font-size: var(--font-size-xl);
  font-weight: 600;
}

.h5p-info {
  background: var(--primary-50);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  margin-top: var(--space-4);
}

.h5p-info p {
  margin-bottom: var(--space-2);
  color: var(--neutral-700);
  font-size: var(--font-size-sm);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  .container {
    padding: var(--space-4);
  }
  
  .upload-area,
  .form-section,
  .progress-section,
  .download-section,
  .error-section {
    padding: var(--space-6);
  }
}

@media (max-width: 768px) {
  :root {
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-12: 2.5rem;
  }
  
  header h1 {
    font-size: var(--font-size-3xl);
  }
  
  header p {
    font-size: var(--font-size-base);
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  
  .upload-area {
    padding: var(--space-8);
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .upload-icon {
    font-size: 3rem;
  }
}

@media (max-width: 480px) {
  :root {
    --space-4: 1rem;
    --space-6: 1.25rem;
    --space-8: 1.5rem;
  }
  
  header h1 {
    font-size: var(--font-size-2xl);
  }
  
  header p {
    font-size: var(--font-size-sm);
  }
  
  .upload-area,
  .form-section,
  .progress-section,
  .download-section,
  .error-section {
    padding: var(--space-5);
    border-radius: var(--radius-2xl);
  }
  
  .upload-icon {
    font-size: 2.5rem;
  }
  
  .btn {
    padding: var(--space-3) var(--space-4);
    font-size: var(--font-size-sm);
  }
}

/* ===== ACCESSIBILITY & FOCUS STATES ===== */
*:focus-visible {
  outline: 2px solid var(--primary-500);
  outline-offset: 2px;
}

.btn:focus-visible {
  outline: 2px solid var(--primary-500);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}