/* ==========================================================================
   variables.css — Design tokens, base resets, and utility classes
   ProffBankrot Dashboard
   ========================================================================== */

/* Google Fonts — Inter (400–800) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ==========================================================================
   CSS Custom Properties (Design Tokens)
   ========================================================================== */

:root {
  /* Backgrounds */
  --bg: #f8f9fb;
  --white: #fff;

  /* Text */
  --text: #111827;
  --text2: #6b7280;
  --muted: #9ca3af;

  /* Borders */
  --border: #e5e7eb;
  --border2: #f3f4f6;

  /* Accent (Indigo) */
  --accent: #4f46e5;
  --accent-l: #eef2ff;
  --accent-h: #4338ca;

  /* Semantic — Green */
  --green: #10b981;
  --green-l: #ecfdf5;
  --green-b: #d1fae5;

  /* Semantic — Red */
  --red: #ef4444;
  --red-l: #fef2f2;
  --red-b: #fee2e2;

  /* Semantic — Yellow */
  --yellow: #f59e0b;
  --yellow-l: #fffbeb;
  --yellow-b: #fef3c7;

  /* Semantic — Blue */
  --blue: #3b82f6;
  --blue-l: #eff6ff;
  --blue-b: #dbeafe;

  /* Semantic — Purple */
  --purple: #8b5cf6;
  --purple-l: #f5f3ff;

  /* Semantic — Orange */
  --orange: #f97316;
  --orange-l: #fff7ed;

  /* Semantic — Cyan */
  --cyan: #06b6d4;
  --cyan-l: #ecfeff;

  /* Shadows */
  --sh: 0 1px 3px rgba(0,0,0,0.06);
  --sh2: 0 4px 12px rgba(0,0,0,0.08);
  --sh3: 0 8px 32px rgba(0,0,0,0.12);

  /* Radii */
  --r: 12px;
  --r2: 16px;

  /* Layout */
  --sb-w: 260px;
  --panel-w: 480px;
}

/* ==========================================================================
   Universal Reset
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ==========================================================================
   Base Body Styles
   ========================================================================== */

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ==========================================================================
   Utility Classes — Loading, Spinner, Empty States
   ========================================================================== */

/* Loading container */
.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px;
  gap: 16px;
  color: var(--muted);
}

/* Animated spinner */
.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Empty state */
.empty {
  text-align: center;
  padding: 40px;
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.3;
}

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