/* Tariff Classification Page Styles */
.tariff-container {
    --primary-500: #eab308;
    --gray-50: #f9fafb;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-900: #18181b;
    /* Zinc 900 */
    --gray-950: #09090b;
    /* Zinc 950 */
    --gray-500: #D4D4D4;

    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Search Section */
.search-section {
    background-color: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid var(--gray-200);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.dark .search-section {
    background-color: #18181b;
    /* Zinc 900 */
    border-color: #27272a;
    /* Zinc 800 */
}

.search-header {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.dark .search-header {
    color: #f3f4f6;
}

.search-input-group {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.search-input-wrapper {
    flex: 1;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 0.5rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.5rem;
    font-size: 0.875rem;
}

.dark .search-input {
    background-color: var(--gray-900);
    border-color: var(--gray-500);
    color: white;
}



/* Justification Section */
.justification-section {
    background-color: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid var(--gray-200);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.dark .justification-section {
    background-color: #18181b;
    /* Zinc 900 */
    border-color: #27272a;
    /* Zinc 800 */
}

/* Control Bar */
.control-bar {
    display: flex;
    align-items: flex-end;
    gap: 2rem;
    background-color: transparent;
    /* padding: 1rem 1.5rem; */
    /* border-radius: 0.75rem;
    border: 1px solid var(--gray-200); */
    margin-top: 1.5rem;
}

.control-bar-item {
    flex: 1;
}

.control-bar-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.control-bar-label .required {
    color: #dc2626;
}

/* Confidence Slider */
.confidence-slider-wrapper {
    position: relative;
    padding-top: 2rem;
    /* Space for the bubble */
    margin-top: 0.5rem;
}

.confidence-track {
    position: relative;
    height: 1.2rem;
    background-color: #e5e7eb;
    border-radius: 9999px;
    width: 100%;
}

.confidence-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background-color: var(--gray-500);
    border-radius: 9999px;
    border: 1px solid #A3A3A3;
    z-index: 1;
}

.confidence-thumb {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 2.5rem;
    height: 1.5rem;
    background-color: white;
    border: 1px solid #d1d5db;
    border-radius: 9999px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
}

.confidence-thumb-line {
    font-size: 0.7rem;
    color: #6b7280;
    letter-spacing: -1px;
    transform: rotate(90deg);
}

.confidence-bubble {
    position: absolute;
    bottom: 150%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #f3f4f6;
    color: #374151;
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid #e5e7eb;
    white-space: nowrap;
}

/* Action Buttons */
.control-bar-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.btn-export {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1.25rem;
    background-color: white;
    color: var(--gray-900);
    border: 1px solid var(--gray-300);
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-export:hover {
    background-color: var(--gray-50);
}

/* Dark Mode Overrides */
.dark .control-bar-label {
    color: var(--gray-200);
}

.dark .confidence-track {
    background-color: #3f3f46;
    /* Zinc 700 */
}

.dark .confidence-thumb {
    background-color: #27272a;
    /* Zinc 800 */
    border-color: #52525b;
    /* Zinc 600 */
}

.dark .confidence-thumb-line {
    color: #9ca3af;
    /* gray-400 */
}

.dark .confidence-bubble {
    background-color: #27272a;
    /* Zinc 800 */
    color: #e4e4e7;
    /* Zinc 200 */
    border-color: #3f3f46;
    /* Zinc 700 */
}

.dark .btn-export {
    background-color: #27272a;
    /* Zinc 800 */
    color: #e4e4e7;
    /* Zinc 200 */
    border-color: #3f3f46;
    /* Zinc 700 */
}

.dark .btn-export:hover {
    background-color: #3f3f46;
    /* Zinc 700 */
}