/* ========== Global Body Styling ========== */
body {
  font-family: Arial, sans-serif;
  background: linear-gradient(135deg, #74ebd5, #ACB6E5);

  /* ✅ Use flex to arrange converter + footer */
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* keeps footer at bottom */
  align-items: center;

  min-height: 100vh; /* ✅ fills whole screen height */
  margin: 0;
  padding: 15px; /* ✅ avoids content sticking to edges */
}

/* ========== Converter Card ========== */
.container {
  background: #e0ecee;
  padding: 25px 15px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  text-align: center;

  width: 100%;         /* ✅ full width on mobile */
  max-width: 360px;    /* ✅ but not too wide */
  margin: auto;        /* ✅ centers vertically */

  animation: fadeIn 0.5s ease-in-out;
}

h2 {
  margin-bottom: 20px;
  color: #333;
  font-size: 22px; /* ✅ readable on all screens */
}

/* ========== Inputs, Dropdowns, Buttons ========== */
input, select, button {
  width: 100%;       /* ✅ full width on mobile */
  margin: 12px 0;    /* ✅ less spacing for compact view */
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;   /* ✅ smaller for mobile */
  box-sizing: border-box;
}

button {
  background: #4CAF50;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  background: #45a049;
}

/* ========== Result Text ========== */
#result {
  margin-top: 15px;
  font-size: 16px;
  font-weight: bold;
  color: #333;
}

/* ========== Currency Selectors (dropdowns + swap button) ========== */
.selectors {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px; /* ✅ smaller gap for mobile */
}

.swap-btn {
  background: #4CAF50;
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 20px;
  cursor: pointer;
  transition: 0.3s;
}

.swap-btn:hover {
  background: #388E3C;
  transform: rotate(180deg);
}

/* ========== Footer ========== */
footer {
  text-align: center;
  font-size: 14px;
  color: #1a1919;
  margin-top: 20px;
}

footer p {
  margin: 4px 0;
}

footer strong {
  color: #161510;
}

/* ========== Animation ========== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========== Mobile Optimizations ========== */
@media (max-width: 480px) {
  h2 {
    font-size: 20px;
  }
  input, select, button {
    font-size: 15px;
    padding: 8px;
  }
  .swap-btn {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
}
