/* Reset */
body, h1, p, input, button {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
}

/* Mobile-first body */
body {
  background: #f9f9f9;
  color: #333;
  font-size: 16px;
  line-height: 1.4;
  padding: 1rem;
}

/* Container */
.container {
  max-width: 420px; /* lock to phone width */
  margin: 0 auto;
  background: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Heading */
h1 {
  font-size: 1.4rem;
  text-align: center;
  margin-bottom: 1rem;
}

/* Input base */
input[type="number"] {
  width: 100%;
  padding: 0.8rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  margin-bottom: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="number"]:focus {
  border-color: #6a0dad;
  box-shadow: 0 0 0 2px rgba(106, 13, 173, 0.2);
  outline: none;
}

/* Accent classes for rate fields */
.pi-rate {
  border-color: #6a0dad; /* Pi purple */
}

.rsd-rate {
  border-color: #0077cc; /* Blue accent for RSD */
}

/* Button */
button {
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
  background: #6a0dad; /* Pi purple */
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 0.5rem;
}

button:hover {
  background: #580b9e;
}

/* Secondary button style */
button.secondary {
  background: #0077cc;
}

button.secondary:hover {
  background: #005fa3;
}

/* Result box */
#result {
  margin-top: 1.5rem;
  padding: 1rem;
  background: #f0f0f0;
  border-radius: 8px;
  text-align: center;
}

.hidden {
  display: none;
}