/* Settings Modal Styles */
.settings-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(75, 85, 99, 0.5);
  align-items: center;
  justify-content: center;
  z-index: 50;
  display: none; /* Hidden by default */
}

.settings-modal.visible {
  display: flex;
}

.modal-content {
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  width: 100%;
  max-width: 28rem; /* ~448px */
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.modal-header h3 {
  font-size: 1.125rem;
  font-weight: 500;
  color: #1f2937;
}

.close-button {
  color: #6b7280;
  background: none;
  border: none;
  cursor: pointer;
}

.close-button:hover {
  color: #374151;
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.25rem;
}

.slippage-controls {
  display: flex;
  gap: 0.5rem;
}

.slippage-button {
  padding: 0.25rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  background-color: white;
  cursor: pointer;
}

.slippage-button:hover {
  background-color: #f9fafb;
}

.slippage-input-container {
  flex: 1;
  position: relative;
}

.slippage-input-container input {
  width: 100%;
  padding: 0.25rem 2rem 0.25rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
}

.slippage-input-container input:focus {
  outline: none;
  border-color: #6b7280;
  box-shadow: 0 0 0 2px rgba(107, 114, 128, 0.2);
}

.slippage-percent {
  position: absolute;
  right: 1.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7280;
  pointer-events: none;
}

.modal-footer {
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

.save-button {
  width: 100%;
  background-color: #1f2937;
  color: white;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
}

.save-button:hover {
  background-color: #111827;
}

.save-button:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(107, 114, 128, 0.5);
}