/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #1e293b; }
::-webkit-scrollbar-thumb { background: #475569; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #64748b; }

/* KPI Cards */
.kpi-card {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1rem;
  padding: 1.25rem;
  transition: all 0.2s;
}
.kpi-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(59,130,246,0.3);
  transform: translateY(-2px);
}

/* Status badge */
.status-active { color: #4ade80; }
.status-paused { color: #fbbf24; }
.status-inactive { color: #f87171; }

/* Variation indicators */
.var-positive { color: #4ade80; }
.var-negative { color: #f87171; }

/* Table */
.data-table { border-collapse: separate; border-spacing: 0; }
.data-table th {
  position: sticky; top: 0;
  background: #1e293b;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.data-table th:hover { background: #334155; }
.data-table td { white-space: nowrap; }
.data-table tbody tr { transition: background 0.15s; }
.data-table tbody tr:hover { background: rgba(255,255,255,0.05); }

/* Suggestion card */
.suggestion-card {
  border-left: 3px solid;
  padding: 0.75rem 1rem;
  border-radius: 0 0.5rem 0.5rem 0;
  background: rgba(255,255,255,0.03);
}
.suggestion-high { border-color: #f87171; }
.suggestion-medium { border-color: #fbbf24; }
.suggestion-low { border-color: #60a5fa; }

/* Chart container */
.chart-box {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1rem;
  padding: 1rem;
}

/* Loading skeleton */
.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 0.5rem;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Token status */
.token-green { color: #4ade80; }
.token-yellow { color: #fbbf24; }
.token-red { color: #f87171; }

/* AI Analysis */
.ai-suggestion-card {
  transition: all 0.2s;
}
.ai-suggestion-card:hover {
  transform: translateX(2px);
}
.ai-result-header {
  transition: all 0.2s;
}
.ai-loading-container {
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.ai-brain-animation {
  position: relative;
}
.ai-brain-animation::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168,85,247,0.15) 0%, transparent 70%);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.2); opacity: 1; }
}

/* Settings page */
.settings-input:focus {
  border-color: rgba(59,130,246,0.5);
}
