* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, sans-serif;
  min-height: 100vh;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

::-webkit-scrollbar {
  width: 7px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}

.dark ::-webkit-scrollbar-thumb {
  background: #334155;
}

.glass {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.dark .glass {
  background: rgba(15, 23, 42, 0.78);
}

.card {
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  background: white;
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.055);
}

.dark .card {
  background: #0f172a;
  border-color: #1e293b;
  box-shadow: none;
}

.gradient-text {
  background: linear-gradient(90deg, #2563eb, #06b6d4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.progress-bar {
  transition: width 0.5s ease;
}

.sidebar-item {
  transition: all 0.2s ease;
}

.sidebar-item:hover {
  transform: translateX(2px);
}

.modal-backdrop {
  animation: fadeIn 0.2s ease;
}

.modal-box {
  animation: modalIn 0.25s ease;
}

.toast {
  animation: toastIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(15px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.pulse-dot {
  animation: pulseDot 1.8s infinite;
}

@keyframes pulseDot {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.35);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(37, 99, 235, 0);
  }
}

@media (max-width: 768px) {
  .mobile-sidebar {
    transform: translateX(-100%);
    transition: transform 0.25s ease;
  }

  .mobile-sidebar.open {
    transform: translateX(0);
  }
}

input::placeholder,
textarea::placeholder {
  color: #94a3b8;
}

.dark input,
.dark textarea,
.dark select {
  color: #f8fafc;
}

canvas {
  max-height: 300px;
}   