/* General Container */
.mic-care-blt-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 15px;
    background-color: #fff;
}

/* --- CSS CHO DROPDOWN SELECT2 --- */

/* Filter Bar Container */
.mic-care-blt-filter-bar {
    padding: 12px 15px;
    background-color: #f7f7f7;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Filter Label */
.mic-care-blt-filter-label {
    font-weight: bold;
    font-size: 16px;
    color: #333;
    white-space: nowrap;
}

/* Style cho Select2 container để nó chiếm hết không gian còn lại */
.mic-care-blt-filter-bar .select2-container {
    flex-grow: 1;
    width: auto !important;
}

/* Tùy chỉnh giao diện của Select2 cho giống với theme */
.select2-container--default .select2-selection--single {
    height: 40px;
    border: 1px solid #ccc;
    border-radius: 6px; /* THAY ĐỔI: Chỉnh border-radius cho giống ảnh mẫu */
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 38px;
    padding-left: 12px;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 38px;
}

/* --- KẾT THÚC CSS CHO DROPDOWN --- */


/* Loading Spinner */
.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
    display: none;
}
.loading-spinner.active { display: block; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Results Group */
.mic-care-blt-results-group {
    margin-bottom: 25px;
    border: 1px solid #eee;
    border-radius: 6px;
    overflow: hidden;
    background-color: #fff;
}

.mic-care-blt-group-title {
    background-color: #f5f5f5;
    padding: 12px 15px;
    font-size: 1.2em;
    font-weight: bold;
    border-bottom: 1px solid #ddd;
    color: #333;
}

/* Result Item (Mỗi dòng bệnh) */
.mic-care-blt-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}
.mic-care-blt-results-group .mic-care-blt-item:last-child { border-bottom: none; }
.mic-care-blt-results-group .mic-care-blt-item:nth-child(even) { background-color: #f9f9f9; }

.mic-care-blt-item-name {
    flex-grow: 1;
    margin-right: 15px;
    color: #333;
}

/* Result Tags */
.mic-care-blt-result-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
    flex-shrink: 0;
}
.mic-care-blt-result-tag.tag-dong-y { background-color: #0c5aa6; }
.mic-care-blt-result-tag.tag-tu-choi { background-color: #dc3545; }

/* No results message */
.mic-care-blt-no-results {
    text-align: center;
    padding: 30px;
    font-size: 1.1em;
    color: #666;
}

/* Responsive adjustments for result items on mobile */
@media (max-width: 768px) {
    .mic-care-blt-item {
        padding: 10px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}