/* Global Styles */
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #eef2f7; /* Light background */
  color: #333;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  padding: 20px;
}

/* Converter Box Styling */
.converter-box {
  background-color: #ffffff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  max-width: 400px;
  width: 100%;
  text-align: center;
}

.title {
  font-size: 2em;
  color: #007bff; /* Accent color */
  margin-bottom: 10px;
}

.formula {
  font-style: italic;
  color: #666;
  margin-bottom: 30px;
  border-bottom: 1px dashed #ddd;
  padding-bottom: 15px;
  min-height: 25px; /* Ensures layout doesn't shift when text changes */
}

/* Input/Output Groups */
.input-group,
.output-group {
  margin-bottom: 25px;
  text-align: left;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #555;
}

/* Primary Input Styling */
#primaryInput {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #ccc;
  border-radius: 6px;
  font-size: 1.2em;
  box-sizing: border-box;
  transition: border-color 0.3s;
}

#primaryInput:focus {
  border-color: #007bff;
  outline: none;
}

/* Swap Button Styling */
.swap-btn {
  width: 100%;
  padding: 10px 15px;
  margin-top: -10px;
  margin-bottom: 25px;
  background-color: #28a745; /* Green color for the button */
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1em;
  font-weight: 600;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.swap-btn:hover {
  background-color: #1e7e34;
}

.swap-btn:active {
  transform: translateY(1px);
}

/* Result Output Display */
.result-display {
  width: 100%;
  padding: 12px 15px;
  background-color: #f8f9fa; /* Light grey background for output */
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1.5em;
  font-weight: bold;
  color: #007bff; /* Blue for result */
  min-height: 20px;
  box-sizing: border-box;
  text-align: right;
}

.message {
  color: #dc3545; /* Red for error messages */
  font-size: 0.9em;
  min-height: 1em;
  margin-top: 10px;
}
