/* ===============================
   ADVANCED DARK SCROLLBAR DESIGN
   =============================== */

/* Chrome, Edge, Safari */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: rgba(15, 15, 15, 0.9);
  border-radius: 10px;
  box-shadow: inset 0 0 6px rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg,
      #2b2b2b,
      #3f3f3f,
      #2b2b2b);
  border-radius: 10px;
  border: 2px solid rgba(0, 0, 0, 0.8);
  box-shadow:
    inset 0 0 6px rgba(255, 255, 255, 0.15),
    0 0 8px rgba(0, 255, 255, 0.2);
  transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg,
      #4f4f4f,
      #6b6b6b,
      #4f4f4f);
  box-shadow:
    inset 0 0 8px rgba(255, 255, 255, 0.25),
    0 0 12px rgba(0, 255, 255, 0.4);
}

/* Scrollbar corner */
::-webkit-scrollbar-corner {
  background: #0f0f0f;
}

/* Firefox Support */
* {
  scrollbar-width: thin;
  scrollbar-color: #3f3f3f #0f0f0f;
}

/* ----------------------------------------  Search Button */
.surchbtn{
  display: flex;
  justify-content: center;
}
.search-wrapper {
  position: relative;
  top: 53px;
  width: 50px;
  height: 50px;
  background: #111;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 20px #7f5cff,
    inset 0 0 15px #000;
  transition: all .8s cubic-bezier(.68, -0.6, .32, 1.6);
  overflow: hidden;
}

/* Expand Animation */
.search-wrapper.active {
  width: calc(320px + 5vw);
  border-radius: 40px;
}

/* Input */
.search-wrapper input {
  position: absolute;
  left: 30px;
  width: 0;
  height: 40px;
  border: none;
  outline: none;
  background: transparent;
  color: #fff;
  font-size: 16px;
  opacity: 0;
  transform: rotate(-90deg) scale(0.3);
  transition: all .8s cubic-bezier(.68, -0.6, .32, 1.6);
}

/* Input Active */
.search-wrapper.active input {
  width: calc(100% - 90px);
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* Placeholder Animation */
.placeholder {
  position: absolute;
  left: 30px;
  color: #aaa;
  pointer-events: none;
  transform: translateY(20px) skewX(15deg);
  opacity: 0;
  transition: .6s ease;
}

.search-wrapper.active .placeholder {
  opacity: 1;
  transform: translateY(0) skewX(0);
}

/* Floating Placeholder */
.search-wrapper input:focus~.placeholder,
.search-wrapper input:valid~.placeholder {
  transform: translateY(-18px) scale(0.8);
  color: #7f5cff;
}

/* Button */
.search-wrapper button {
  position: absolute;
  right: 0px;
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  background: #7f5cff;
  color: white;
  font-size: 20px;
  cursor: pointer;
  transform: rotate(0deg);
  transition: all .7s ease;
  box-shadow: 0 0 15px #7f5cff;
}

/* Rotate Button */
.search-wrapper.active button {
  transform: rotate(360deg);
}

/* Hover Neon */
.search-wrapper:hover {
  box-shadow:
    0 0 35px #7f5cff,
    0 0 60px #5a3bff;
}