/* Custom Scrollbar Styles for Wissenwelle Brand */

/* Webkit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: #f6dcbf;
  border-radius: 6px;
  border: 1px solid #042b46;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #1db6ea, #042b46);
  border-radius: 6px;
  border: 1px solid #042b46;
  transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #042b46, #1db6ea);
  transform: scale(1.05);
}

::-webkit-scrollbar-thumb:active {
  background: #042b46;
}

::-webkit-scrollbar-corner {
  background: #f6dcbf;
  border-radius: 6px;
}

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: #1db6ea #f6dcbf;
}

/* Custom scrollbar for specific elements */
.custom-scrollbar::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: rgba(246, 220, 191, 0.3);
  border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #1db6ea, #042b46);
  border-radius: 4px;
  border: 1px solid rgba(4, 43, 70, 0.3);
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #042b46, #1db6ea);
}

/* Thin scrollbar for small elements */
.thin-scrollbar::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.thin-scrollbar::-webkit-scrollbar-track {
  background: rgba(246, 220, 191, 0.2);
  border-radius: 3px;
}

.thin-scrollbar::-webkit-scrollbar-thumb {
  background: #1db6ea;
  border-radius: 3px;
}

.thin-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #042b46;
}

/* Horizontal scrollbar styles */
.horizontal-scroll::-webkit-scrollbar {
  height: 8px;
  width: auto;
}

.horizontal-scroll::-webkit-scrollbar-track {
  background: rgba(246, 220, 191, 0.3);
  border-radius: 4px;
}

.horizontal-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #1db6ea, #042b46);
  border-radius: 4px;
}

.horizontal-scroll::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, #042b46, #1db6ea);
}

/* Dark theme scrollbar variant */
.dark-scrollbar::-webkit-scrollbar-track {
  background: rgba(4, 43, 70, 0.3);
}

.dark-scrollbar::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #1db6ea, #f6dcbf);
}

.dark-scrollbar::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #f6dcbf, #1db6ea);
}

/* Smooth scrolling for the entire page */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar for contract content */
.contract-content::-webkit-scrollbar {
  width: 10px;
}

.contract-content::-webkit-scrollbar-track {
  background: rgba(246, 220, 191, 0.2);
  border-radius: 5px;
  margin: 5px;
}

.contract-content::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #1db6ea, #042b46);
  border-radius: 5px;
  border: 1px solid rgba(4, 43, 70, 0.2);
}

.contract-content::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #042b46, #1db6ea);
}

/* Responsive scrollbar adjustments */
@media (max-width: 768px) {
  ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }

  .contract-content::-webkit-scrollbar {
    width: 6px;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  ::-webkit-scrollbar-thumb {
    background: #042b46;
    border: 2px solid #f6dcbf;
  }

  ::-webkit-scrollbar-track {
    background: #f6dcbf;
    border: 2px solid #042b46;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  ::-webkit-scrollbar-thumb {
    transition: none;
  }

  ::-webkit-scrollbar-thumb:hover {
    transform: none;
  }
}
