/* Reset and Base Styles */
* {
  box-sizing: border-box;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 1.5em;
  align-items: center;
  justify-content: center;
  background-color: #0f172a; /* Deep dark slate background */
  color: #f8fafc;
}

.card {
  background-color: #1e293b; 
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: center;
}

.disclosure {
  background-color: #0f172a; 
  padding: 2.5rem;
  border-radius: 16px;
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  text-align: center;
}

h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: #e2e8f0;
}

/* Input Group Styles */
.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
}

label {
  display: flex;
  align-items: center;
  gap: 0.5rem; /* Spaces the icon from the text */
  font-size: 0.95rem;
  font-weight: 500;
  color: #cbd5e1;
}

input[type="number"] {
  width: 100%;
  padding: 0.875rem;
  border-radius: 8px;
  border: 1px solid #334155;
  background-color: #0f172a;
  color: #f8fafc;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="number"]:focus {
  border-color: #6366f1; /* Indigo focus ring */
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* Button Styles */
button {
  background-color: #6366f1;
  color: white;
  border: none;
  padding: 0.875rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem; /* Spaces the icon from the text */
  transition: background-color 0.2s ease, transform 0.1s ease;
}

button:hover {
  background-color: #4f46e5;
}

button:active {
  transform: scale(0.98); 
}

button.success {
  background-color: #10b981; /* Emerald green */
}

button.success:hover {
  background-color: #059669; /* Slightly darker green on hover */
}

/* Result Text */
#result {
  margin: 0;
  font-size: 0.9rem;
  color: #94a3b8;
  min-height: 1.2rem; /* Prevents layout shift when text appears */
}
