/* =============================================================
   MTDNES CARE V2 — components.css
   Reusable UI Components
   ============================================================= */

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.625rem var(--space-5);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1;
  border: 1.5px solid transparent;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition:
    background var(--transition-fast),
    color var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast);
  white-space: nowrap;
  user-select: none;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.btn:active:not(:disabled) { transform: scale(0.97); }
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* Primary */
.btn-primary {
  background: linear-gradient(135deg, var(--teal-400) 0%, var(--teal-600) 100%);
  color: var(--white);
  border-color: var(--teal-500);
  box-shadow: 0 1px 2px rgba(0,168,158,.3), 0 4px 12px rgba(0,168,158,.2);
}
.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--teal-300) 0%, var(--teal-500) 100%);
  box-shadow: 0 2px 4px rgba(0,168,158,.35), 0 8px 20px rgba(0,168,158,.25);
  transform: translateY(-1px);
}

/* Secondary */
.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-xs);
}
.btn-secondary:hover:not(:disabled) {
  background: var(--gray-50);
  border-color: var(--navy-300);
  box-shadow: var(--shadow-sm);
}

/* Ghost */
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}
.btn-ghost:hover:not(:disabled) {
  background: var(--gray-100);
  color: var(--text-primary);
}

/* Danger */
.btn-danger {
  background: linear-gradient(135deg, #F43F5E 0%, #E11D48 100%);
  color: var(--white);
  border-color: #FB7185;
  box-shadow: 0 1px 2px rgba(244,63,94,.3);
}
.btn-danger:hover:not(:disabled) {
  box-shadow: 0 4px 12px rgba(244,63,94,.35);
  transform: translateY(-1px);
}

/* Outline brand */
.btn-outline {
  background: transparent;
  color: var(--brand-primary);
  border-color: var(--brand-primary);
}
.btn-outline:hover:not(:disabled) {
  background: var(--teal-050);
  box-shadow: var(--shadow-brand);
}

/* Sizes */
.btn-xs { padding: 0.375rem var(--space-3); font-size: var(--text-xs); border-radius: var(--radius-md); }
.btn-sm { padding: 0.5rem var(--space-4);   font-size: var(--text-sm); }
.btn-lg { padding: 0.875rem var(--space-8); font-size: var(--text-base); border-radius: var(--radius-xl); }
.btn-xl { padding: 1rem var(--space-10);    font-size: var(--text-lg); border-radius: var(--radius-xl); }

/* Full width */
.btn-block { width: 100%; }

/* Icon only */
.btn-icon {
  padding: 0.625rem;
  border-radius: var(--radius-lg);
  aspect-ratio: 1;
}

/* Loading state */
.btn.loading {
  pointer-events: none;
  color: transparent;
}
.btn.loading::after {
  content: '';
  position: absolute;
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

/* ── Form Elements ──────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-label {
  font-size: var(--text-sm);
  font-weight: 600;
  font-family: var(--font-display);
  color: var(--text-primary);
  letter-spacing: 0.01em;
}

.form-label .required {
  color: var(--rose-500);
  margin-left: 2px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.625rem var(--space-4);
  background: var(--bg-surface);
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  color: var(--text-primary);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
  -webkit-appearance: none;
  appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-muted); }

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(0,180,166,.12);
  background: var(--bg-elevated);
}

.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: var(--rose-500);
  box-shadow: 0 0 0 3px rgba(244,63,94,.1);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
  line-height: var(--leading-relaxed);
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-4) center;
  padding-right: calc(var(--space-4) * 2.5);
  cursor: pointer;
}

.form-hint {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: var(--space-1);
}

.form-error {
  font-size: var(--text-xs);
  color: var(--rose-500);
  margin-top: var(--space-1);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

/* Input with icon */
.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper .input-icon {
  position: absolute;
  left: var(--space-4);
  color: var(--text-muted);
  pointer-events: none;
  width: 1rem;
  height: 1rem;
}

.input-wrapper .form-input {
  padding-left: calc(var(--space-4) + 1rem + var(--space-3));
}

.input-wrapper .input-icon-right {
  position: absolute;
  right: var(--space-4);
  color: var(--text-muted);
  cursor: pointer;
  width: 1rem;
  height: 1rem;
  transition: color var(--transition-fast);
}
.input-wrapper .input-icon-right:hover { color: var(--text-primary); }

/* Checkbox & Radio */
.form-check {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  cursor: pointer;
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 2px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  cursor: pointer;
  accent-color: var(--brand-primary);
  flex-shrink: 0;
}

.form-check input[type="radio"] { border-radius: var(--radius-full); }

.form-check-label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-snug);
}

/* Toggle */
.toggle-wrapper { display: flex; align-items: center; gap: var(--space-3); }

.toggle {
  position: relative;
  width: 2.75rem;
  height: 1.5rem;
  cursor: pointer;
}
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-track {
  position: absolute;
  inset: 0;
  background: var(--gray-200);
  border-radius: var(--radius-full);
  transition: background var(--transition-base);
}
.toggle input:checked + .toggle-track { background: var(--brand-primary); }
.toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 1.125rem;
  height: 1.125rem;
  background: var(--white);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-spring);
}
.toggle input:checked ~ .toggle-thumb { transform: translateX(1.25rem); }

/* ── Card ───────────────────────────────────────────────────── */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: var(--card-padding);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.card:hover { box-shadow: var(--shadow-md); }

.card-hover:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border-default);
}

.card-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.card-title .card-icon {
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--teal-050);
  color: var(--teal-600);
  flex-shrink: 0;
}

.card-body { flex: 1; }

.card-footer {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-default);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* Stat card */
.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}
.stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal-400), var(--teal-600));
}
.stat-card--teal::before  { background: linear-gradient(90deg, var(--teal-400), var(--teal-600)); }
.stat-card--navy::before  { background: linear-gradient(90deg, var(--navy-500), var(--navy-800)); }
.stat-card--amber::before { background: linear-gradient(90deg, var(--amber-500), #D97706); }
.stat-card--emerald::before { background: linear-gradient(90deg, var(--emerald-500), #059669); }

.stat-card__label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}
.stat-card__value {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: var(--space-2);
}
.stat-card__change {
  font-size: var(--text-xs);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}
.stat-card__change.up   { color: var(--emerald-500); }
.stat-card__change.down { color: var(--rose-500); }

/* ── Badge / Chip ───────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 0.25rem 0.625rem;
  font-size: var(--text-xs);
  font-weight: 600;
  font-family: var(--font-display);
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
}

.badge--default  { background: var(--gray-100); color: var(--gray-700); }
.badge--brand    { background: var(--teal-100); color: var(--teal-700); }
.badge--success  { background: var(--status-success-bg); color: var(--status-success-text); }
.badge--warning  { background: var(--status-warning-bg); color: var(--status-warning-text); }
.badge--error    { background: var(--status-error-bg);   color: var(--status-error-text); }
.badge--info     { background: var(--status-info-bg);    color: var(--status-info-text); }
.badge--navy     { background: var(--navy-100); color: var(--navy-800); }
.badge--violet   { background: #EDE9FE; color: #5B21B6; }

.badge .badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

/* ── Avatar ─────────────────────────────────────────────────── */
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-weight: 700;
  background: linear-gradient(135deg, var(--teal-400), var(--navy-600));
  color: var(--white);
  flex-shrink: 0;
  letter-spacing: 0.02em;
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-xs  { width: 1.75rem; height: 1.75rem; font-size: var(--text-xs); }
.avatar-sm  { width: 2.25rem; height: 2.25rem; font-size: var(--text-sm); }
.avatar-md  { width: 2.75rem; height: 2.75rem; font-size: var(--text-base); }
.avatar-lg  { width: 3.5rem;  height: 3.5rem;  font-size: var(--text-xl); }
.avatar-xl  { width: 4.5rem;  height: 4.5rem;  font-size: var(--text-2xl); }

.avatar-group { display: flex; }
.avatar-group .avatar {
  margin-left: -0.5rem;
  border: 2px solid var(--bg-surface);
}
.avatar-group .avatar:first-child { margin-left: 0; }

/* ── Alert ──────────────────────────────────────────────────── */
.alert {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  border: 1px solid;
  font-size: var(--text-sm);
}

.alert--success {
  background: var(--status-success-bg);
  border-color: var(--status-success-ring);
  color: var(--status-success-text);
}
.alert--warning {
  background: var(--status-warning-bg);
  border-color: var(--status-warning-ring);
  color: var(--status-warning-text);
}
.alert--error {
  background: var(--status-error-bg);
  border-color: var(--status-error-ring);
  color: var(--status-error-text);
}
.alert--info {
  background: var(--status-info-bg);
  border-color: var(--status-info-ring);
  color: var(--status-info-text);
}

.alert-icon { flex-shrink: 0; margin-top: 1px; }
.alert-content { flex: 1; line-height: var(--leading-snug); }
.alert-title { font-weight: 600; margin-bottom: var(--space-1); }

/* ── Modal ──────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: var(--bg-overlay);
  backdrop-filter: blur(4px);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  animation: fadeIn var(--transition-fast) forwards;
}

.modal {
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-2xl);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  animation: scaleIn var(--transition-spring) forwards;
}

.modal--lg { max-width: 720px; }
.modal--xl { max-width: 900px; }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6);
  border-bottom: 1px solid var(--border-default);
  position: sticky;
  top: 0;
  background: var(--bg-elevated);
  z-index: 1;
}

.modal-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
}

.modal-close {
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  border: none;
  background: transparent;
  transition: background var(--transition-fast), color var(--transition-fast);
  flex-shrink: 0;
}
.modal-close:hover { background: var(--gray-100); color: var(--text-primary); }

.modal-body { padding: var(--space-6); }

.modal-footer {
  padding: var(--space-5) var(--space-6);
  border-top: 1px solid var(--border-default);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-3);
}

/* ── Toast ──────────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: var(--navy-900);
  color: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  max-width: 360px;
  pointer-events: all;
  animation: slideInRight var(--transition-spring) forwards;
  font-size: var(--text-sm);
  border: 1px solid rgba(255,255,255,.08);
}

.toast.hiding { animation: fadeInUp var(--transition-base) reverse forwards; }

.toast-icon { flex-shrink: 0; margin-top: 1px; }
.toast-body { flex: 1; }
.toast-title { font-weight: 600; margin-bottom: 2px; }
.toast-message { color: rgba(255,255,255,.7); font-size: var(--text-xs); }

.toast--success { background: #064E3B; border-color: rgba(16,185,129,.3); }
.toast--error   { background: #7F1D1D; border-color: rgba(244,63,94,.3); }
.toast--warning { background: #78350F; border-color: rgba(245,158,11,.3); }

/* ── Tabs ───────────────────────────────────────────────────── */
.tabs {
  display: flex;
  border-bottom: 1.5px solid var(--border-default);
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }

.tab-btn {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-muted);
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--transition-fast), border-color var(--transition-fast);
  margin-bottom: -1.5px;
}

.tab-btn:hover { color: var(--text-secondary); }

.tab-btn.active {
  color: var(--brand-primary);
  border-bottom-color: var(--brand-primary);
  font-weight: 600;
}

.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeInUp var(--transition-base) forwards; }

/* ── Table ──────────────────────────────────────────────────── */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-default);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.table thead {
  background: var(--gray-50);
  border-bottom: 1.5px solid var(--border-default);
}

.table th {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  white-space: nowrap;
}

.table td {
  padding: var(--space-4);
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-default);
  vertical-align: middle;
}

.table tbody tr:last-child td { border-bottom: none; }

.table tbody tr {
  transition: background var(--transition-fast);
}
.table tbody tr:hover { background: var(--gray-50); }

/* ── Dropdown ───────────────────────────────────────────────── */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + var(--space-2));
  right: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  min-width: 180px;
  z-index: var(--z-dropdown);
  padding: var(--space-2);
  animation: scaleIn var(--transition-spring) forwards;
  transform-origin: top right;
}

.dropdown-menu.left { right: auto; left: 0; transform-origin: top left; }

.dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  border-radius: var(--radius-lg);
  cursor: pointer;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.dropdown-item:hover {
  background: var(--gray-100);
  color: var(--text-primary);
}

.dropdown-item--danger:hover {
  background: var(--status-error-bg);
  color: var(--status-error-text);
}

.dropdown-divider {
  border-top: 1px solid var(--border-default);
  margin: var(--space-2) 0;
}

/* ── Timeline ───────────────────────────────────────────────── */
.timeline { display: flex; flex-direction: column; }

.timeline-item {
  display: flex;
  gap: var(--space-4);
  padding-bottom: var(--space-6);
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 28px;
  bottom: 0;
  width: 1.5px;
  background: linear-gradient(to bottom, var(--border-strong), transparent);
}
.timeline-item:last-child::before { display: none; }

.timeline-dot {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 2.5px solid var(--brand-primary);
  flex-shrink: 0;
  margin-top: 4px;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-dot--success { border-color: var(--emerald-500); }
.timeline-dot--warning { border-color: var(--amber-500); }
.timeline-dot--error   { border-color: var(--rose-500); }
.timeline-dot--filled  { background: var(--brand-primary); }

.timeline-content { flex: 1; }

.timeline-meta {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-bottom: var(--space-1);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.timeline-title {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.timeline-body {
  background: var(--gray-50);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

/* ── Loading Overlay ────────────────────────────────────────── */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-overlay);
  backdrop-filter: blur(2px);
  cursor: wait;
}

.loading-spinner {
  width: 3rem;
  height: 3rem;
  border: 3px solid rgba(255,255,255,.15);
  border-top-color: var(--brand-primary);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

/* ── Empty State ────────────────────────────────────────────── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-16) var(--space-8);
  gap: var(--space-4);
}

.empty-state__icon {
  width: 4rem;
  height: 4rem;
  border-radius: var(--radius-xl);
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}

.empty-state__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
}

.empty-state__description {
  font-size: var(--text-sm);
  color: var(--text-muted);
  max-width: 360px;
  line-height: var(--leading-relaxed);
}

/* ── Breadcrumb ─────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.breadcrumb-item { cursor: pointer; }
.breadcrumb-item:hover { color: var(--text-secondary); }
.breadcrumb-item.active { color: var(--text-primary); font-weight: 500; cursor: default; }
.breadcrumb-sep { color: var(--text-muted); font-size: 0.75em; }

/* ── Progress ───────────────────────────────────────────────── */
.progress-bar {
  height: 6px;
  background: var(--gray-100);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--teal-400), var(--teal-600));
  border-radius: var(--radius-full);
  transition: width var(--transition-slow) cubic-bezier(0.4,0,0.2,1);
}

/* ── Section Header ─────────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.section-label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-primary);
  margin-bottom: var(--space-2);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.section-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: var(--space-2);
  line-height: var(--leading-relaxed);
}

/* ── Search Bar ─────────────────────────────────────────────── */
.search-bar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 0.625rem var(--space-4);
  background: var(--bg-surface);
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-xl);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  min-width: 280px;
}
.search-bar:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(0,180,166,.1);
}
.search-bar input {
  border: none;
  background: transparent;
  font-size: var(--text-sm);
  color: var(--text-primary);
  flex: 1;
  outline: none;
  min-width: 0;
}
.search-bar input::placeholder { color: var(--text-muted); }
.search-bar svg { color: var(--text-muted); flex-shrink: 0; }

/* ── Divider with label ─────────────────────────────────────── */
.divider-label {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  color: var(--text-muted);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.divider-label::before,
.divider-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-default);
}
