body {
  font-family: 'Inter', sans-serif;
  scroll-behavior: smooth;
}

.view {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.view.active {
  display: block;
  opacity: 1;
}

/* Modal Styling & Animation */
.modal-bg {
  backdrop-filter: blur(5px);
  background-color: rgba(15, 23, 42, 0.6);
  transition: opacity 0.3s ease-in-out;
}

.modal-content {
  opacity: 0;
  transform: scale(0.95) translateY(10px);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.modal-bg:not(.hidden) .modal-content {
  opacity: 1;
  transform: scale(1) translateY(0);
}


.vote-btn.active-up {
  background-color: #10b981;
  color: white;
  border-color: #10b981;
}

.vote-btn.active-down {
  background-color: #ef4444;
  color: white;
  border-color: #ef4444;
}

.notification-dot {
  position: absolute;
  top: 0;
  right: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #ef4444;
  border: 2px solid #fff;
}

/* Toast Notifications */
.toast {
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 100;
  font-weight: 500;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast-success {
  background-color: #ecfdf5;
  color: #047857;
  border-left: 4px solid #10b981;
}

.toast-error {
  background-color: #fff1f2;
  color: #be123c;
  border-left: 4px solid #f43f5e;
}

/* Loading Spinner */
.loader {
  width: 48px;
  height: 48px;
  border: 5px solid #e2e8f0;
  border-bottom-color: #3b82f6;
  border-radius: 50%;
  display: block;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
  margin: 2rem auto;
}

.loader-sm {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-bottom-color: #fff;
  border-radius: 50%;
  display: inline-block;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Skeleton Loading */
@keyframes pulse {
  50% {
    opacity: .5;
  }
}

.skeleton-card {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.skeleton-line {
  background-color: #e2e8f0;
  /* slate-200 */
  border-radius: 0.25rem;
}

.skeleton-button {
  background-color: #e2e8f0;
  border-radius: 0.5rem;
}