/* ===== RESET & BASE ===== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
}

body {
  min-height: 100vh;
  background: linear-gradient(135deg, #0f172a, #1e3a8a);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #0f172a;
}

/* ===== MAIN CONTAINER ===== */

#container {
  margin-top: 70px;
  width: 360px;
  padding: 35px 30px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
  text-align: center;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

#container:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 55px rgba(0, 0, 0, 0.3);
}

/* ===== HEADINGS ===== */

h1 {
  font-size: 24px;
  margin-bottom: 18px;
  font-weight: 600;
  color: #0f172a;
}

/* ===== IMAGES ===== */

#img-currencies {
  width: 70px;
  margin-bottom: 15px;
}

#img-converter {
  width: 56px;
  margin: 24px auto;
  display: block;
  cursor: pointer;
  border-radius: 16px;
  padding: 12px;
  background-color: #f1f5f9;
  transition:
    transform 0.3s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease;
}

#img-converter:hover {
  background-color: #e2e8f0;
  transform: rotate(180deg) scale(1.08);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

#img-converter:active {
  transform: rotate(180deg) scale(0.95);
}

@media (max-width: 500px) {
  #img-converter {
    width: 68px;
    padding: 14px;
    margin: 26px auto;
  }
}

/* ===== INPUTS ===== */

input[type="number"] {
  width: 100%;
  padding: 11px 12px;
  margin-top: 10px;
  margin-bottom: 10px;
  border-radius: 10px;
  border: 1px solid #cbd5f5;
  font-size: 15px;
  outline: none;
  transition: all 0.2s ease;
  background-color: #f8fafc;
}

input[type="number"]:focus {
  border-color: #3b82f6;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* ===== SELECT MENUS ===== */

#menu-1,
#menu-2 {
  width: 100%;
  padding: 11px 12px;
  margin-bottom: 10px;
  border-radius: 10px;
  border: 1px solid #cbd5f5;
  font-size: 15px;
  background-color: #f8fafc;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
  appearance: none;

  background-image:
    linear-gradient(45deg, transparent 50%, #475569 50%),
    linear-gradient(135deg, #475569 50%, transparent 50%);
  background-position:
    calc(100% - 20px) calc(50% - 3px),
    calc(100% - 15px) calc(50% - 3px);
  background-size:
    5px 5px,
    5px 5px;
  background-repeat: no-repeat;
}

#menu-1:hover,
#menu-2:hover {
  background-color: #ffffff;
}

#menu-1:focus,
#menu-2:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* ===== TEXT INFO ===== */

.exchange-rate {
  margin-top: 15px;
  font-weight: 500;
  color: #1e293b;
}

.date-message {
  font-size: 14px;
  margin-top: 8px;
  color: #64748b;
}

/* ===== FOOTER ===== */

.app-footer {
  width: 100%;
  margin-top: auto;
  padding: 1rem 0;
  text-align: center;
  font-size: 0.85rem;
  background: #020617;
  color: #cbd5f5;
}

.app-footer a {
  color: #93c5fd;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.app-footer a:hover {
  color: #ffffff;
}

/* ===== MOBILE ===== */

@media (max-width: 500px) {
  #container {
    width: 92%;
    margin-top: 40px;
    padding: 28px 22px;
  }

  h1 {
    font-size: 21px;
  }

  .app-footer {
    font-size: 0.75rem;
    padding: 0.6rem 0;
  }
}
