.currency-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}

.currency-card {
  width: 100%;
  max-width: 600px;
  padding: 40px;
  border-radius: 24px;
  background: linear-gradient(135deg, #064e3b 0%, #022c22 100%);
  box-shadow: 0 20px 50px rgba(6, 78, 59, 0.4);
  border: 1px solid rgba(255,255,255,0.1);
  color: #ffffff;
}

.exchange-rate-display {
  text-align: center;
  margin-bottom: 40px;
}

.rate-label {
  display: block;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

#rateValue {
  font-size: 38px;
  font-weight: 900;
  background: linear-gradient(135deg, #34d399, #10b981);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
  text-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.rate-time {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin-top: 8px;
  font-weight: 600;
}

.converter-box {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}

.currency-input-group {
  display: flex;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: inset 0 0 20px rgba(0,0,0,0.2);
}

.currency-input-group:focus-within {
  border-color: #34d399;
  background: rgba(255,255,255,0.1);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.2), inset 0 0 20px rgba(0,0,0,0.1);
  transform: scale(1.02);
}

.amount-field {
  flex: 1;
  padding: 15px 20px;
  display: flex;
  flex-direction: column;
}

.amount-field label {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 5px;
}

.amount-field input {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 32px;
  font-weight: 800;
  width: 100%;
  outline: none;
  font-family: 'Consolas', monospace;
}

.amount-field input[readonly] {
  color: #34d399;
  text-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
}

.currency-select-field {
  width: 150px;
  background: rgba(0,0,0,0.2);
  border-left: 1px solid rgba(255,255,255,0.05);
  padding: 15px;
  display: flex;
  flex-direction: column;
}

.currency-select-field label {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 5px;
}

.custom-select {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.currency-flag {
  width: 28px;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.custom-select select {
  appearance: none;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
  width: 100%;
  outline: none;
  cursor: pointer;
  padding-right: 15px;
}

.custom-select::after {
  content: '\f0d7';
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: #34d399;
  pointer-events: none;
  font-size: 14px;
}

.custom-select select option {
  background: #064e3b;
  color: #ffffff;
  padding: 10px;
}

.swap-btn-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}

.swap-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 20px rgba(6, 78, 59, 0.6), inset 0 0 0 2px rgba(255,255,255,0.3);
}

.swap-btn:hover {
  transform: translate(-50%, -50%) rotate(180deg) scale(1.1);
  box-shadow: 0 15px 25px rgba(16, 185, 129, 0.5), inset 0 0 0 2px #ffffff;
}

.swap-btn:active {
  transform: translate(-50%, -50%) rotate(180deg) scale(0.95);
}

input[type="number"]::-webkit-inner-spin-button, 
input[type="number"]::-webkit-outer-spin-button { 
  -webkit-appearance: none; 
  margin: 0; 
}
input[type="number"] {
  -moz-appearance: textfield;
}

@media (max-width: 500px) {
  .currency-card { padding: 30px 20px; }
  .currency-input-group { flex-direction: column; }
  .currency-select-field {
    width: 100%;
    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.05);
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .swap-btn-container {
    position: relative;
    transform: none;
    top: 0; left: 0;
    margin: 15px auto;
  }
  .swap-btn:hover {
    transform: rotate(180deg) scale(1.1);
  }
  .swap-btn:active {
    transform: rotate(180deg) scale(0.95);
  }
}
