@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

html, body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  scroll-behavior: smooth;
  background-color: #f8fafc;
}

/* Custom Scrollbar for Dashboard Sidebar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Animations */
.animate-fade-in {
  animation: fadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

.animate-check {
  animation: scaleCheck 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes scaleCheck {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* Glassmorphism Panel */
.glass-panel {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.hidden-view {
  display: none !important;
}

/* Custom Checkbox visual tweak */
input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    background-color: #fff;
    margin: 0;
    font: inherit;
    color: currentColor;
    border: 2px solid #cbd5e1;
    border-radius: 0.35rem;
    display: grid;
    place-content: center;
}

input[type="checkbox"]:checked {
    background-color: #4f46e5;
    border-color: #4f46e5;
}

/* S-Compass Animations */
.s-compass {
  overflow: visible;
}
.compass-needle {
  transform-origin: 50% 50%;
  animation: oscillateCompass 4s ease-in-out infinite alternate;
}
.compass-s {
  animation: pulseColorS 2s ease-in-out infinite alternate;
}

@keyframes oscillateCompass {
  0% { transform: rotate(-25deg); }
  40% { transform: rotate(15deg); }
  70% { transform: rotate(-10deg); }
  100% { transform: rotate(5deg); }
}

@keyframes pulseColorS {
  0% { fill: #0B2A4A; transform: scale(1); transform-origin: 50% 50%; }
  100% { fill: #d97706; transform: scale(1.05); transform-origin: 50% 50%; }
}
