/* --- CSV to XML Converter Specific Styles --- */
.tool-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 25px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.tool-container h2 {
  color: #2c3e50;
  margin-bottom: 15px;
  font-size: 2.2em;
}

.tool-description {
  color: #555;
  margin-bottom: 30px;
  font-size: 1.1em;
  line-height: 1.6;
}

.input-group {
  margin-bottom: 20px;
  text-align: left;
}

.input-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #34495e;
  font-size: 1.05em;
}

textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1em;
  box-sizing: border-box;
  min-height: 200px;
  resize: vertical;
  font-family: "monospace";
}

input[type="file"] {
  display: block;
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #f9f9f9;
  font-size: 1em;
  box-sizing: border-box;
}

input[type="file"]::file-selector-button {
  background-color: #3498db;
  color: white;
  padding: 8px 15px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-right: 10px;
  transition: background-color 0.3s ease;
}

input[type="file"]::file-selector-button:hover {
  background-color: #217dbb;
}

.tool-button {
  background-color: #27ae60;
  color: white;
  padding: 12px 25px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  margin-top: 20px;
  display: inline-block; /* For centering */
}

.tool-button:hover {
  background-color: #229a55;
  transform: translateY(-2px);
}

.tool-button:active {
  transform: translateY(0);
}

.loading-message,
.error-message,
.success-message {
  margin-top: 20px;
  padding: 10px;
  border-radius: 5px;
  font-weight: bold;
  display: none; /* Hidden by default */
  text-align: left;
}

.loading-message {
  background-color: #f0f8ff;
  color: #3498db;
  border: 1px solid #aed6f1;
}

.error-message {
  background-color: #ffebee;
  color: #e74c3c;
  border: 1px solid #ef9a9a;
}

.success-message {
  background-color: #e8f5e9;
  color: #27ae60;
  border: 1px solid #a5d6a7;
}

.download-button {
  background-color: #3498db;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
  margin-top: 15px;
  transition: background-color 0.3s ease;
}

.download-button:hover {
  background-color: #217dbb;
}

.options-group {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 15px;
  margin-bottom: 20px;
  border: 1px solid #eee;
  padding: 15px;
  border-radius: 8px;
  background-color: #fcfcfc;
  text-align: left;
}

.option-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.option-item input[type="checkbox"] {
  margin-right: 5px;
  accent-color: #3498db;
}

.option-item label {
  margin-bottom: 0; /* Override input-group label margin */
  font-weight: normal;
}

.option-item input[type="text"] {
  padding: 6px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.9em;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .tool-container {
    padding: 15px;
  }
  .options-group {
    flex-direction: column;
  }
}
