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

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.light-mode {
  background: linear-gradient(135deg, #f8fafc 0%, #e8f0fe 50%, #f0f7ff 100%);
  color: #1e293b;
}

body.dark-mode {
  background: linear-gradient(135deg, #0a1628 0%, #0f1d32 50%, #0c1a2e 100%);
  color: #e2e8f0;
}

.font-tabular {
  font-variant-numeric: tabular-nums;
}

.card-enter {
  animation: cardEnter 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cardEnter {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.toast-enter {
  animation: toastSlide 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast-exit {
  animation: toastSlideOut 0.3s ease-in forwards;
}

@keyframes toastSlide {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toastSlideOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(20px);
  }
}

.chip-pop {
  animation: chipPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes chipPop {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
}

.btn-press:active {
  transform: scale(0.96);
}

.btn-press {
  transition: transform 0.1s ease, box-shadow 0.2s ease;
}

.checkbox-custom {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.checkbox-custom:checked {
  animation: checkBounce 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes checkBounce {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 3px;
}

.dark-mode ::-webkit-scrollbar-thumb {
  background: #475569;
}