/* ===== GLOBAL STYLES ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Professional Color Palette */
  --primary-50: #eff6ff;
  --primary-100: #dbeafe;
  --primary-200: #bfdbfe;
  --primary-300: #93c5fd;
  --primary-400: #60a5fa;
  --primary-500: #3b82f6;
  --primary-600: #2563eb;
  --primary-700: #1d4ed8;
  --primary-800: #1e40af;
  --primary-900: #1e3a8a;

  --secondary-50: #f8fafc;
  --secondary-100: #f1f5f9;
  --secondary-200: #e2e8f0;
  --secondary-300: #cbd5e1;
  --secondary-400: #94a3b8;
  --secondary-500: #64748b;
  --secondary-600: #475569;
  --secondary-700: #334155;
  --secondary-800: #1e293b;
  --secondary-900: #0f172a;

  --accent-50: #fdf4ff;
  --accent-100: #fae8ff;
  --accent-200: #f5d0fe;
  --accent-300: #f0abfc;
  --accent-400: #e879f9;
  --accent-500: #d946ef;
  --accent-600: #c026d3;
  --accent-700: #a21caf;
  --accent-800: #86198f;
  --accent-900: #701a75;

  /* Status Colors */
  --success-50: #f0fdf4;
  --success-500: #22c55e;
  --success-600: #16a34a;

  --warning-50: #fffbeb;
  --warning-500: #f59e0b;
  --warning-600: #d97706;

  --error-50: #fef2f2;
  --error-500: #ef4444;
  --error-600: #dc2626;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-800) 100%);
  --gradient-accent: linear-gradient(135deg, var(--accent-500) 0%, var(--accent-700) 100%);
  --gradient-subtle: linear-gradient(135deg, var(--secondary-50) 0%, var(--primary-50) 100%);

  /* Shadows */
  --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --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 ease-in-out;
  --transition-normal: 250ms ease-in-out;
  --transition-slow: 350ms ease-in-out;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--secondary-800);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

/* Background Gradient */
.bg-gradient-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  min-height: 100vh;
}

/* Background Pattern */
.bg-pattern {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

/* ===== LAYOUT ===== */
.container-fluid {
  position: relative;
  z-index: 1;
}

/* ===== HEADER CARD ===== */
.header-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 1rem;
}

.header-title {
  color: var(--secondary-900);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header-subtitle {
  color: var(--secondary-600);
  font-size: 1.125rem;
  font-weight: 400;
}

.header-logo {
  height: 50px;
  width: auto;
  object-fit: contain;
  margin-right: 1rem;
}

.header-stats {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--secondary-700);
  font-weight: 500;
}

/* ===== SECTION TITLES ===== */
.section-title {
  color: var(--secondary-900);
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
}

.section-title i {
  color: var(--primary-600);
}

/* ===== HEADER ===== */
header {
  text-align: center;
  margin-bottom: 3rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 3rem 2rem;
  border-radius: 24px;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

header h1 {
  color: var(--secondary-900);
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

header h1 i {
  margin-right: 1rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

header p {
  color: var(--secondary-600);
  font-size: 1.25rem;
  font-weight: 400;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== SECTIONS ===== */
.upload-section,
.processing-status,
.filters-section,
.files-section {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.upload-section::before,
.processing-status::before,
.filters-section::before,
.files-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
}

.upload-section h2,
.processing-status h2,
.files-section h2,
.filters-section h2 {
  color: var(--secondary-900);
  margin-bottom: 2rem;
  font-size: 2rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.upload-section h2 i,
.processing-status h2 i,
.files-section h2 i,
.filters-section h2 i {
  color: var(--primary-600);
}

/* ===== UPLOAD AREAS ===== */
.upload-box {
  border: 2px dashed var(--secondary-300);
  border-radius: 16px;
  padding: 3rem 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
  transition: all var(--transition-normal);
  cursor: pointer;
  position: relative;
  background: linear-gradient(145deg, var(--secondary-50), var(--primary-50));
  overflow: hidden;
}

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

.upload-box:hover::before {
  left: 100%;
}

.upload-box:hover {
  border-color: var(--primary-400);
  background: linear-gradient(145deg, var(--primary-50), var(--secondary-50));
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.upload-box.dragover {
  border-color: var(--success-500);
  background: linear-gradient(145deg, var(--success-50), var(--primary-50));
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-2xl);
}

/* Large Upload Box for Bootstrap Layout */
.upload-box-large {
  border: 2px dashed var(--secondary-300);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all var(--transition-normal);
  cursor: pointer;
  position: relative;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
  backdrop-filter: blur(10px);
  overflow: hidden;
  height: 100%;
}

.upload-box-large::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: left 0.6s;
}

.upload-box-large:hover::before {
  left: 100%;
}

.upload-box-large:hover {
  border-color: var(--primary-400);
  background: linear-gradient(145deg, rgba(59, 130, 246, 0.1), rgba(255, 255, 255, 0.9));
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.upload-box-large.dragover {
  border-color: var(--success-500);
  background: linear-gradient(145deg, rgba(34, 197, 94, 0.15), rgba(255, 255, 255, 0.95));
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-2xl);
}

.upload-content {
  position: relative;
  z-index: 2;
}

.upload-icon,
.upload-icon-alt {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  transition: transform var(--transition-normal);
}

.upload-icon {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.upload-icon-alt {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.upload-box-large:hover .upload-icon,
.upload-box-large:hover .upload-icon-alt {
  transform: scale(1.1);
}

.upload-formats {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.format-badge {
  background: var(--primary-100);
  color: var(--primary-700);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--primary-200);
}

.upload-content h3 {
  color: var(--secondary-900);
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.upload-content p {
  color: var(--secondary-600);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.upload-content input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

/* ===== BUTTONS ===== */
.btn {
  padding: 0.875rem 2rem;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  text-align: center;
  margin: 0.25rem;
  position: relative;
  overflow: hidden;
  font-family: inherit;
  min-width: 140px;
}

.btn::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: left 0.5s;
}

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

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-md);
}

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

.btn-primary:disabled {
  background: var(--secondary-300);
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: var(--secondary-100);
  color: var(--secondary-700);
  border: 1px solid var(--secondary-200);
}

.btn-secondary:hover {
  background: var(--secondary-200);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-success {
  background: var(--success-500);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-success:hover {
  background: var(--success-600);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-info {
  background: var(--primary-500);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-info:hover {
  background: var(--primary-600);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-filter {
  background: var(--secondary-50);
  color: var(--secondary-600);
  border: 1px solid var(--secondary-200);
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-weight: 500;
  transition: all var(--transition-normal);
}

.btn-filter:hover {
  background: var(--secondary-100);
  border-color: var(--secondary-300);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-filter.active {
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
  box-shadow: var(--shadow-md);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border-radius: 8px;
}

/* ===== UPLOAD ACTIONS ===== */
.upload-actions {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--secondary-200);
}

/* Process Button */
.btn-process {
  background: linear-gradient(135deg, var(--success-500) 0%, var(--success-600) 100%);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-size: 1.125rem;
  font-weight: 600;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-md);
}

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

.btn-process:disabled {
  background: var(--secondary-300);
  cursor: not-allowed;
  transform: none;
}

/* ===== STATUS PANEL ===== */
.status-panel {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  height: fit-content;
}

.status-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
}

/* Progress Cards */
.progress-card {
  background: rgba(248, 250, 252, 0.8);
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  border: 1px solid var(--secondary-200);
}

.progress-title {
  color: var(--secondary-800);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
}

.progress-text {
  color: var(--secondary-600);
  font-size: 0.875rem;
  margin: 0;
}

/* Status Card */
.status-card {
  background: rgba(248, 250, 252, 0.8);
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  border: 1px solid var(--secondary-200);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.status-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.status-title {
  color: var(--secondary-900);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.status-description {
  color: var(--secondary-600);
  font-size: 0.875rem;
  margin: 0;
}

/* Quick Actions */
.quick-actions {
  background: rgba(248, 250, 252, 0.8);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--secondary-200);
}

.actions-title {
  color: var(--secondary-800);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

/* File List */
.files-title {
  color: var(--secondary-900);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
}

.file-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.file-item {
  background: rgba(255, 255, 255, 0.9);
  padding: 1rem 1.25rem;
  border-radius: 12px;
  border: 1px solid var(--secondary-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.file-item:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.file-info {
  flex: 1;
}

.file-name {
  font-weight: 600;
  color: var(--secondary-900);
  margin-bottom: 0.25rem;
}

.file-size {
  color: var(--secondary-500);
  font-size: 0.875rem;
}

.file-remove {
  background: var(--error-500);
  color: white;
  border: none;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.file-remove:hover {
  background: var(--error-600);
  transform: scale(1.05);
}

/* Processing Results */
.processing-results {
  margin-top: 2rem;
}

.results-section {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.result-item {
  background: white;
  padding: 2rem;
  margin-bottom: 1.5rem;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--secondary-200);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.result-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--secondary-300);
}

.result-item.completed::before {
  background: var(--success-500);
}

.result-item.failed::before {
  background: var(--error-500);
}

.result-item.processing::before {
  background: var(--primary-500);
  animation: pulse 2s infinite;
}

.result-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.result-title {
  color: var(--secondary-900);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}

.result-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.result-meta {
  display: flex;
  gap: 2rem;
  color: var(--secondary-600);
  font-size: 0.875rem;
}

/* ===== SELECTED FILES ===== */
.selected-files {
  margin-top: 2rem;
  padding: 2rem;
  background: linear-gradient(145deg, var(--primary-50), var(--secondary-50));
  border-radius: 16px;
  border-left: 4px solid var(--primary-500);
  box-shadow: var(--shadow-sm);
}

.selected-files h3 {
  color: var(--secondary-900);
  margin-bottom: 1.5rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.selected-files h3::before {
  content: '📋';
  font-size: 1.25rem;
}

.selected-files ul {
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.selected-files li {
  background: white;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--secondary-200);
  transition: all var(--transition-normal);
}

.selected-files li:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

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

.file-size {
  color: var(--secondary-500);
  font-size: 0.875rem;
  margin-right: 1rem;
}

.remove-file {
  background: var(--error-500);
  color: white;
  border: none;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.remove-file:hover {
  background: var(--error-600);
  transform: scale(1.05);
}

/* ===== PROCESSING STATUS ===== */
.processing-item {
  background: white;
  padding: 2rem;
  margin-bottom: 1.5rem;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--secondary-200);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.processing-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--secondary-300);
}

.processing-item.completed::before {
  background: var(--success-500);
}

.processing-item.failed::before {
  background: var(--error-500);
}

.processing-item.processing::before {
  background: var(--primary-500);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.processing-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.processing-item h4 {
  color: var(--secondary-900);
  margin-bottom: 0.75rem;
  font-weight: 600;
  font-size: 1.125rem;
}

.processing-item p {
  margin-bottom: 0.5rem;
}

/* ===== STATUS BADGES ===== */
.status {
  display: inline-block;
  padding: 0.375rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: var(--shadow-xs);
}

.status.pending {
  background: var(--warning-50);
  color: var(--warning-600);
  border: 1px solid var(--warning-200);
}

.status.processing {
  background: var(--primary-50);
  color: var(--primary-700);
  border: 1px solid var(--primary-200);
  animation: pulse 2s infinite;
}

.status.completed {
  background: var(--success-50);
  color: var(--success-700);
  border: 1px solid var(--success-200);
}

.status.failed {
  background: var(--error-50);
  color: var(--error-700);
  border: 1px solid var(--error-200);
}

.status.cancelled {
  background: var(--warning-50);
  color: var(--warning-700);
  border: 1px solid var(--warning-200);
}

/* ===== LOADING ANIMATIONS ===== */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--secondary-200);
  border-top: 2px solid var(--primary-600);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* ===== FILTERS ===== */
.filters-section h2 {
  color: var(--secondary-900);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ===== FILES TABLE ===== */
.table-container {
  overflow-x: auto;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  background: white;
}

.files-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.files-table th {
  background: var(--gradient-primary);
  color: white;
  padding: 1.25rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: sticky;
  top: 0;
  z-index: 10;
}

.files-table td {
  padding: 1.25rem 1rem;
  border-bottom: 1px solid var(--secondary-200);
  color: var(--secondary-700);
  transition: background-color var(--transition-fast);
}

.files-table tr:hover td {
  background: var(--secondary-50);
}

.files-table .filename {
  font-weight: 600;
  color: var(--secondary-900);
}

.files-table .actions {
  white-space: nowrap;
}

/* ===== STATES ===== */
.loading-state,
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--secondary-600);
}

.loading-state .loading {
  width: 48px;
  height: 48px;
  margin: 0 auto 1.5rem;
  border-width: 3px;
  border-color: var(--secondary-200);
  border-top-color: var(--primary-600);
}

.empty-state i {
  font-size: 4rem;
  color: var(--secondary-400);
  margin-bottom: 1.5rem;
  opacity: 0.6;
}

.empty-state h3 {
  color: var(--secondary-700);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.empty-state p {
  margin-bottom: 2rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== ERROR MESSAGE ===== */
.error-message {
  text-align: center;
  padding: 3rem 2rem;
  background: white;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--error-200);
}

.error-message i {
  font-size: 3rem;
  color: var(--error-500);
  margin-bottom: 1.5rem;
}

.error-message h3 {
  color: var(--secondary-900);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.error-message p {
  color: var(--secondary-600);
  margin-bottom: 2rem;
}

/* ===== HEADER ACTIONS ===== */
.header-actions {
  margin-top: 2rem;
}

/* ===== LOADING OVERLAY ===== */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  animation: fadeIn 0.3s ease-out;
}

.loading-content {
  text-align: center;
  color: white;
  padding: 3rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-2xl);
}

.loading-spinner {
  width: 64px;
  height: 64px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 2rem;
}

.loading-content p {
  font-size: 1.25rem;
  font-weight: 500;
  margin: 0;
}

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

/* ===== FOOTER ===== */
footer {
  text-align: center;
  margin-top: auto;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 16px;
  color: var(--secondary-700);
  font-size: 0.875rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ===== MODAL (for file details) ===== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 1rem;
}

.modal-content {
  background: white;
  border-radius: 20px;
  max-width: 900px;
  max-height: 90vh;
  width: 100%;
  overflow-y: auto;
  box-shadow: var(--shadow-2xl);
  animation: modalSlideIn 0.3s ease-out;
}

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

.modal-header {
  padding: 2rem 2.5rem 1.5rem;
  border-bottom: 1px solid var(--secondary-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--gradient-subtle);
  border-radius: 20px 20px 0 0;
}

.modal-header h2 {
  margin: 0;
  color: var(--secondary-900);
  font-size: 1.5rem;
  font-weight: 600;
}

.close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--secondary-500);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all var(--transition-fast);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-btn:hover {
  background: var(--secondary-200);
  color: var(--secondary-700);
  transform: scale(1.1);
}

.modal-body {
  padding: 2.5rem;
}

.file-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.info-card {
  background: var(--gradient-subtle);
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid var(--secondary-200);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.info-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gradient-primary);
}

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

.info-card h4 {
  margin: 0 0 0.75rem 0;
  color: var(--secondary-800);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.info-card p {
  margin: 0;
  color: var(--secondary-900);
  font-size: 1.125rem;
  font-weight: 500;
}

.speaker-stats,
.transcriptions {
  margin-bottom: 3rem;
}

.speaker-stats h3,
.transcriptions h3 {
  color: var(--secondary-900);
  margin-bottom: 1.5rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.speaker-item {
  background: white;
  padding: 1.25rem;
  margin-bottom: 1rem;
  border-radius: 12px;
  border: 1px solid var(--secondary-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all var(--transition-normal);
}

.speaker-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

.speaker-name {
  font-weight: 600;
  color: var(--secondary-900);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.speaker-name::before {
  content: '👤';
  font-size: 1.125rem;
}

.speaker-stats {
  color: var(--secondary-700);
  font-size: 0.875rem;
}

.transcription-list {
  max-height: 400px;
  overflow-y: auto;
  border-radius: 12px;
  border: 1px solid var(--secondary-200);
  background: var(--secondary-50);
}

.transcription-item {
  background: white;
  padding: 1.5rem;
  margin-bottom: 1rem;
  border-radius: 12px;
  border-left: 4px solid var(--success-500);
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-normal);
}

.transcription-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

.transcription-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--secondary-600);
  font-weight: 500;
}

.transcription-text {
  color: var(--secondary-800);
  line-height: 1.6;
  font-size: 1rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }

  header {
    padding: 2rem 1.5rem;
  }

  header h1 {
    font-size: 2.25rem;
  }

  header p {
    font-size: 1.125rem;
  }

  .header-logo {
    height: 70px;
    margin-right: 0.75rem;
  }
  
  .upload-section,
  .processing-status,
  .filters-section,
  .files-section {
    padding: 1.5rem;
  }
  
  .upload-box {
    padding: 2rem 1.5rem;
  }
  
  .upload-content i {
    font-size: 3rem;
  }
  
  .upload-content h3 {
    font-size: 1.25rem;
  }
  
  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
  }
  
  .filter-buttons {
    flex-direction: column;
  }
  
  .filter-buttons .btn {
    width: 100%;
  }
  
  .files-table {
    font-size: 0.75rem;
  }
  
  .files-table th,
  .files-table td {
    padding: 0.75rem 0.5rem;
  }
  
  .modal-content {
    margin: 1rem;
  }
  
  .modal-header,
  .modal-body {
    padding: 1.5rem;
  }
  
  .file-info-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

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

/* Focus styles for better accessibility */
.btn:focus,
.upload-box:focus-within {
  outline: 2px solid var(--primary-500);
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .container {
    max-width: none;
    padding: 0;
  }
  
  header,
  .upload-section,
  .filters-section {
    box-shadow: none;
    background: white;
  }
  
  .btn {
    display: none;
  }
}
