/* Base page styling */
.currency-converter-page {
  margin: 2rem auto;
  padding: 2rem;
  background-color: #1e1e1e;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
  color: #f1f1f1;
  font-family: 'Segoe UI', sans-serif;
}

.currency-converter-page h1 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: #ffffff;
}

/* Controls */
.controls {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.control-group label {
  font-weight: bold;
  color: #d0d0d0;
}

input[type="text"],
select {
  background-color: #2a2a2a;
  color: #f1f1f1;
  border: 1px solid #444;
  padding: 0.6rem 0.75rem;
  font-size: 1rem;
  border-radius: 6px;
  outline: none;
  transition: border 0.2s;
}

input[type="text"]:focus,
select:focus {
  border-color: #888;
}

/* Currency row */
.currency-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.currency-row .control-group {
  flex: 1;
}

#swapCurrencies {
  font-size: 1.5rem;
  padding: 0.5rem 0.75rem;
  background-color: #333;
  border: 1px solid #555;
  color: #f1f1f1;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

#swapCurrencies:hover {
  background-color: #444;
}

/* Toggles row */
.toggles-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.95rem;
  color: #ccc;
}

/* Buttons row */
.buttons-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

button {
  background-color: #3a3a3a;
  color: #f1f1f1;
  border: 1px solid #555;
  padding: 0.6rem 1rem;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

button:hover {
  background-color: #4a4a4a;
}

/* Result Output */
.result-group {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.result-group label {
  font-weight: bold;
  color: #d0d0d0;
}

#resultOutput {
  background-color: #2a2a2a;
  border: 1px solid #444;
  color: #f1f1f1;
  padding: 0.75rem;
  font-size: 1rem;
  border-radius: 6px;
  resize: vertical;
  min-height: 100px;
}

/* Multi-currency result */
.multi-results {
  background-color: #2c2c2c;
  border: 1px solid #444;
  border-radius: 6px;
  padding: 0.75rem;
  margin-top: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #f1f1f1;
}

.multi-results strong {
  color: #ffd166;
}

/* Result Actions */
.result-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

/* How to Use Section */
.tool-section.how-to-use {
  margin: 3rem auto;
  padding: 2rem;
  background-color: #151515;
  border-top: 1px solid #333;
  border-radius: 12px;
  color: #ccc;
}

.tool-section.how-to-use h2 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #ffffff;
}

.tool-section.how-to-use ul {
  list-style: disc;
  padding-left: 1.5rem;
}

.tool-section.how-to-use li {
  margin-bottom: 0.6rem;
}

.tool-section.how-to-use code {
  background-color: #2a2a2a;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  color: #ffea85;
  font-family: 'Courier New', monospace;
}
