.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #f8f9fa;
    padding: 10px 0;
    box-shadow: 0 -1px 5px rgba(0,0,0,0.1);
}

.operator-btn {
    min-height: 38px;
}

.operator-btn:disabled,
.add-filter-btn:disabled {
    opacity: 1;
    background-color: #e9ecef;
    border-color: #ced4da;
    color: #6c757d;
}


.year-input {
    max-width: 100px;
    display: inline-block;
}

.ner-tag {
    font-size: 16px;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    padding: 5px 7px 7px 7px;
    border-radius: 5px;
    color: black;
    margin: 2px;
}

.ner-category {
    font-size: 10px;
    text-transform: uppercase;
    margin-left: 6px;
    color: grey;
    font-weight: bold;
}

.ner-text {
    font-weight: normal;
}

.dosage-normalization {
    margin-top: 0.75rem;
    color: #555;
}

/* Non-clickable info tags/buttons (help cursor + slight darken on hover) */
.tag-info-button {
    cursor: help !important;
}

.tag-info-button:hover {
    filter: brightness(0.92);
}

/* Clickable active filter buttons (pointer cursor + slight darken on hover) */
.filter-button-active {
    cursor: pointer !important;
}

.filter-button-active:hover {
    filter: brightness(0.92);
}

/* Rows in the study grid open a detail modal on click */
.ag-row {
    cursor: pointer;
}

/* Pie segments in the dual-task analysis filter Task 2 on click */
#task1-pie-graph .slice path {
    cursor: pointer;
}

/* Radio/checklist options in the filter builder are clickable */
#label-checklist .form-check-input,
#label-checklist .form-check-label {
    cursor: pointer;
}

/* Larger toggle switch with the label vertically centered next to it */
.study-protocol-toggle .form-check {
    display: flex;
    align-items: center;
    min-height: 2rem;
    padding-left: 3rem;
}

.study-protocol-toggle .form-check-input {
    width: 2.75rem;
    height: 1.5rem;
    margin-left: -3rem;
}

.study-protocol-toggle .form-check-label {
    margin-left: 0.5rem;
    font-size: 1.05rem;
}

/* Larger toggle switch with the label vertically centered next to it */
.toggle-switch-lg .form-check {
    display: flex;
    align-items: center;
    min-height: 2rem;
    padding-left: 3rem;
}

.toggle-switch-lg .form-check-input {
    width: 2.75rem;
    height: 1.5rem;
    margin-left: -3rem;
}

.toggle-switch-lg .form-check-label {
    margin-left: 0.5rem;
    font-size: 1.05rem;
}

.form-switch {
    padding-left: 4rem;
}

.form-switch .form-check-input {
    cursor: pointer;
}

.form-switch .form-check-label {
    cursor: pointer;
}

.card-hover {
    cursor: pointer; 
    background-color: #f5f5f5;
    border: 1px solid #ccc;
    text-align: center; 
    text-decoration: none;
    transition: background-color 0.3s ease-in-out, transform 0.2s;
}

.card-hover:hover {
    background-color: #e0e0e0 !important;  /* Slightly darker gray */
    transform: scale(1.02); /* Slight zoom effect */
}

.box-link {
    display: block;
    text-decoration: none !important;
    color: black;
}

.label-text {
    color: grey;
    padding: 0 !important;
    margin: 0;
    border: none;

}

.label-description {
    font-size: 0.85em;
    color: #555;
    padding-left: 1em;
}

.label-text .accordion-button {
    padding: 0.2rem 0.5rem !important;  /* overrides Bootstrap default */
}

/* Make active list-group-items use a neutral gray instead of Bootstrap primary blue */
.list-group-item.active {
    background-color: #e9ecef !important; /* light gray */
    border-color: #ced4da !important;
    color: #000 !important;
}

.list-group-item:focus, .list-group-item:active {
    box-shadow: none !important;
}

.search-results-container {
    max-height: 800px;
    overflow-y: auto;
    border: 1px solid #ced4da;
    padding: 0.5rem;
    border-radius: 0.25rem;
    background-color: #fff;
}

.search-results-container.hidden {
    display: none;
}

.search-results-container.visible {
    display: block;
}

.abstract-container {
    margin-bottom: 1rem;
}

.abstract-section {
    margin-bottom: 0.35rem;
}

.abstract-heading {
    font-weight: 700;
}

.modal-paper-link {
    margin-bottom: 1rem;
}

.modal-dosage-block {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.modal-tags {
    margin-top: 1.5rem;
}

.footer {
    margin-top: auto;
    width: 100%;
    position: relative;
    bottom: 0;
    background-color: #f8f9fa;
}

.content-container {
    min-height: 82vh;
}

.study-grid {
    height: 500px;
    width: 100%;
}