/* General Styles */
body {
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(120deg, #84fab0, #8fd3f4);
  margin: 0;
  padding: 0;
  color: #333;
}

.container {
  max-width: 900px;
  margin: 30px auto;
  background: #fff;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

h1 {
  text-align: center;
  color: #333;
  margin-bottom: 10px;
}

.subtitle {
  text-align: center;
  font-size: 1.1em;
  color: #555;
  margin-bottom: 25px;
}

.card {
  background: #fdfdfd;
  border: 2px solid #eee;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 25px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.card h2 {
  margin-top: 0;
  color: #2c3e50;
}

/* Table */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 15px;
}

table th {
  background: #3498db;
  color: white;
  padding: 10px;
}

table td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: center;
}

/* Inputs */
input[type="number"],
input[type="text"],
select {
  width: 90%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  outline: none;
}

input:focus, select:focus {
  border-color: #3498db;
  box-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
}

/* Buttons */
button {
  background: #3498db;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1em;
  transition: background 0.3s;
}

button:hover {
  background: #2980b9;
}

.btn-group {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

/* Results */
.result {
  margin-top: 15px;
  font-size: 1.1em;
  font-weight: bold;
  background: #ecf0f1;
  padding: 12px;
  border-radius: 8px;
  color: #2c3e50;
}

/* Conversion Section */
.convert-box {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

/* Footer */
footer {
  text-align: center;
  margin: 20px 0;
  color: #fff;
  font-weight: bold;
}
