:root {
  --primary-color: #3b82f6;
  --secondary-color: #64748b;
  --background-color: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --success-color: #22c55e;
  --warning-color: #eab308;
  --danger-color: #ef4444;
  --font-family:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

body {
  background-color: var(--background-color);
  color: var(--text-main);
  font-family: var(--font-family);
  font-size: 18px; /* Larger base font size */
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
}
h2 {
  font-size: 2rem;
}
h5 {
  font-size: 1.25rem;
  font-weight: 600;
}

.container {
  max-width: 1200px;
  padding: 2rem;
}

/* Header Styling */
header {
  background: var(--card-bg);
  padding: 1.5rem 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem !important;
  border-bottom: none !important;
}

header h1 a {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--primary-color) !important;
}

/* Card Styling */
.card {
  border: none;
  border-radius: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
  transition: transform 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.card-header {
  background-color: var(--card-bg);
  border-bottom: 1px solid #e2e8f0;
  padding: 1.5rem;
  border-radius: 1rem 1rem 0 0 !important;
}

.card-body {
  padding: 2rem;
}

/* Buttons */
.btn {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 0.5rem;
  transition: all 0.2s;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: #2563eb;
  border-color: #2563eb;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.25rem;
}

/* Forms */
.form-control {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid #cbd5e1;
  font-size: 1rem;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.form-label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

/* Progress Bars */
.progress {
  height: 1.5rem;
  border-radius: 0.75rem;
  background-color: #e2e8f0;
}

.progress-bar {
  border-radius: 0.75rem;
  font-weight: 600;
}

/* Badges */
.badge {
  padding: 0.5em 0.8em;
  font-size: 0.9em;
  border-radius: 0.375rem;
}

/* Tables */
.table {
  margin-bottom: 0;
}

.table th {
  font-weight: 600;
  color: var(--text-muted);
  border-bottom-width: 1px;
  padding: 1rem;
}

.table td {
  padding: 1rem;
  vertical-align: middle;
}

/* Waveform Visualizer */
.waveform-container {
  height: 160px; /* Taller for better visibility */
  background-color: #f1f5f9;
  border: 2px solid #e2e8f0;
  border-radius: 0.75rem;
}

.playhead {
  background-color: var(--danger-color);
  width: 3px;
}

.selection-range {
  background-color: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.4);
}

/* Word Cards in Practice Mode */
.word-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.word-chip {
  background: #fff;
  border: 2px solid #e2e8f0;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: default;
}

.word-chip.correct {
  background-color: #dcfce7;
  border-color: #86efac;
  color: #166534;
}

.word-chip.incorrect {
  background-color: #fee2e2;
  border-color: #fca5a5;
  color: #991b1b;
}

/* Footer */
footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid #e2e8f0 !important;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Large Text Utility */
.text-large {
  font-size: 1.25rem;
}

.text-xl {
  font-size: 1.5rem;
  font-weight: 600;
}

/* Accessibility Focus */
*:focus-visible {
  outline: 3px solid var(--primary-color);
  outline-offset: 2px;
}
