/* ============================================================
   ALPHA BOOTES ENTERPRISE PLATFORM
   Component Styles: Buttons, Cards, Tables, Forms, Modals, Badges, Tabs
   ============================================================ */

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  padding: 8px 16px;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  line-height: 1;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: white;
  opacity: 0;
  transition: opacity var(--transition-fast);
}
.btn:hover::after { opacity: 0.06; }
.btn:active::after { opacity: 0.1; }

.btn-primary {
  background: var(--accent-gradient);
  color: var(--text-inverse);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  box-shadow: var(--shadow-glow), var(--shadow-md);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-secondary);
}
.btn-secondary:hover {
  border-color: var(--border-hover);
  background: var(--bg-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}
.btn-ghost:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.btn-danger {
  background: var(--status-danger);
  color: white;
}

.btn-outline-accent {
  background: transparent;
  color: var(--accent-primary);
  border-color: var(--border-accent);
}
.btn-outline-accent:hover {
  background: var(--accent-muted);
}

.btn-sm {
  padding: 5px 10px;
  font-size: var(--fs-xs);
}

.btn-lg {
  padding: 12px 24px;
  font-size: var(--fs-md);
}

.btn-icon {
  width: 32px;
  height: 32px;
  padding: 0;
}

.btn-icon.btn-sm {
  width: 28px;
  height: 28px;
}

.btn .spinner {
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.card:hover {
  border-color: var(--border-hover);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-base) var(--sp-lg);
  border-bottom: 1px solid var(--border-primary);
}

.card-title {
  font-size: var(--fs-md);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
}

.card-body {
  padding: var(--sp-lg);
}

.card-footer {
  padding: var(--sp-md) var(--sp-lg);
  border-top: 1px solid var(--border-primary);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--sp-sm);
}

/* ── Stat Cards (KPI) ─────────────────────────────────────── */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  padding: var(--sp-lg);
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
  transition: all var(--transition-fast);
  position: relative;
}

.stat-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.stat-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stat-card-label {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  font-weight: var(--fw-medium);
}

.stat-card-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-lg);
}

.stat-card-value {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.stat-card-change {
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
}

.stat-card-change.up { color: var(--status-success); }
.stat-card-change.down { color: var(--status-danger); }
.stat-card-change.neutral { color: var(--text-muted); }

/* ── Data Table ───────────────────────────────────────────── */
.data-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table thead {
  position: sticky;
  top: 0;
  z-index: 1;
}

.data-table th {
  background: var(--bg-surface);
  padding: var(--sp-md) var(--sp-base);
  text-align: left;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-primary);
  white-space: nowrap;
  user-select: none;
}

.data-table th.sortable {
  cursor: pointer;
  transition: color var(--transition-fast);
}

.data-table th.sortable:hover {
  color: var(--text-primary);
}

.data-table th .sort-icon {
  display: inline-flex;
  margin-left: 4px;
  opacity: 0.4;
  vertical-align: middle;
}

.data-table th.sorted .sort-icon {
  opacity: 1;
  color: var(--accent-primary);
}

.data-table td {
  padding: var(--sp-md) var(--sp-base);
  font-size: var(--fs-sm);
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-primary);
  vertical-align: middle;
}

.data-table tbody tr {
  transition: background var(--transition-fast);
}

.data-table tbody tr:hover {
  background: var(--bg-hover);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr.selected {
  background: var(--accent-subtle);
}

.data-table .cell-actions {
  display: flex;
  gap: var(--sp-xs);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.data-table tbody tr:hover .cell-actions {
  opacity: 1;
}

/* Table Checkbox */
.data-table .cell-check {
  width: 40px;
  text-align: center;
}

.data-table .cell-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent-primary);
  cursor: pointer;
}

/* Pagination */
.table-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-md) var(--sp-base);
  font-size: var(--fs-sm);
  color: var(--text-muted);
  border-top: 1px solid var(--border-primary);
}

.pagination-info {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
}

.pagination-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.pagination-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.pagination-btn.active {
  background: var(--accent-muted);
  color: var(--accent-primary);
  border-color: var(--border-accent);
}

.pagination-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* ── Filter Bar ───────────────────────────────────────────── */
.filter-bar {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  margin-bottom: var(--sp-lg);
  flex-wrap: wrap;
}

.filter-search {
  position: relative;
  flex: 1;
  min-width: 200px;
  max-width: 400px;
}

.filter-search-input {
  width: 100%;
  height: 38px;
  padding: 0 var(--sp-base) 0 38px;
  font-size: var(--fs-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
}

.filter-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.filter-select {
  height: 38px;
  min-width: 140px;
  padding: 0 32px 0 12px;
  font-size: var(--fs-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
}

.filter-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-xs);
  padding: 5px 10px;
  font-size: var(--fs-xs);
  background: var(--accent-muted);
  color: var(--accent-primary);
  border-radius: var(--radius-full);
  cursor: default;
}

.filter-tag-remove {
  cursor: pointer;
  opacity: 0.6;
  transition: opacity var(--transition-fast);
}

.filter-tag-remove:hover {
  opacity: 1;
}

/* ── Badges ───────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  border-radius: var(--radius-full);
  white-space: nowrap;
}

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

.badge-warning {
  background: var(--status-warning-bg);
  color: var(--status-warning);
}

.badge-danger {
  background: var(--status-danger-bg);
  color: var(--status-danger);
}

.badge-info {
  background: var(--status-info-bg);
  color: var(--status-info);
}

.badge-neutral {
  background: var(--status-neutral-bg);
  color: var(--status-neutral);
}

.badge-accent {
  background: var(--accent-muted);
  color: var(--accent-primary);
}

.badge-dot::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* ── Tabs ─────────────────────────────────────────────────── */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border-primary);
  margin-bottom: var(--sp-lg);
  overflow-x: auto;
}

.tab {
  padding: var(--sp-md) var(--sp-lg);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
  white-space: nowrap;
  position: relative;
}

.tab:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.tab.active {
  color: var(--accent-primary);
  border-bottom-color: var(--accent-primary);
}

.tab-badge {
  font-size: 10px;
  padding: 1px 6px;
  margin-left: 6px;
  background: var(--bg-hover);
  border-radius: var(--radius-full);
  color: var(--text-muted);
}

.tab.active .tab-badge {
  background: var(--accent-muted);
  color: var(--accent-primary);
}

/* ── Modal ────────────────────────────────────────────────── */
.modal-overlay {
  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(--sp-xl);
  animation: fadeIn 200ms both;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-secondary);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
  animation: scaleIn 250ms both;
}

.modal-lg { max-width: 720px; }
.modal-xl { max-width: 960px; }
.modal-full { max-width: calc(100vw - 80px); }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-lg) var(--sp-xl);
  border-bottom: 1px solid var(--border-primary);
  flex-shrink: 0;
}

.modal-title {
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
}

.modal-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.modal-body {
  padding: var(--sp-xl);
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--sp-sm);
  padding: var(--sp-base) var(--sp-xl);
  border-top: 1px solid var(--border-primary);
  flex-shrink: 0;
}

/* ── Form Groups ──────────────────────────────────────────── */
.form-group {
  margin-bottom: var(--sp-lg);
}

.form-label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--text-secondary);
  margin-bottom: var(--sp-xs);
}

.form-label .required {
  color: var(--status-danger);
  margin-left: 2px;
}

.form-hint {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin-top: var(--sp-xs);
}

.form-error {
  font-size: var(--fs-xs);
  color: var(--status-danger);
  margin-top: var(--sp-xs);
}

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
  border-color: var(--status-danger);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--sp-lg);
}

/* ── Toast / Notification ─────────────────────────────────── */
.toast-container {
  position: fixed;
  top: var(--sp-xl);
  right: var(--sp-xl);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-md);
  padding: var(--sp-md) var(--sp-lg);
  min-width: 320px;
  max-width: 440px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-secondary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  animation: slideInRight var(--transition-normal) both;
  pointer-events: all;
  position: relative;
}

.toast-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 1px;
}

.toast-content {
  flex: 1;
  min-width: 0;
}

.toast-title {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  margin-bottom: 2px;
}

.toast-message {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
}

.toast-close {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: color var(--transition-fast);
}

.toast-close:hover {
  color: var(--text-primary);
}

.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  transition: width linear;
}

.toast.success { border-left: 3px solid var(--status-success); }
.toast.success .toast-icon { color: var(--status-success); }
.toast.success .toast-progress { background: var(--status-success); }

.toast.warning { border-left: 3px solid var(--status-warning); }
.toast.warning .toast-icon { color: var(--status-warning); }
.toast.warning .toast-progress { background: var(--status-warning); }

.toast.danger { border-left: 3px solid var(--status-danger); }
.toast.danger .toast-icon { color: var(--status-danger); }
.toast.danger .toast-progress { background: var(--status-danger); }

.toast.info { border-left: 3px solid var(--status-info); }
.toast.info .toast-icon { color: var(--status-info); }
.toast.info .toast-progress { background: var(--status-info); }

/* ── Dropdown ─────────────────────────────────────────────── */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 180px;
  padding: var(--sp-xs);
  background: var(--bg-elevated);
  border: 1px solid var(--border-secondary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: var(--z-dropdown);
  animation: fadeInDown 150ms both;
  display: none;
}

.dropdown-menu.open {
  display: block;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  padding: var(--sp-sm) var(--sp-md);
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.dropdown-item:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.dropdown-item.danger {
  color: var(--status-danger);
}

.dropdown-divider {
  height: 1px;
  margin: var(--sp-xs) 0;
  background: var(--border-primary);
}

/* ── Avatar ───────────────────────────────────────────────── */
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: var(--fw-semibold);
  flex-shrink: 0;
  overflow: hidden;
}

.avatar-xs { width: 24px; height: 24px; font-size: 10px; }
.avatar-sm { width: 32px; height: 32px; font-size: var(--fs-sm); }
.avatar-md { width: 40px; height: 40px; font-size: var(--fs-md); }
.avatar-lg { width: 48px; height: 48px; font-size: var(--fs-lg); }
.avatar-xl { width: 64px; height: 64px; font-size: var(--fs-xl); }

/* ── Loading Spinner ──────────────────────────────────────── */
.loading-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4xl);
}

.loading-spinner::after {
  content: '';
  width: 32px;
  height: 32px;
  border: 3px solid var(--border-primary);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* ── Divider ──────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border-primary);
  margin: var(--sp-lg) 0;
}

/* ── Grid Layouts ─────────────────────────────────────────── */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-lg);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-lg);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-lg);
}

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .grid-4, .grid-3, .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* ── Tooltip ──────────────────────────────────────────────── */
[data-tooltip] {
  position: relative;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 8px;
  font-size: 11px;
  font-weight: var(--fw-medium);
  color: var(--text-primary);
  background: var(--bg-elevated);
  border: 1px solid var(--border-secondary);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  z-index: var(--z-tooltip);
  transition: opacity var(--transition-fast);
}

[data-tooltip]:hover::after {
  opacity: 1;
}

/* ═══════════════════════════════════════════════════════════════
   PHASE 2 — SPRINT 1 UI COMPONENT LIBRARY
   ═══════════════════════════════════════════════════════════════ */

/* ── Kanban Board ─────────────────────────────────────────── */
.ab-kanban {
  scrollbar-width: thin;
  scrollbar-color: var(--border-secondary) transparent;
}

.ab-kanban::-webkit-scrollbar { height: 6px; }
.ab-kanban::-webkit-scrollbar-track { background: transparent; }
.ab-kanban::-webkit-scrollbar-thumb {
  background: var(--border-secondary);
  border-radius: 3px;
}

.ab-kanban-card:hover {
  border-color: var(--border-hover) !important;
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.ab-kanban-card:active {
  cursor: grabbing;
  opacity: 0.85;
}

.ab-kanban-cards {
  scrollbar-width: thin;
  scrollbar-color: var(--border-secondary) transparent;
}

/* ── Status Badge ─────────────────────────────────────────── */
.ab-status-badge {
  transition: all var(--transition-fast);
}

.ab-status-badge:hover {
  filter: brightness(1.15);
}

.ab-transition-btn:hover {
  border-color: var(--accent-primary) !important;
  color: var(--accent-primary) !important;
  background: var(--accent-subtle) !important;
}

/* ── Detail Panel ─────────────────────────────────────────── */
.ab-detail-header {
  animation: fadeInUp 0.3s ease both;
}

.ab-detail-section {
  animation: fadeInUp 0.3s ease both;
}

.ab-detail-section:nth-child(1) { animation-delay: 0.05s; }
.ab-detail-section:nth-child(2) { animation-delay: 0.1s; }
.ab-detail-section:nth-child(3) { animation-delay: 0.15s; }
.ab-detail-section:nth-child(4) { animation-delay: 0.2s; }

.ab-section-header:hover {
  background: var(--bg-hover) !important;
}

.ab-tab-btn:hover {
  color: var(--text-primary) !important;
  background: var(--bg-hover);
}

/* ── Chart Widget ─────────────────────────────────────────── */
@keyframes ab-bar-grow {
  from {
    transform: scaleY(0);
    transform-origin: bottom;
    opacity: 0;
  }
  to {
    transform: scaleY(1);
    transform-origin: bottom;
    opacity: 0.9;
  }
}

.ab-chart-bar:hover {
  opacity: 1 !important;
  filter: brightness(1.2);
}

/* ── Dropdown Picker ──────────────────────────────────────── */
.ab-dp-trigger:hover {
  border-color: var(--border-hover) !important;
}

.ab-dp-trigger:focus {
  border-color: var(--border-focus) !important;
  box-shadow: 0 0 0 3px var(--accent-subtle);
  outline: none;
}

.ab-dp-panel {
  animation: fadeInDown 0.15s ease both;
}

.ab-dp-option:hover {
  background: var(--bg-hover) !important;
}

.ab-dp-option:active {
  background: var(--accent-subtle) !important;
}

/* ── Page Header ──────────────────────────────────────────── */
.ab-page-header {
  animation: fadeInUp 0.3s ease both;
}

.ab-breadcrumbs a:hover {
  color: var(--accent-primary) !important;
}

.ab-page-tab:hover {
  color: var(--text-primary) !important;
  background: var(--bg-hover);
}

.ab-page-tab.active {
  color: var(--accent-primary) !important;
  border-bottom-color: var(--accent-primary) !important;
}

/* ── Dashboard Grid (used by KPI cards) ───────────────────── */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--sp-lg);
}

@media (max-width: 640px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Empty State ──────────────────────────────────────────── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--sp-4xl) var(--sp-xl);
  color: var(--text-muted);
}

.empty-state-icon {
  margin-bottom: var(--sp-lg);
  opacity: 0.4;
  color: var(--text-muted);
}

.empty-state-title {
  font-size: var(--fs-md);
  font-weight: var(--fw-semibold);
  color: var(--text-secondary);
  margin-bottom: var(--sp-sm);
}

.empty-state-description {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  max-width: 320px;
}

/* ── Skeleton Loading ─────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg,
    var(--bg-surface) 25%,
    var(--bg-hover) 37%,
    var(--bg-surface) 63%
  );
  background-size: 200% 100%;
  animation: skeleton-pulse 1.4s ease infinite;
  border-radius: var(--radius-sm);
}

.skeleton-text { height: 14px; margin-bottom: 8px; }
.skeleton-text:last-child { width: 60%; }
.skeleton-title { height: 20px; width: 40%; margin-bottom: 12px; }
.skeleton-avatar { width: 40px; height: 40px; border-radius: 50%; }
.skeleton-card { height: 120px; border-radius: var(--radius-lg); }

@keyframes skeleton-pulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Animations ───────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.animate-fadeInUp {
  animation: fadeInUp 0.4s ease both;
}

