/**
 * @file public/css/components.css
 * @description FoxBoxo Standardized Component System (UX-5 Product Polish).
 */

/* -------------------------------------------------------------------------- */
/* 1. Button Hierarchy                                                        */
/* -------------------------------------------------------------------------- */

.btn-fox-primary {
  background-color: var(--fox-brand-primary, #5BB4F5);
  color: #ffffff;
  border: none;
  font-weight: 600;
  border-radius: 9999px;
  padding: 8px 20px;
  transition: all 0.2s ease;
}

.btn-fox-primary:hover {
  background-color: #3fa3e8;
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-fox-secondary {
  background-color: var(--fox-brand-blue, #5BB4F5);
  color: #062033;
  border: none;
  font-weight: 600;
  border-radius: 9999px;
  padding: 8px 18px;
  transition: all 0.2s ease;
}

.btn-fox-secondary:hover {
  background-color: #4aa8e6;
  color: #062033;
}

.btn-fox-ghost {
  background-color: transparent;
  color: #64748b;
  border: none;
  font-weight: 500;
  border-radius: 9999px;
  padding: 6px 14px;
  transition: all 0.2s ease;
}

.btn-fox-ghost:hover {
  background-color: #f1f5f9;
  color: #0f172a;
}

.btn-fox-danger {
  background-color: #ef4444;
  color: #ffffff;
  border: none;
  font-weight: 600;
  border-radius: 9999px;
  padding: 8px 18px;
}

.btn-fox-danger:hover {
  background-color: #dc2626;
  color: #ffffff;
}

/* -------------------------------------------------------------------------- */
/* 2. Status Badge System                                                     */
/* -------------------------------------------------------------------------- */

.fox-status-success {
  background-color: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 9999px;
}

.fox-status-warning {
  background-color: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 9999px;
}

.fox-status-danger {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 9999px;
}

.fox-status-info {
  background-color: #e0f2fe;
  color: #075985;
  border: 1px solid #bae6fd;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 9999px;
}

.fox-status-purple {
  background-color: #f3e8ff;
  color: #6b21a8;
  border: 1px solid #e9d5ff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 9999px;
}

/* -------------------------------------------------------------------------- */
/* 3. Data Honesty & Intelligence Quality Badges                              */
/* -------------------------------------------------------------------------- */

.fox-data-real {
  background-color: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 6px;
}

.fox-data-derived {
  background-color: #f0f9ff;
  color: #0369a1;
  border: 1px solid #bae6fd;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 6px;
}

.fox-data-estimated {
  background-color: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 6px;
}

.fox-data-not-connected {
  background-color: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 6px;
}

.fox-data-insufficient {
  background-color: #f8fafc;
  color: #64748b;
  border: 1px solid #e2e8f0;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 6px;
}

/* -------------------------------------------------------------------------- */
/* 4. Confidence Bar Indicator                                                */
/* -------------------------------------------------------------------------- */

.fox-confidence-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fox-confidence-bar {
  height: 6px;
  background-color: #e2e8f0;
  border-radius: 9999px;
  overflow: hidden;
  flex-grow: 1;
}

.fox-confidence-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6 0%, #7c3aed 100%);
  border-radius: 9999px;
}

/* -------------------------------------------------------------------------- */
/* 5. Existing Legacy & Shared Styles                                         */
/* -------------------------------------------------------------------------- */

.empty-state {
  padding: 2rem 1rem;
}

.empty-state-icon {
  opacity: 0.8;
}

.flash-alert {
  animation: slideDown 0.3s ease;
}

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

.btn-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.8;
}

.btn-loading .spinner-border {
  width: 1rem;
  height: 1rem;
  margin-right: 0.5rem;
}

.notification-dropdown {
  width: 360px;
  max-height: 400px;
  overflow-y: auto;
}

.notification-item {
  white-space: normal;
  border-bottom: 1px solid var(--bs-border-color);
}

.notification-item.unread {
  background: rgba(var(--bs-primary-rgb), 0.05);
}

.notification-badge-count {
  position: absolute;
  top: 2px;
  right: 2px;
  font-size: 0.65rem;
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  padding: 0 4px;
}

.form-help-text {
  font-size: 0.8rem;
  color: var(--bs-secondary);
}

.table-actions .btn {
  margin-right: 0.25rem;
}
