/**
 * feedback.css — Shared feedback section styling.
 *
 * Used by both patient and clinician shells.  Follows the Atlas/patient
 * shell design tokens (cool grey workspace, white surfaces, teal accent).
 */

/* ---------------------------------------------------------------------------
   Section
   --------------------------------------------------------------------------- */

.fb-section {
  padding: 0;
}

.fb-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.fb-section-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ps-text, var(--iv-text, #1e293b));
}

.fb-new-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  background: #fff;
  color: var(--ps-accent-text, var(--iv-accent-text, #2d6d5a));
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.fb-new-btn:hover {
  background: rgba(74, 157, 138, 0.06);
}

.fb-new-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.fb-new-btn i {
  font-size: 11px;
}

/* ---------------------------------------------------------------------------
   Group labels
   --------------------------------------------------------------------------- */

.fb-group {
  margin-bottom: 16px;
}

.fb-group-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(30, 41, 59, 0.44);
  margin-bottom: 8px;
  padding-left: 2px;
}

/* ---------------------------------------------------------------------------
   Interview rows
   --------------------------------------------------------------------------- */

.fb-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  margin-bottom: 6px;
  transition: background 0.15s, border-color 0.15s;
}

.fb-row:hover {
  background: #f8f9fb;
  border-color: rgba(0, 0, 0, 0.1);
}

.fb-row-left {
  flex: 1;
  min-width: 0;
}

.fb-row-name {
  font-size: 14px;
  font-weight: 500;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fb-row-preview {
  font-size: 12px;
  color: rgba(30, 41, 59, 0.56);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 360px;
}

.fb-row-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.fb-row-date {
  font-size: 12px;
  color: rgba(30, 41, 59, 0.44);
}

.fb-row-status {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
}

.fb-row-status.is-active {
  background: rgba(74, 157, 138, 0.10);
  color: #2d6d5a;
}

.fb-row-status.is-done {
  background: rgba(5, 150, 105, 0.08);
  color: #059669;
}

.fb-row-action {
  font-size: 13px;
  font-weight: 500;
  color: var(--ps-accent, var(--iv-accent, #4a9d8a));
  text-decoration: none;
  transition: color 0.15s;
}

.fb-row-action:hover {
  color: var(--ps-accent-text, var(--iv-accent-text, #2d6d5a));
}

/* ---------------------------------------------------------------------------
   Empty state
   --------------------------------------------------------------------------- */

.fb-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  text-align: center;
  padding: 24px;
}

.fb-empty-icon {
  font-size: 32px;
  color: rgba(30, 41, 59, 0.16);
  margin-bottom: 12px;
}

.fb-empty-text {
  font-size: 14px;
  color: rgba(30, 41, 59, 0.44);
  font-weight: 500;
}

.fb-empty-hint {
  font-size: 13px;
  color: rgba(30, 41, 59, 0.36);
  margin-top: 4px;
}

/* ---------------------------------------------------------------------------
   Loading state
   --------------------------------------------------------------------------- */

.fb-loading {
  text-align: center;
  padding: 32px;
  color: rgba(30, 41, 59, 0.44);
  font-size: 13px;
}
