/* pages/css/common.css */

.tab-active {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(79, 70, 229, 0.18);
}

.tab-inactive {
  background: #f8fafc;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.card-shadow {
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.06);
}

.hover-lift {
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 56px rgba(15, 23, 42, 0.10);
}

.section-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #0f172a;
}

.muted-text {
  color: #64748b;
}

.empty-tip {
  color: #64748b;
  font-size: 0.875rem;
  line-height: 1.75;
}

.badge-soft {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border-radius: 9999px;
  padding: 0.375rem 0.75rem;
  background: #eef2ff;
  color: #4338ca;
  font-size: 0.75rem;
  font-weight: 600;
}

.metric-card {
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  background: #ffffff;
  padding: 1rem;
}

.metric-label {
  color: #64748b;
  font-size: 0.75rem;
}

.metric-value {
  color: #0f172a;
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 0.5rem;
}

.progress-track {
  width: 100%;
  height: 0.5rem;
  background: #e2e8f0;
  border-radius: 9999px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(90deg, #4f46e5, #8b5cf6);
  transition: width 0.25s ease;
}

/* Long-form reading (practice results, portrait, modals) */
.sl-reading-prose {
  font-size: 1.0625rem;
  line-height: 1.88;
  letter-spacing: 0.015em;
  color: #334155;
}

.sl-reading-prose-sm {
  font-size: 1rem;
  line-height: 1.8;
  letter-spacing: 0.012em;
  color: #475569;
}

.sl-feedback-panel {
  border-radius: 1.5rem;
  border: 1px solid #e2e8f0;
  background: linear-gradient(165deg, #fafbfc 0%, #f1f5f9 55%, #ffffff 100%);
  padding: 1.5rem 1.5rem;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

@media (min-width: 768px) {
  .sl-feedback-panel {
    padding: 1.75rem 2rem;
  }
}

@media (min-width: 1024px) {
  .sl-feedback-panel {
    padding: 2rem 2.25rem;
  }
}

.sl-suggestion-item {
  position: relative;
  padding-left: 1.25rem;
  border-left: 3px solid #c7d2fe;
  margin-left: 0.125rem;
}