* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Quicksand', sans-serif;
}

body {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #0f2027, #203a43, #2c5364);
  overflow: hidden;
}

.container {
  width: 90%;
  max-width: 500px;
  padding: 2rem;
  border-radius: 20px;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px);
  animation: fadeIn 1s ease-in-out;
}

h2 {
  font-size: 1.8rem;
  text-align: center;
  color: #00f7ff;
  margin-bottom: 1rem;
  font-family: 'Orbitron', sans-serif;
}

.amount p,
.from p,
.to p {
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.amount input {
  width: 100%;
  padding: 0.8rem;
  font-size: 1rem;
  color: #fff;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: 0.3s;
}

.amount input:focus {
  outline: none;
  border-color: #00f7ff;
  box-shadow: 0 0 10px #00f7ff;
}

.dropdown {
  display: flex;
  gap: 1rem;
  margin: 2rem 0;
  justify-content: space-between;
  align-items: center;
}

.select-container {
  width: 100%;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s;
}

.select-container:hover {
  transform: scale(1.05);
}

.select-container img {
  width: 32px;
  margin-right: 0.5rem;
  border-radius: 6px;
  border: 1px solid #fff;
  transition: transform 0.3s ease;
}

.select-container select {
  font-size: 1rem;
  color: #fff;
  background: transparent;
  border: none;
  cursor: pointer;
}

.select-container select:focus {
  outline: none;
}

i.fa-arrow-right-arrow-left {
  font-size: 1.5rem;
  color: #00f7ff;
  animation: pulse 2s infinite;
}

form button {
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: bold;
  color: #000;
  background: #00f7ff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.3s ease;
}

form button:hover {
  background: #00d4e0;
}

.msg {
  text-align: center;
  font-size: 1.2rem;
  font-weight: bold;
  margin: 1.5rem 0;
  color: #00f7ff;
  animation: pop 0.5s ease-out;
}

.theme-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 0.4rem;
  align-items: center;
  z-index: 100;
}

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.switch input {
  display: none;
}

.slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  cursor: pointer;
  background-color: #ccc;
  border-radius: 34px;
  transition: 0.4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #00f7ff;
}

input:checked + .slider:before {
  transform: translateX(26px);
}

body.light-mode {
  background: #f1f1f1;
  color: #000;
}

body.light-mode .container {
  background: #fff;
  color: #000;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.auto-msg {
  text-align: center;
  font-size: 0.9rem;
  color: #ccc;
  margin-top: -1rem;
}

@media screen and (max-width: 600px) {
  .dropdown {
    flex-direction: column;
  }

  .dropdown i.fa-arrow-right-arrow-left {
    transform: rotate(90deg);
  }

  .theme-toggle {
    top: 15px;
    right: 15px;
  }

  .container {
    padding: 1rem;
  }
}

body::before {
  content: "";
  position: absolute;
  top: -20%;
  left: -20%;
  width: 150%;
  height: 150%;
  z-index: -1;
  filter: blur(50px);
  background:
    radial-gradient(circle at 30% 30%, #00f7ff33, transparent 40%),
    radial-gradient(circle at 70% 60%, #ff00c833, transparent 40%),
    radial-gradient(circle at 50% 80%, #00ff7f33, transparent 50%);
  animation: moveBlobs 15s ease-in-out infinite alternate;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.3);
  }
}

@keyframes pop {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes moveBlobs {
  0% {
    transform: scale(1) translate(0px, 0px);
  }
  50% {
    transform: scale(1.1) translate(20px, -30px);
  }
  100% {
    transform: scale(1) translate(-10px, 30px);
  }
}
