
.converter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 2rem 0;
}

.format-section {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 1.5rem;
}

.format-section h4 {
  color: #495057;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.format-select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 1rem;
  margin-bottom: 1rem;
  background: white;
}

.file-upload {
  margin-bottom: 1rem;
}

.upload-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  border: 2px dashed #ced4da;
  border-radius: 4px;
  background: #f8f9fa;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 600;
  color: #6c757d;
}

.upload-label:hover {
  border-color: #007bff;
  background: #e7f3ff;
  color: #007bff;
}

.upload-label input[type="file"] {
  display: none;
}

.input-section, .output-section {
  margin-bottom: 1rem;
}

.input-section label, .output-section label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #495057;
}

.input-section textarea, .output-section textarea {
  width: 100%;
  min-height: 200px;
  padding: 0.75rem;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  resize: vertical;
  box-sizing: border-box;
}

.input-section textarea:focus, .output-section textarea:focus {
  outline: 0;
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.output-section textarea {
  background: #f8f9fa;
}

.input-info {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #6c757d;
}

.controls {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.output-controls {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.error-message {
  background: #f8d7da;
  color: #721c24;
  padding: 0.75rem;
  border-radius: 4px;
  margin-top: 1rem;
  display: none;
}

.success-message {
  background: #d4edda;
  color: #155724;
  padding: 0.75rem;
  border-radius: 4px;
  margin-top: 1rem;
  display: none;
}

@media (max-width: 768px) {
  .converter-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .controls, .output-controls {
    flex-direction: column;
  }
}
