/* ============================================
   Feedback — flash messages, empty states,
   spinners, status indicators
   ============================================ */

/* Flash messages */
.flash-messages {
  position: fixed;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.flash {
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-hover);
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.flash.notice {
  background-color: var(--color-success-bg);
  color: #1a7f1f;
  border: 1px solid var(--color-success);
}

.flash.alert {
  background-color: #fee2e2;
  color: #b91c1c;
  border: 1px solid var(--color-danger);
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: var(--space-xxl);
  color: var(--color-text-secondary);
}

.empty-state p {
  margin-bottom: var(--space-sm);
}

.empty-state .muted {
  color: var(--color-text-muted);
  font-size: 14px;
}

.empty-state .btn {
  margin-top: var(--space-lg);
}

.empty-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 300;
  margin: 0 auto var(--space-lg);
}

/* Spinner */
.spinner {
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Inline button spinner */
.btn-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Status indicator */
.status-indicator {
  flex-shrink: 0;
}

.status-indicator .spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--color-gray-20);
  border-top: 3px solid var(--color-primary);
}

.status-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
}

.status-icon.success {
  background: var(--color-success-bg);
  color: var(--color-success);
}

.status-icon.error {
  background: #fee2e2;
  color: var(--color-danger);
}

/* Text helpers */
.text-danger {
  color: var(--color-danger);
  font-weight: 600;
}

.text-success {
  color: var(--color-success);
  font-weight: 600;
}

.text-muted {
  color: var(--color-text-muted);
}

.muted {
  color: var(--color-text-muted);
}
