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

:root {
  color-scheme: light;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #1e293b;

  /* ── Design tokens ── */
  --violet: #5B4FE8;
  --violet-light: #9B59F5;
  --gradient: linear-gradient(135deg, #5B4FE8 0%, #9B59F5 100%);
  --white: #ffffff;
  --gray-50: #f8f9fc;
  --gray-100: #f1f3f8;
  --gray-200: #e2e8f0;
  --gray-400: #94a3b8;
  --gray-600: #475569;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(91,79,232,0.12), 0 2px 6px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 40px rgba(91,79,232,0.18), 0 4px 12px rgba(0,0,0,0.08);

  /* ── Compatibilité pages auth ── */
  --text: #1e293b;
  --muted: #475569;
  --border: #e2e8f0;
  --shadow-strong: 0 20px 60px rgba(91,79,232,0.15), 0 4px 16px rgba(0,0,0,0.08);
  --accent: #5B4FE8;

  /* ── Sidebar ── */
  --sidebar-width: 240px;
  --sidebar-collapsed-width: 64px;
  --sidebar-transition: 0.25s ease;
  --sidebar-bg: #ffffff;
  --sidebar-border: #e2e8f0;
  --sidebar-active-bg: #f5f3ff;
  --sidebar-active-text: #5B4FE8;
  --sidebar-hover-bg: #f8fafc;

  /* ── Champs de saisie ── */
  --input-border: var(--gray-200);
  --input-border-focus: var(--violet);
  --input-radius: 0.7rem;
  --input-focus-ring: 0 0 0 3px rgba(91, 79, 232, 0.2);
}

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #ffffff;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

p.empty {
  color: #475569;
}

[data-horizontal-scroll] {
  cursor: grab;
}

[data-horizontal-scroll]:active {
  cursor: grabbing;
}

.positive {
  color: #0a8a3b;
  font-weight: 600;
}

.negative {
  color: #c0392b;
  font-weight: 600;
}

.pending-positive {
  color: rgba(10, 138, 59, 0.6);
  font-weight: 600;
}

.pending-negative {
  color: rgba(192, 57, 43, 0.6);
  font-weight: 600;
}

.pending-neutral {
  color: #7b869c;
  font-weight: 600;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(91, 79, 232, 0.6); }
  100% { box-shadow: 0 0 0 16px rgba(91, 79, 232, 0); }
}
