/* Variables globales */
:root {
  --primary-color: #2E3192;
  --secondary-color: #1BFFFF;
  --accent-color: #D4145A;
  --background: #0A0A0A;
  --text-color: #ffffff;
  --card-bg: rgba(255, 255, 255, 0.05);
  --glass-effect: rgba(255, 255, 255, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: var(--background);
  color: var(--text-color);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

header {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  position: fixed;
  width: 100%;
  z-index: 1000;
  padding: 1rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: absolute;
  top: 0;
}

.logo {
  height: 50px;
  filter: drop-shadow(0 0 10px var(--secondary-color));
}

nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

nav a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
}

nav a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary-color);
  transition: width 0.3s ease;
}

nav a:hover::before {
  width: 100%;
}

.dropdown {
  display: none;
  position: absolute;
  top: 70%;
  left: 74%;
  transform: translateX(-50%);
  background-color: var(--background);
  min-width: 200px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  border: 1px solid var(--glass-effect);
  border-radius: 0 0 5px 5px;
  z-index: 1001;
  margin-top: 10px;
}

.dropdown::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid rgba(36, 54, 66, 0.95);
}

nav ul li:hover .dropdown {
  display: block;
}

.dropdown li {
  margin: 0;
  width: 100%;
}

.dropdown li a {
  color: white;
  padding: 12px 16px;
  display: block;
  font-size: 14px;
  text-align: center;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.dropdown li a:hover {
  
  color: white;
}

.container {
  width: 100%;
  max-width: 800px;
  background: rgba(255, 255, 255, 0.03);
  padding: 30px;
  border-radius: 30px;
  border: 1px solid var(--glass-effect);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  margin-top: 80px;
}
h1{
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-left: 170px;
  margin-bottom: 20px;
}

.wrapper {
  border-radius: 20px;
  border: 1px solid var(--glass-effect);
  padding: 25px;
}

.text-input {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.text-input textarea {
  height: 150px;
  width: 100%;
  padding: 15px;
  font-size: 1rem;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-color);
  border: 1px solid var(--glass-effect);
  resize: none;
  outline: none;
  transition: all 0.3s ease;
}

.text-input textarea:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 15px rgba(27, 255, 255, 0.1);
}

.text-input textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.controls {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.controls .row {
  display: flex;
  align-items: center;
  gap: 15px;
}

.controls .icons {
  display: flex;
  gap: 10px;
}

.controls .icons i {
  width: 40px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color);
  font-size: 1.2rem;
  cursor: pointer;
  border-radius: 50%;
  border: 1px solid var(--glass-effect);
  transition: all 0.3s ease;
}

.controls .icons i:hover {
  background: var(--glass-effect);
  border-color: var(--secondary-color);
}

.controls select {
  padding: 10px 15px;
  border-radius: 10px;
  border: 1px solid var(--glass-effect);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-color);
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
}

.controls select:focus {
  border-color: var(--secondary-color);
}

.exchange {
  color: var(--text-color);
  cursor: pointer;
  font-size: 1.2rem;
  padding: 10px;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.exchange:hover {
  transform: rotate(180deg);
}

button {
  width: 100%;
  padding: 15px;
  margin-top: 20px;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  border: none;
  color: white;
  font-size: 1.1rem;
  border-radius: 15px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(27, 255, 255, 0.2);
}

@media (max-width: 768px) {
  .text-input {
    grid-template-columns: 1fr;
  }
  
  .controls {
    flex-direction: column;
    gap: 20px;
  }
  
  .container {
    padding: 20px;
  }
  
  .wrapper {
    padding: 20px;
  }
}

