/* Tariff Search Component Styles */

/* Justification Section */
.justification-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
}

.dark .justification-title {
    color: white;
}

.justification-content {
    max-width: none;
}

.justification-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.25rem;
}

.justification-label span {
    font-weight: 500;
    color: #111827;
}

.dark .justification-label span {
    color: white;
}

.justification-text {
    background-color: #f9fafb;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    font-family: monospace;
    font-size: 0.875rem;
    color: #374151;
    white-space: pre-line;
}

.dark .justification-text {
    background-color: #111827;
    border-color: #374151;
    color: #d1d5db;
}

.save-button {
    padding: 0.5rem 1rem;
    background-color: #4A1D96;
    color: white;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: background-color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.save-button:hover {
    background-color: #3B1578;
}

/* Radio Selection */
.radio-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.radio-input {
    cursor: pointer;
    accent-color: #4A1D96;
    /* Matches primary color */
}

/* Tariff Search Actions */
.tariff-search-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 1rem;
}
/* Custom Toggle Switch for Translation */
.custom-toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.custom-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.custom-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #e5e7eb;
  transition: .3s;
  border-radius: 34px;
}

.dark .custom-toggle-slider {
  background-color: #4b5563;
}

.custom-toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

input:checked + .custom-toggle-slider {
  background-color: #4A1D96; /* Filament Primary usually or similar */
}

input:focus + .custom-toggle-slider {
  box-shadow: 0 0 1px #4A1D96;
}

input:checked + .custom-toggle-slider:before {
  transform: translateX(20px);
}
