/* ============================================================
   Feedback — Alert, Toast, Tooltip, ProgressBar, Spinner, Skeleton
   ============================================================ */

/* ---------- Alert ---------- */
.fcs-alert { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--radius-md); border: 1px solid transparent; }
.fcs-alert__icon { flex: none; margin-top: 1px; }
.fcs-alert__content { flex: 1; min-width: 0; }
.fcs-alert__title { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: 14px; margin: 0 0 2px; color: var(--text-primary); }
.fcs-alert__desc { font-family: var(--font-body); font-size: 13px; line-height: 1.5; margin: 0; color: var(--text-secondary); }
.fcs-alert__close { flex: none; background: none; border: 0; cursor: pointer; color: var(--text-muted); padding: 2px; border-radius: var(--radius-xs); display: inline-flex; height: fit-content; }
.fcs-alert__close:hover { color: var(--text-primary); background: rgba(20,19,25,0.06); }
.fcs-alert--info    { background: var(--info-bg); }    .fcs-alert--info .fcs-alert__icon    { color: var(--info-fg); }
.fcs-alert--success { background: var(--success-bg); } .fcs-alert--success .fcs-alert__icon { color: var(--success-fg); }
.fcs-alert--warning { background: var(--warning-bg); } .fcs-alert--warning .fcs-alert__icon { color: var(--warning-fg); }
.fcs-alert--danger  { background: var(--danger-bg); }  .fcs-alert--danger .fcs-alert__icon  { color: var(--danger-fg); }

/* ---------- Toast ---------- */
.fcs-toast {
  display: flex; gap: 11px; align-items: flex-start;
  background: var(--surface-card); border: 1px solid var(--border-default);
  border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  padding: 13px 14px; min-width: 280px; max-width: 400px;
  animation: fcs-toast-in var(--dur-base) var(--ease-out);
}
.fcs-toast__icon { flex: none; margin-top: 1px; }
.fcs-toast--info .fcs-toast__icon    { color: var(--info-fg); }
.fcs-toast--success .fcs-toast__icon { color: var(--success-fg); }
.fcs-toast--warning .fcs-toast__icon { color: var(--warning-fg); }
.fcs-toast--danger .fcs-toast__icon  { color: var(--danger-fg); }
.fcs-toast__content { flex: 1; min-width: 0; }
.fcs-toast__title { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: 13.5px; margin: 0; color: var(--text-primary); }
.fcs-toast__msg { font-family: var(--font-body); font-size: 12.5px; color: var(--text-secondary); margin: 2px 0 0; line-height: 1.45; }
.fcs-toast__close { flex: none; background: none; border: 0; cursor: pointer; color: var(--text-muted); padding: 2px; border-radius: var(--radius-xs); display: inline-flex; }
.fcs-toast__close:hover { color: var(--text-primary); }

/* ---------- Tooltip ---------- */
.fcs-tooltip { position: relative; display: inline-flex; }
.fcs-tooltip__bubble {
  position: absolute; z-index: 60; background: var(--charcoal); color: #fff;
  font-family: var(--font-body); font-size: 12px; font-weight: var(--fw-medium);
  padding: 6px 9px; border-radius: var(--radius-sm); white-space: nowrap;
  box-shadow: var(--shadow-md); opacity: 0; pointer-events: none;
  transition: opacity var(--dur-fast) var(--ease-standard);
}
.fcs-tooltip:hover .fcs-tooltip__bubble,
.fcs-tooltip:focus-within .fcs-tooltip__bubble { opacity: 1; }
.fcs-tooltip__bubble--top    { bottom: calc(100% + 7px); left: 50%; transform: translateX(-50%); }
.fcs-tooltip__bubble--bottom { top: calc(100% + 7px); left: 50%; transform: translateX(-50%); }
.fcs-tooltip__bubble--left   { right: calc(100% + 7px); top: 50%; transform: translateY(-50%); }
.fcs-tooltip__bubble--right  { left: calc(100% + 7px); top: 50%; transform: translateY(-50%); }

/* ---------- ProgressBar ---------- */
.fcs-progress { width: 100%; }
.fcs-progress__meta { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; color: var(--text-secondary); margin-bottom: 6px; }
.fcs-progress__track { height: 8px; background: var(--neutral-200); border-radius: var(--radius-full); overflow: hidden; }
.fcs-progress--sm .fcs-progress__track { height: 5px; }
.fcs-progress--lg .fcs-progress__track { height: 12px; }
.fcs-progress__fill { height: 100%; background: var(--brand-primary); border-radius: inherit; transition: width var(--dur-base) var(--ease-out); }
.fcs-progress--success .fcs-progress__fill { background: var(--success-solid); }
.fcs-progress--warning .fcs-progress__fill { background: var(--warning-solid); }
.fcs-progress--danger .fcs-progress__fill  { background: var(--danger-solid); }
.fcs-progress--info .fcs-progress__fill    { background: var(--info-solid); }
.fcs-progress--indeterminate .fcs-progress__track { position: relative; }
.fcs-progress--indeterminate .fcs-progress__fill { width: 40%; position: absolute; left: 0; animation: fcs-progress-indet 1.2s var(--ease-emphasis) infinite; }
@keyframes fcs-progress-indet { 0% { transform: translateX(-110%); } 100% { transform: translateX(300%); } }

/* ---------- Spinner ---------- */
.fcs-spinner { display: inline-block; border-radius: 50%; border: 2.5px solid var(--neutral-200); border-top-color: var(--brand-primary); animation: fcs-spin var(--dur-slower) linear infinite; }

/* ---------- Skeleton ---------- */
.fcs-skeleton {
  background: linear-gradient(90deg, var(--neutral-100) 25%, var(--neutral-200) 37%, var(--neutral-100) 63%);
  background-size: 200% 100%; animation: fcs-shimmer 1.4s ease infinite;
  border-radius: var(--radius-sm); display: block;
}
.fcs-skeleton--text { height: 0.85em; border-radius: var(--radius-xs); }
.fcs-skeleton--circle { border-radius: 50%; }
