/* static/css/advanced_search.css */


:root {
    --primary-green: #272e24;
    --primary-green-dark: #54b94b; 
    --light-green-bg: #e9f5ee; 
    --focus-glow-green: rgba(25, 135, 84, 0.25); 
}

/* --- Page Title --- */
.container h1 {
    color: var(--primary-green);
}

/* --- Main Query Builder Background --- */
#query-builder {
    background-color: var(--light-green-bg);
    border: 1px solid #d1e7dd; 
}

/* --- Button Theming --- */
#search-btn.btn-primary {
    background-color: rgb(11, 88, 11);
    border-color: rgb(28, 80, 28);
}

#search-btn.btn-primary:hover {
    background-color: var(--primary-green-dark);
    border-color: var(--primary-green-dark);
}

#add-filter-btn.btn-secondary {
    background-color: #fff;
    border-color: var(--primary-green);
    color: var(--primary-green);
}

#add-filter-btn.btn-secondary:hover {
    background-color: rgb(137, 138, 136);
    color: #fff;
}

/* --- Form Input Focus Glow --- */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.25rem var(--focus-glow-green);
}


/* --- Result Links --- */
#results-container table a {
    color: var(--primary-green-dark);
    text-decoration: none;
    font-weight: 500;
}

#results-container table a:hover {
    color: var(--primary-green);
    text-decoration: underline;
}

.filter-row {
    align-items: center;
}

.filter-row .form-select {
    flex: 0 0 250px;
}

.filter-row .value-input-container {
    flex: 1 1 auto;
}

.filter-row .remove-filter-btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

#results-container table td,
#results-container table th {
    white-space: nowrap;
}
#filter-container .filter-row:first-child .remove-filter-btn {
    display: none;
}

#phyto-filter-container .filter-row:first-child .remove-filter-btn,
#disease-filter-container .filter-row:first-child .remove-filter-btn,
#formulation-filter-container .filter-row:first-child .remove-filter-btn,
#plant-for-phyto-filter-container .filter-row:first-child .remove-filter-btn,
#plant-for-form-filter-container .filter-row:first-child .remove-filter-btn,
#disease-for-form-filter-container .filter-row:first-child .remove-filter-btn,
#plant-for-disease-filter-container .filter-row:first-child .remove-filter-btn,
#form-for-disease-filter-container .filter-row:first-child .remove-filter-btn,
#symptom-for-disease-filter-container .filter-row:first-child .remove-filter-btn,
#parent-for-disease-filter-container .filter-row:first-child .remove-filter-btn {
    display: none;
}