* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Inter", sans-serif;
  overflow-x: hidden;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Plus Jakarta Sans", sans-serif;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
.dark ::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 3px;
}
html:not(.dark) ::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #7c3aed;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
.gradient-animate {
  background-size: 200% 200%;
  animation: gradientShift 4s ease infinite;
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
.float-animation {
  animation: float 3s ease-in-out infinite;
}
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.slide-down {
  animation: slideDown 0.3s ease forwards;
}
@keyframes livePulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.5);
    opacity: 0.5;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
.live-dot {
  animation: livePulse 1.5s ease-in-out infinite;
}
@keyframes toastIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
.toast-in {
  animation: toastIn 0.4s ease forwards;
}
@keyframes zoomIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
.zoom-in {
  animation: zoomIn 0.3s ease forwards;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.fade-in {
  animation: fadeIn 0.3s ease forwards;
}
@keyframes bounce-in {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}
.bounce-in {
  animation: bounce-in 0.5s ease forwards;
}

.sidebar {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.sidebar-link {
  transition: all 0.2s ease;
}
.dark .sidebar-link:hover,
.dark .sidebar-link.active {
  background: linear-gradient(
    135deg,
    rgba(124, 58, 237, 0.15),
    rgba(6, 182, 212, 0.1)
  );
}
html:not(.dark) .sidebar-link:hover,
html:not(.dark) .sidebar-link.active {
  background: linear-gradient(
    135deg,
    rgba(124, 58, 237, 0.08),
    rgba(6, 182, 212, 0.05)
  );
}
.sidebar-link.active {
  border-right: 3px solid #7c3aed;
}

.cat-card {
  transition: all 0.3s;
}
.cat-card:hover {
  transform: translateY(-5px);
}
.dark .cat-card:hover {
  box-shadow: 0 20px 40px rgba(124, 58, 237, 0.2);
}
html:not(.dark) .cat-card:hover {
  box-shadow: 0 20px 40px rgba(124, 58, 237, 0.12);
}

.faq-item {
  transition: all 0.3s;
}
.faq-item.open {
  background: linear-gradient(
    135deg,
    rgba(124, 58, 237, 0.05),
    rgba(6, 182, 212, 0.03)
  );
}
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-item.open .faq-content {
  max-height: 500px;
}
.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}
.faq-chevron {
  transition: transform 0.3s;
}

.article-card {
  transition: all 0.3s;
}
.article-card:hover {
  transform: translateY(-3px);
}
.dark .article-card:hover {
  box-shadow: 0 15px 30px rgba(124, 58, 237, 0.15);
}
html:not(.dark) .article-card:hover {
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.tab-btn {
  transition: all 0.2s;
}
.tab-btn.active {
  background: linear-gradient(135deg, #7c3aed, #06b6d4);
  color: white;
}

.hide-scrollbar::-webkit-scrollbar {
  display: none;
}
.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Chat bubble */
@keyframes messagePop {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.msg-pop {
  animation: messagePop 0.3s ease forwards;
}
