* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 20px;
  overflow-x: hidden;
}

/* Animated Background */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 20% 50%,
      rgba(120, 119, 198, 0.3),
      transparent 50%
    ),
    radial-gradient(circle at 80% 80%, rgba(252, 70, 107, 0.3), transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(99, 102, 241, 0.3), transparent 50%);
  animation: backgroundShift 15s ease infinite;
  z-index: -1;
}

@keyframes backgroundShift {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
  }
  50% {
    transform: scale(1.1) rotate(5deg);
  }
}

.container {
  width: 100%;
  max-width: 500px;
  position: relative;
  z-index: 1;
}

.title {
  text-align: center;
  color: white;
  margin-bottom: 40px;
  font-size: 2.5rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  animation: titleFloat 3s ease-in-out infinite;
}

@keyframes titleFloat {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Custom Select Container */
.custom-select {
  position: relative;
  width: 100%;
}

/* Select Trigger Button */
.select-trigger {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 20px 25px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.select-trigger::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.select-trigger:hover::before {
  left: 100%;
}

.select-trigger:hover {
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.select-trigger.active {
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
}

.selected-option {
  display: flex;
  align-items: center;
  gap: 15px;
  color: white;
  font-size: 1.1rem;
  font-weight: 500;
}

.selected-option i {
  font-size: 1.5rem;
  animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.arrow {
  color: white;
  font-size: 1.2rem;
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.select-trigger.active .arrow {
  transform: rotate(180deg);
}

/* Dropdown Container */
.dropdown {
  position: absolute;
  top: calc(100% + 15px);
  left: 0;
  width: 100%;
  background: rgba(30, 30, 50, 0.95);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 15px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  z-index: 1000;
  max-height: 450px;
  display: flex;
  flex-direction: column;
}

.dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Search Box */
.search-box {
  position: relative;
  margin-bottom: 15px;
}

.search-box input {
  width: 100%;
  padding: 15px 45px 15px 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  color: white;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
}

.search-box input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.search-box input:focus {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.search-box i {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.1rem;
}

/* Options Container */
.options-container {
  overflow-y: auto;
  overflow-x: hidden;
  max-height: 320px;
  padding-right: 5px;
}

/* Custom Scrollbar */
.options-container::-webkit-scrollbar {
  width: 8px;
}

.options-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.options-container::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #667eea, #764ba2);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.options-container::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #764ba2, #667eea);
}

/* Option Item */
.option {
  padding: 15px 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  position: relative;
  overflow: hidden;
  margin-bottom: 8px;
  opacity: 0;
  animation: slideIn 0.5s forwards;
}

@keyframes slideIn {
  to {
    opacity: 1;
  }
}

.option::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.option:hover::before {
  width: 300px;
  height: 300px;
}

.option:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  transform: translateX(10px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.option i {
  font-size: 1.4rem;
  min-width: 30px;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.option:hover i {
  transform: scale(1.2) rotate(10deg);
}

.option span {
  flex: 1;
  font-size: 1rem;
  position: relative;
  z-index: 1;
}

.option.selected {
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.3),
    rgba(118, 75, 162, 0.3)
  );
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.option.selected::after {
  content: "\\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: #4ade80;
  font-size: 1.2rem;
  animation: checkBounce 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes checkBounce {
  0% {
    transform: scale(0) rotate(0deg);
  }
  50% {
    transform: scale(1.3) rotate(180deg);
  }
  100% {
    transform: scale(1) rotate(360deg);
  }
}

.option.hidden {
  display: none;
}

/* No Results Message */
.no-results {
  text-align: center;
  padding: 40px 20px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.1rem;
  display: none;
}

.no-results.show {
  display: block;
  animation: fadeIn 0.3s ease;
}

.no-results i {
  font-size: 3rem;
  margin-bottom: 15px;
  opacity: 0.5;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Ripple Effect */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: scale(0);
  animation: rippleEffect 0.6s ease-out;
  pointer-events: none;
}

@keyframes rippleEffect {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .title {
    font-size: 2rem;
    margin-bottom: 30px;
  }

  .select-trigger {
    padding: 18px 20px;
  }

  .selected-option {
    font-size: 1rem;
  }

  .selected-option i {
    font-size: 1.3rem;
  }

  .dropdown {
    max-height: 400px;
  }

  .options-container {
    max-height: 280px;
  }

  .option {
    padding: 12px 15px;
  }
}

@media (max-width: 480px) {
  .title {
    font-size: 1.6rem;
  }

  .select-trigger {
    padding: 15px 18px;
    border-radius: 15px;
  }

  .dropdown {
    border-radius: 15px;
    max-height: 350px;
  }

  .options-container {
    max-height: 240px;
  }
}

/* Staggered Animation Delays */
.option:nth-child(1) {
  animation-delay: 0.05s;
}
.option:nth-child(2) {
  animation-delay: 0.1s;
}
.option:nth-child(3) {
  animation-delay: 0.15s;
}
.option:nth-child(4) {
  animation-delay: 0.2s;
}
.option:nth-child(5) {
  animation-delay: 0.25s;
}
.option:nth-child(6) {
  animation-delay: 0.3s;
}
.option:nth-child(7) {
  animation-delay: 0.35s;
}
.option:nth-child(8) {
  animation-delay: 0.4s;
}
.option:nth-child(9) {
  animation-delay: 0.45s;
}
.option:nth-child(10) {
  animation-delay: 0.5s;
}
.option:nth-child(11) {
  animation-delay: 0.55s;
}
.option:nth-child(12) {
  animation-delay: 0.6s;
}
.option:nth-child(13) {
  animation-delay: 0.65s;
}
.option:nth-child(14) {
  animation-delay: 0.7s;
}
.option:nth-child(15) {
  animation-delay: 0.75s;
}

/* Floating Particles */
.particle {
  position: fixed;
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  pointer-events: none;
  animation: float 6s infinite;
  z-index: 0;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0;
  }
  10% {
    opacity: 0.5;
  }
  90% {
    opacity: 0.5;
  }
  100% {
    transform: translateY(-100vh) translateX(50px) scale(0);
    opacity: 0;
  }
}