@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');

:root {
  --bg: #0a0f1a;
  --card: #151d2e;
  --card-hover: #1a2234;
  --primary: #6366f1;
  --accent: #14b8a6;
  --accent-light: #5eead4;
  --danger: #f87171;
  --warning: #fbbf24;
  --success: #34d399;
  --text: #ffffff;
  --text-secondary: #e2e8f0;
  --text-muted: #94a3b8;
  --muted: #a1afc4;
  --border: rgba(255, 255, 255, 0.12);
  --font: 'Inter', sans-serif;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  /* Mobile-first touch targets */
  --min-touch-target: 44px;
}

* { box-sizing: border-box; }

html {
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  background-image: 
    radial-gradient(ellipse at 20% 0%, rgba(20, 184, 166, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(99, 102, 241, 0.06) 0%, transparent 50%);
  color: var(--text);
  min-height: 100vh;
  margin: 0;
  font-size: 16px; /* Base font size for readability */
  line-height: 1.5;
  overflow-x: hidden;
  width: 100%;
}

/* Mobile-first responsive utilities */
.container-fluid {
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 576px) {
  .container-fluid {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 768px) {
  .container-fluid {
    max-width: 720px;
    margin: 0 auto;
  }
}

@media (min-width: 992px) {
  .container-fluid {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container-fluid {
    max-width: 1140px;
  }
}

@media (min-width: 1400px) {
  .container-fluid {
    max-width: 1320px;
  }
}

/* Flexbox grid system */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -0.5rem;
  margin-right: -0.5rem;
}

.col {
  flex: 1;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.col-12 { flex: 0 0 100%; }
.col-6 { flex: 0 0 50%; }
.col-4 { flex: 0 0 33.333%; }
.col-3 { flex: 0 0 25%; }

@media (min-width: 768px) {
  .col-md-6 { flex: 0 0 50%; }
  .col-md-4 { flex: 0 0 33.333%; }
  .col-md-3 { flex: 0 0 25%; }
}

/* Touch-friendly buttons and inputs */
.btn {
  min-height: var(--min-touch-target);
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-sm {
  min-height: 36px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.form-control {
  min-height: var(--min-touch-target);
  padding: 0.75rem;
  font-size: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

/* Navigation Styles */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(10, 15, 26, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1rem;
  z-index: 100;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.25rem;
  min-height: var(--min-touch-target);
}

.brand-icon {
  font-size: 1.5rem;
}

.brand-text {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-menu {
  display: none; /* Hidden by default on mobile */
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  justify-content: center;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  flex-direction: column;
  padding: 1rem;
  box-shadow: var(--shadow);
  z-index: 1000;
}

.nav-menu.show {
  display: flex;
}

.nav-menu .nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  min-height: var(--min-touch-target);
  width: 100%;
  justify-content: flex-start;
}

.nav-menu .nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav-menu .nav-link.active {
  color: var(--text);
  background: rgba(99, 102, 241, 0.15);
}

.nav-menu .nav-link i {
  font-size: 1.1rem;
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-name {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-toggle {
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  min-height: var(--min-touch-target);
  min-width: var(--min-touch-target);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Desktop navigation */
@media (min-width: 768px) {
  .nav-menu {
    display: flex;
    position: static;
    background: transparent;
    border-bottom: none;
    box-shadow: none;
    flex-direction: row;
    padding: 0;
  }
  
  .nav-menu.show {
    display: flex;
  }
  
  .nav-toggle {
    display: none;
  }
  
  .nav-container {
    gap: 2rem;
  }
  
  .nav-menu {
    flex: 1;
    justify-content: flex-start;
  }
  
  .nav-menu .nav-link {
    width: auto;
    justify-content: center;
  }
  
  .nav-user {
    display: flex;
  }
}

/* Mobile navigation */
@media (max-width: 767px) {
  .nav-user {
    display: none; /* Hide user info on mobile, could add to menu if needed */
  }
}

.nav-menu .nav-link.active {
  color: var(--text);
  background: rgba(99, 102, 241, 0.15);
}

.nav-menu .nav-link i {
  font-size: 1.1rem;
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-name {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-toggle {
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  min-height: var(--min-touch-target);
  min-width: var(--min-touch-target);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile nav menu */
.nav-menu .nav-link {
  width: 100%;
  justify-content: flex-start;
}

/* Desktop navigation */
@media (min-width: 768px) {
  .nav-menu {
    display: flex;
  }
  
  .nav-toggle {
    display: none;
  }
  
  .nav-container {
    gap: 2rem;
  }
  
  .nav-menu {
    flex: 1;
    justify-content: flex-start;
  }
  
  .nav-user {
    margin-left: auto;
  }
  
  .user-name {
    display: block;
  }
}

.main-content {
  padding-top: 80px;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.main-content .container {
  max-width: 100%;
  margin: 0 auto;
  padding: 1rem;
}

@media (min-width: 576px) {
  .main-content .container {
    padding: 1.5rem;
  }
}

@media (min-width: 768px) {
  .main-content .container {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .main-content .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .main-content .container {
    max-width: 1140px;
  }
}

@media (min-width: 1400px) {
  .main-content .container {
    max-width: 1320px;
  }
}

/* Old navbar styles - keep for compatibility */
.navbar {
  background: rgba(17, 24, 39, 0.8) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

.navbar-brand {
  font-weight: 600;
  font-size: 1.25rem;
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-link {
  color: var(--muted) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--text) !important;
  background: rgba(255, 255, 255, 0.05);
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-width: 0;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.card-body { padding: 1.5rem; }

.card-title {
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #ffffff;
}

.card-title::before {
  content: '';
  width: 4px;
  height: 20px;
  background: linear-gradient(180deg, var(--accent), var(--accent-light));
  border-radius: 2px;
}

.btn-primary {
  background: linear-gradient(135deg, #22d3ee, #14b8a6);
  border: none;
  color: #0b1224;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(20, 184, 166, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(20, 184, 166, 0.4);
  background: linear-gradient(135deg, #67e8f9, #2dd4bf);
  color: #0b1224;
}

.btn-primary:disabled {
  opacity: 0.6;
  transform: none;
  cursor: not-allowed;
}

.btn-outline-primary {
  border: 1px solid var(--accent);
  color: var(--accent);
  background: transparent;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-outline-primary:hover {
  background: var(--accent);
  color: #0b1224;
  box-shadow: 0 4px 12px rgba(20, 184, 166, 0.3);
}

.btn-outline-secondary {
  border: 1px solid var(--border);
  color: var(--muted);
  background: transparent;
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

.btn-outline-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.15);
}

.form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.form-control, .form-select {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.form-control:focus, .form-select:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
  color: var(--text);
}

.form-control::placeholder { color: var(--muted); opacity: 0.8; }
.form-select option { background: var(--card); color: var(--text); }

.table { color: var(--text); margin-bottom: 0; }

.table thead th {
  border-color: var(--border);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  padding: 1rem;
}

.table td {
  border-color: var(--border);
  padding: 1rem;
  vertical-align: middle;
}

.table tbody tr { transition: background 0.2s ease; }
.table tbody tr:hover { background: rgba(255, 255, 255, 0.02); }

.badge {
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
}

.badge.bg-secondary { background: rgba(255, 255, 255, 0.12) !important; color: var(--text-secondary); }
.badge.bg-success { background: rgba(52, 211, 153, 0.2) !important; color: #6ee7b7; }
.badge.bg-warning { background: rgba(251, 191, 36, 0.2) !important; color: #fcd34d; }
.badge.bg-danger { background: rgba(248, 113, 113, 0.2) !important; color: #fca5a5; }

.alert { border: none; border-radius: 8px; padding: 1rem 1.25rem; }
.alert-success {
  background: rgba(52, 211, 153, 0.1);
  color: var(--success);
  border-left: 3px solid var(--success);
}

#product-content img {
  max-height: 120px;
  width: auto;
  border-radius: 8px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.05);
  padding: 8px;
}

.product-name { 
  font-weight: 600; 
  font-size: 1.1rem; 
  margin-bottom: 0.25rem; 
  color: var(--text);
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}
.product-brand { 
  color: var(--accent-light); 
  font-size: 0.9rem;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.nutriments-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.nutriment-item {
  background: rgba(255, 255, 255, 0.06);
  padding: 0.5rem;
  border-radius: 8px;
  text-align: center;
}

.nutriment-value { font-weight: 600; font-size: 1.1rem; color: #ffffff; }
.nutriment-label { font-size: 0.7rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.05em; }

.analysis-content { 
  line-height: 1.7; 
  color: var(--text-secondary);
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.analysis-section {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
  min-width: 0;
}

.analysis-heading {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.analysis-text {
  color: var(--text-secondary);
  line-height: 1.6;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}

.analysis-list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.analysis-list li {
  margin-bottom: 0.4rem;
}

.used-record-item {
  margin-bottom: 0.75rem;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.used-record-item strong {
  color: var(--text);
}

.used-record-item .small {
  color: var(--text-muted);
}

.safe-consumption {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.12);
  color: var(--accent-light);
  font-weight: 600;
  overflow-wrap: break-word;
  word-wrap: break-word;
  max-width: 100%;
}

.risk-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  margin-bottom: 1rem;
  overflow-wrap: break-word;
  word-wrap: break-word;
  max-width: 100%;
}

.risk-low { background: rgba(52, 211, 153, 0.2); color: #6ee7b7; }
.risk-medium { background: rgba(251, 191, 36, 0.2); color: #fcd34d; }
.risk-high { background: rgba(248, 113, 113, 0.2); color: #fca5a5; }

#camera-container { border-radius: 8px; overflow: hidden; }
#camera-container video,
#camera-container canvas {
  width: 100% !important;
  height: auto !important;
  display: block;
}
.camera-preview {
  width: 100%;
  min-height: 220px;
  background: rgba(255, 255, 255, 0.03);
}

.loading { display: flex; align-items: center; gap: 0.75rem; color: var(--text-secondary); }
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

#status { padding: 0.5rem 0; font-size: 0.875rem; color: var(--text-secondary); }
#status.text-danger { color: #fca5a5 !important; }
#status.text-muted { color: var(--text-secondary) !important; }

@media (max-width: 992px) { .card-body { padding: 1.25rem; } }

.page-header { margin-bottom: 2rem; }
.page-title { font-size: 1.75rem; font-weight: 600; margin-bottom: 0.5rem; color: #ffffff; }
.page-subtitle { color: var(--text-secondary); }

.section-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.2), rgba(99, 102, 241, 0.1));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.markdown-body ul,
.markdown-body ol {
  margin: 0 0 0.75rem 1.25rem;
  padding: 0;
}

.markdown-body li {
  margin-bottom: 0.35rem;
}

.markdown-body strong {
  color: var(--text);
}

.border-top { border-top: 1px solid var(--border) !important; }
.border-secondary { border-color: var(--border) !important; }

/* Mobile card padding override */
@media (max-width: 576px) {
  .card-body {
    padding: 1rem;
  }
}

.page-header {
  text-align: center;
  margin-bottom: 2rem;
}

.page-title {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}

@media (min-width: 768px) {
  .page-title {
    font-size: 2rem;
  }
}

.page-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
}

@media (min-width: 768px) {
  .page-subtitle {
    font-size: 1.125rem;
  }
}

.scanner-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  max-width: 100%;
}

.scanner-input-section,
.scanner-results-section {
  width: 100%;
  min-width: 0;
}

@media (min-width: 992px) {
  .scanner-grid {
    flex-direction: row;
    align-items: flex-start;
  }
  
  .scanner-input-section {
    flex: 0 0 400px;
    max-width: 400px;
  }
  
  .scanner-results-section {
    flex: 1;
    min-width: 0;
  }
}

.section-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.2), rgba(99, 102, 241, 0.1));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.d-flex {
  display: flex;
}

.align-items-center {
  align-items: center;
}

.justify-content-between {
  justify-content: space-between;
}

.gap-2 {
  gap: 0.5rem;
}

.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }

.small { font-size: 0.875rem; }

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --border: rgba(255, 255, 255, 0.3);
    --text-muted: #ffffff;
  }
}

/* Focus visible for keyboard navigation */
.btn:focus-visible,
.form-control:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Auth pages responsiveness */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

@media (max-width: 480px) {
  .auth-card {
    padding: 1.5rem;
    margin: 1rem;
  }
}

.auth-form .form-group {
  margin-bottom: 1.5rem;
}

.auth-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text);
}

.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"] {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
}

.auth-form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

/* Table responsiveness */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
  .table-responsive {
    font-size: 0.875rem;
  }
}

/* Modal responsiveness */
.modal-dialog {
  margin: 1rem;
}

@media (min-width: 576px) {
  .modal-dialog {
    max-width: 500px;
    margin: 1.75rem auto;
  }
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal.show {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background: var(--card);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 90vw;
  max-height: 90vh;
  width: 500px;
  position: relative;
  z-index: 2001;
  overflow: hidden;
}

.modal-lg {
  width: 800px;
  max-width: 95vw;
}

.modal-header {
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: var(--bg);
  color: var(--text);
}

.modal-body {
  padding: 1.5rem;
  max-height: calc(90vh - 120px);
  overflow-y: auto;
}

/* Upload Zone Styles */
.upload-zone {
  display: block;
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 1.5rem;
}

.upload-zone:hover {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.05);
}

.upload-icon {
  font-size: 3rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.upload-zone h3 {
  color: var(--text);
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
}

.upload-zone p {
  color: var(--text-secondary);
  margin: 0 0 0.25rem 0;
}

.upload-hint {
  font-size: 0.875rem !important;
  color: var(--text-muted) !important;
}

/* Progress Bar */
.upload-progress {
  margin-top: 1.5rem;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--bg);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  width: 0%;
  transition: width 0.3s ease;
}

.progress-text {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Records Page Styles - Using inline styles in template */

.record-summary,
.summary-content,
.key-findings-body {
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}
