/* ================== PREMIUM CURRENCY CONVERTER CSS ================== */

/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

/* -------- Reset & Body -------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #f4e4ba, #f9d2a2);
  font-family: "Poppins", 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* -------- Container / Card -------- */
.container {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 2rem;
  border-radius: 1.2rem;
  min-height: 45vh;
  width: 50vh;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
  transform: translateZ(0);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.container:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

/* -------- Form Elements -------- */
form {
  margin: 2rem 0 1rem 0;
}

form select,
form input,
form button {
  width: 100%;
  border: none;
  outline: none;
  border-radius: 0.75rem;
  padding: 0.5rem 0.75rem;
  transition: all 0.3s ease;
}

/* Input Styling */
form input {
  border: 1px solid lightgray;
  font-size: 1rem;
  height: 3rem;
  padding-left: 0.5rem;
  background: #fff;
}

form input:hover,
form select:hover {
  border-color: #af4d98;
}

form input:focus,
form select:focus {
  box-shadow: 0 0 12px rgba(175, 77, 152, 0.5);
  border: 1px solid #af4d98;
}

/* -------- Dropdown Styling -------- */
.dropdown {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
}

.dropdown i {
  font-size: 1.5rem;
  margin-top: 1rem;
}

/* Currency select container with flag */
.select-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 8rem;
  border-radius: 0.5rem;
  border: 1px solid lightgray;
  background: #fafafa;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.select-container img {
  max-width: 2rem;
  margin-right: 0.5rem;
}

.select-container select {
  font-size: 1rem;
  width: auto;
  background: transparent;
  cursor: pointer;
}

/* -------- Result / Message -------- */
.msg {
  margin: 2rem 0;
  font-weight: 600;
  text-align: center;
  color: #333;
  animation: fadeUp 0.4s ease;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* -------- Button Styling -------- */
form button {
  height: 3rem;
  background: linear-gradient(135deg, #af4d98, #8f3c7a);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(175, 77, 152, 0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

form button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(175, 77, 152, 0.6);
}

/* -------- Responsive -------- */
@media (max-width: 600px) {
  .container {
    width: 90vw;
    min-height: 50vh;
    padding: 1.5rem;
  }

  form input,
  form select,
  form button {
    font-size: 1rem;
    height: 2.75rem;
  }

  .select-container {
    width: 7.5rem;
  }

  .dropdown i {
    font-size: 1.2rem;
  }
}
