* {
  -webkit-user-select: auto;
  -moz-user-select: auto;
  -ms-user-select: auto;
  user-select: auto;
}

h1,
h2,
h3,
h4,
h5,
h6,
.vp-doc h1,
.vp-doc h2,
.vp-doc h3,
.vp-doc h4,
.vp-doc h5,
.vp-doc h6,
.welcome-container h1 {
  -webkit-user-select: auto !important;
  -moz-user-select: auto !important;
  -ms-user-select: auto !important;
  user-select: auto !important;
}

.vp-doc h1:after,
.vp-doc h2:after,
.vp-doc h3:after {
  background: var(--custom-gradient);
}

.welcome-container h1 {
  font-size: 2.5rem !important;
  margin-bottom: 1.5rem !important;
  position: relative;
  color: var(--vp-c-text-1) !important;
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  padding-bottom: 10px;
  display: inline-block;
}

.welcome-container h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--custom-gradient);
  border-radius: 4px;
}

:root {
  --vp-font-family-base: 'Montserrat', 'Montserrat var', sans-serif;
  --vp-font-family-mono: 'JetBrains Mono', monospace;

  --vp-c-brand-1: #8a2be2;
  --vp-c-brand-2: #9370db;
  --vp-c-brand-3: #ba55d3;

  --vp-home-hero-name-color: transparent;
  --vp-home-hero-name-background: linear-gradient(120deg, #8a2be2 30%, #ba55d3);

  --vp-c-text-1: rgba(255, 255, 255, 0.87);
  --vp-c-text-2: rgba(255, 255, 255, 0.6);

  --custom-gradient: linear-gradient(120deg, var(--vp-c-brand-1) 0%, var(--vp-c-brand-2) 100%);
  --custom-accent: #5e2ca5;
  --custom-accent-soft: rgba(94, 44, 165, 0.2);
}

:root {
  --vp-c-bg: #ffffff;
  --vp-c-bg-soft: #f8f9fa;
  --vp-c-bg-mute: #f1f3f5;

  --vp-c-divider: #e9ecef;
  --vp-c-divider-light: #e9ecef;

  --vp-c-text-1: #212529;
  --vp-c-text-2: #495057;
  --vp-c-text-3: #868e96;
}

.dark {
  --vp-c-bg: #121212;
  --vp-c-bg-soft: #1e1e1e;
  --vp-c-bg-mute: #2a2a2a;

  --vp-c-divider: #333333;
  --vp-c-divider-light: #333333;

  --vp-c-text-1: rgba(255, 255, 255, 0.87);
  --vp-c-text-2: rgba(255, 255, 255, 0.6);
  --vp-c-text-3: rgba(255, 255, 255, 0.38);

  --custom-accent: #b78eff;
  --custom-accent-soft: rgba(183, 142, 255, 0.2);
}

html {
  scroll-behavior: smooth;
}

.VPDoc {
  background: var(--vp-c-bg);
  border-radius: 16px;
  box-shadow: none;
  margin: 0 auto;
  max-width: 1200px;
  position: relative;
}

.VPDoc:before {
  content: '';
  position: absolute;
  top: -5px;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--custom-gradient);
  border-radius: 5px 5px 0 0;
}

.VPDocAside {
  border-left: 2px dashed var(--custom-accent-soft);
  padding-left: 16px;
}

.vp-doc div[class*='language-'] {
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  margin: 1.5rem 0;
  position: relative;
  border-left: 4px solid var(--custom-accent);
}

.vp-doc blockquote {
  border-left: none;
  background-color: var(--vp-c-bg-soft);
  border-radius: 8px;
  padding: 20px 25px;
  margin: 16px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: relative;
  font-style: italic;
}

.vp-doc blockquote:before {
  content: '"';
  font-family: Georgia, serif;
  font-size: 60px;
  position: absolute;
  left: 10px;
  top: -20px;
  color: var(--custom-accent);
  opacity: 0.2;
}

.vp-doc a {
  color: var(--vp-c-brand-1);
  text-decoration: none;
  background-image: linear-gradient(transparent 60%, var(--custom-accent-soft) 40%);
  background-size: 0% 100%;
  background-repeat: no-repeat;
  transition: background-size 0.3s ease;
}

.vp-doc a:hover {
  background-size: 100% 100%;
  color: var(--vp-c-brand-1);
}

.vp-doc img {
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  border: none;
  outline: none;
}

.vp-doc img:hover {
  transform: scale(1.01);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--vp-c-bg-soft);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: var(--custom-gradient);
  border-radius: 6px;
  transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--vp-c-brand-2);
}

.VPSidebar {
  background: var(--vp-c-bg-soft);
  border-right: none;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
  margin-right: 24px;
  border-radius: 0 24px 24px 0;
  padding-right: 8px;
}

.VPSidebarItem.level-1.is-active .text {
  color: var(--vp-c-brand-1);
  font-weight: 600;
}

.VPSidebarItem .text {
  transition: all 0.3s ease;
}

.VPSidebarItem.level-2.is-active .VPSidebarItem .text,
.VPSidebarItem.level-3.is-active .VPSidebarItem .text,
.VPSidebarItem.level-4.is-active .VPSidebarItem .text,
.VPSidebarItem.level-5.is-active .VPSidebarItem .text {
  border-left: 2px solid var(--vp-c-brand-1);
  padding-left: 8px;
  margin-left: -10px;
}

.VPSidebarItem .VPLink {
  display: flex !important;
  align-items: center !important;
}

.VPSidebarItem .item[role='button'] {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.VPSidebarItem .item[role='button'] .text {
  flex: 1;
}

.VPSidebarItem .caret {
  margin-left: 8px;
  margin-right: 4px;
  position: relative;
  top: 1px;
}

.vp-doc h1,
.vp-doc h2,
.vp-doc h3 {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--vp-c-text-1);
  position: relative;
  display: block;
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  margin-bottom: 1rem;
}

.vp-doc h1:after,
.vp-doc h2:after {
  width: 30%;
}

.vp-doc h3:after {
  width: 20%;
}

.vp-doc table {
  display: block;
  overflow-x: auto;
  border: none;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.vp-doc table th {
  background: var(--custom-gradient);
  color: white;
  font-weight: 600;
}

.vp-doc tr {
  border-top: none;
  transition: background-color 0.2s ease;
}

.vp-doc tr:hover {
  background-color: var(--vp-c-bg-soft);
}

.vp-doc tr:nth-child(2n) {
  background-color: var(--vp-c-bg-soft);
}

.vp-doc tr:nth-child(2n):hover {
  background-color: var(--vp-c-bg-mute);
}

.VPFooter {
  border-top: 1px solid var(--vp-c-divider);
  padding: 32px 24px;
  background: linear-gradient(to right, var(--vp-c-bg-soft), var(--vp-c-bg));
  border-radius: 24px 24px 0 0;
  margin-top: 40px;
}

.progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  z-index: 1000;
  overflow: hidden;
}

.progress-bar {
  position: absolute;
  height: 100%;
  width: 100%;
  background: var(--custom-gradient);
  transform-origin: 0 50%;
  transform: scaleX(0);
  transition: transform 0.2s ease;
  box-shadow: 0 0 10px rgba(138, 43, 226, 0.7);
  animation: glow 1.5s ease-in-out infinite alternate;
}

.feature-card {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  border-radius: 16px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
  border: none !important;
  overflow: hidden;
  position: relative;
  background: linear-gradient(145deg, var(--vp-c-bg), var(--vp-c-bg-soft)) !important;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent 95%, var(--vp-c-brand-1) 95%);
  z-index: 0;
}

.feature-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--custom-gradient);
  transition: width 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12) !important;
}

.feature-card:hover::after {
  width: 8px;
}

.feature-card h3,
.feature-card p,
.feature-card .card-icon,
.feature-card .card-link {
  position: relative;
  z-index: 1;
}

.card-link {
  color: white !important;
  font-weight: 600 !important;
  transition: color 0.3s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  padding: 6px 14px !important;
  border-radius: 20px !important;
  background-color: var(--custom-accent-soft) !important;
}

.card-link:hover {
  color: white !important;
  background-color: var(--vp-c-brand-1) !important;
}

.card-link::after {
  content: '→';
  margin-left: 6px;
  transition: transform 0.3s ease;
}

.card-link:hover::after {
  transform: translateX(4px);
}

/* Content heading with underline instead of text gradient */
.content-heading {
  position: relative;
  color: var(--vp-c-text-1) !important;
  display: inline-block;
  font-weight: 700;
  padding-bottom: 8px;
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
}

.content-heading::after {
  content: '';
  position: absolute;
  width: 50%;
  height: 4px;
  background: var(--custom-gradient);
  bottom: 0;
  left: 0;
  border-radius: 4px;
}

/* 404 page still uses text gradients but it's not a problem */
.not-found-title {
  background: var(--custom-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Styling for nav menu - remove blur and transparency */
.VPNavBar {
  background-color: var(--vp-c-bg);
  border-bottom: 1px solid var(--vp-c-divider);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  backdrop-filter: none;
}

.dark .VPNavBar {
  background-color: var(--vp-c-bg);
}

.VPNavBarMenuLink {
  display: flex;
  align-items: center;
  transition: color 0.3s ease;
  padding: 8px 12px !important;
  margin: 0 4px !important;
}

.VPNavBarMenuLink:hover {
  color: var(--vp-c-brand-1) !important;
}

.VPNavBarMenuLink:after {
  content: '';
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--custom-gradient);
  transition: width 0.3s ease;
}

.VPNavBarMenuLink:hover:after {
  width: 100%;
}

.VPButton {
  border-radius: 24px !important;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease !important;
  border: none !important;
  position: relative;
  overflow: hidden;
}

.VPButton.brand {
  background: var(--custom-gradient) !important;
}

.VPButton:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(138, 43, 226, 0.2) !important;
}

.VPButton:after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: -100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.VPButton:hover:after {
  left: 100%;
}

.DocSearch-Button {
  border-radius: 24px !important;
  transition: all 0.3s ease !important;
  background: var(--vp-c-bg-soft) !important;
  border: 1px solid var(--vp-c-divider) !important;
  padding: 0 14px !important;
}

.DocSearch-Button:hover {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1) !important;
  background: var(--vp-c-bg-mute) !important;
}

.DocSearch-Button-Keys {
  display: none !important;
}

.DocSearch-Button-Placeholder {
  font-size: 0.9rem !important;
}

.DocSearch-Search-Icon {
  color: var(--vp-c-brand-1) !important;
}

.welcome-section {
  background: linear-gradient(135deg, rgba(138, 43, 226, 0.1), rgba(186, 85, 211, 0.05)) !important;
  border-radius: 24px !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05) !important;
  border: none !important;
  backdrop-filter: blur(5px) !important;
  padding: 3rem 2rem !important;
  position: relative;
  overflow: hidden;
}

.welcome-section:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(circle at 10% 10%, rgba(138, 43, 226, 0.1) 0%, transparent 30%),
    radial-gradient(circle at 90% 90%, rgba(186, 85, 211, 0.1) 0%, transparent 30%);
  z-index: -1;
}

.welcome-container h1 {
  font-size: 2.5rem !important;
  margin-bottom: 1.5rem !important;
  position: relative;
  color: var(--vp-c-text-1) !important;
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  padding-bottom: 10px;
  display: inline-block;
}

.welcome-container h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--custom-gradient);
  border-radius: 4px;
}

.content-item {
  transition:
    transform 0.3s ease,
    background 0.3s ease !important;
  border-radius: 12px !important;
  padding: 12px 16px !important;
  border-left: 3px solid transparent !important;
}

.content-item:hover {
  transform: translateY(-3px) !important;
  background: var(--vp-c-bg-mute) !important;
  border-left: 3px solid var(--vp-c-brand-1) !important;
}

.content-icon {
  font-size: 1.5em !important;
  margin-right: 12px !important;
  display: inline-block !important;
  transition: transform 0.3s ease !important;
}

.content-item:hover .content-icon {
  transform: scale(1.2) !important;
}

.VPContent {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.vp-doc .badge,
.vp-doc [class*='badge-'] {
  display: inline-block;
  font-size: 0.75em;
  padding: 0.25em 0.6em;
  border-radius: 12px;
  background-color: var(--custom-accent-soft);
  color: var(--custom-accent);
  font-weight: 600;
  vertical-align: middle;
  line-height: 1.5;
  margin: 0 0.2em;
}

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

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

@keyframes glow {
  from {
    box-shadow: 0 0 5px rgba(138, 43, 226, 0.5);
  }
  to {
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.8);
  }
}
