/*{
  margin: 0;
  padding: 0;
}
body{
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color:#f4e4ba;
}

.container{
  background-color: #fff;
  padding: 2rem;
  border-radius: 1rem;
  min-height: 45vh;
  width: 40vh;
}

form{
  margin: 2rem 0 1rem 0;
}

form select,button,input{
  width: 100%;
  border: none;
  outline: none;
  border-radius: 0.75rem;
}

form input{
  border: 1px solid lightgray;
  font-size: 1rem;
  height: 3rem;
  padding-left: 0.5rem;
}

.dropdown{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
}
.dropdown i {
  font-size: 1.5rem;
  margin-top: 1rem;
}

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

.select-container{
  display: flex;
  justify-content: center;
  align-items: center;
  width: 6rem;
  border-radius: 0.5rem;
  border: 1px solid lightgray;
}

.select-container select{
  font-size: 1rem;
  width: auto;
}

.msg{
  margin: 2rem 0 2rem 0;
}

form button{
  height: 3rem;
  background-color: #af4d9a;
  color: #fff;
  font-size: 1.15rem;
  cursor: pointer;
}

.gold-box {
  position: fixed;      
  right: 20px;           
  top: 100px;            
  background: #fef6d8;
  border: 1px solid #e0c15a;
  padding: 20px 15px;
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(0,0,0,0.1);
  width: 250px;
  font-family: Arial, sans-serif;
}

.gold-box h3 {
  margin: 0;
  font-size: 16px;
  color: #b8860b;
}

.gold-box p {
  margin: 5px 0 0;
  font-size: 14px;
}

#g-button{
    height: 2rem;
  background-color: #af4d9a;
  color: #fff;
  font-size: 0.8rem;
  cursor: pointer;
  margin-top: 10px;
}

#silver-price{
  margin-top: 15px;
} */
/* Reset & global styles */
/* General Reset */
/* Reset & global styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #f8fafc;
}

/* Main container */
.container {
  background: #ffffff;
  padding: 2rem;
  border-radius: 1rem;
  min-height: 45vh;
  width: 380px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Title */
.container h2 {
  text-align: center;
  font-size: 1.8rem;
  color: #0f172a;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

/* Labels (Enter Amount, From, To) */
.container p {
  font-size: 0.95rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.3rem;
}

/* Form spacing */
form {
  margin: 1.5rem 0;
}

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

form input {
  border: 1px solid #cbd5e1;
  font-size: 1rem;
  height: 3rem;
  padding-left: 0.5rem;
  background: #f8fafc;
}

form input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 8px rgba(37, 99, 235, 0.3);
}

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

.dropdown i {
  font-size: 1.5rem;
  margin-top: 1rem;
  color: #64748b;
}

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

.select-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 6rem;
  border-radius: 0.5rem;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
}

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

/* Conversion message */
.msg {
  margin: 2rem 0;
  font-weight: bold;
  color: #1e293b;
  text-align: center;
}

/* Main button */
form button {
  height: 3rem;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #fff;
  font-size: 1.15rem;
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
}

form button:hover {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

/* Metal prices box */
.gold-box {
  margin-top: 1.8rem;
  background: #1e293b;
  border: 1px solid #fbbf24;
  padding: 20px 15px;
  border-radius: 12px;
  box-shadow: 0px 6px 15px rgba(0,0,0,0.2);
  width: 100%;
  color: #f8fafc;
}

.gold-box h3 {
  margin: 0 0 0.5rem 0;
  font-size: 18px;
  font-weight: bold;
  color: #fbbf24;
  text-align: center;
}

.gold-box p {
  margin: 5px 0;
  font-size: 15px;
  color: #e2e8f0;
  text-align: center;
}

#g-button {
  display: block;
  height: 2.5rem;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  font-size: 0.9rem;
  cursor: pointer;
  margin: 12px auto 0;
  border: none;
  border-radius: 8px;
  transition: 0.3s ease;
  padding: 0 1rem;
}

#g-button:hover {
  background: linear-gradient(135deg, #16a34a, #15803d);
}

#silver-price {
  margin-top: 8px;
}
/* Responsive Design */
@media (max-width: 768px) {  /* Tablets */
  .container {
    width: 90%;
    padding: 1.5rem;
  }
  .gold-box {
    padding: 15px;
  }
}

@media (max-width: 480px) {  /* Mobile phones */
  body {
    padding: 10px;
  }
  .container {
    width: 100%;
    padding: 1rem;
  }
  .dropdown {
    flex-direction: column;
    gap: 1rem;
  }
  .select-container {
    width: 100%;
    justify-content: flex-start;
    padding: 0 0.5rem;
  }
  .gold-box {
    margin-top: 1rem;
  }
}
