.blurred-answer {
    filter: blur(5px);
    cursor: pointer;
    transition: filter 0.3s ease-in-out;
}

.blurred-answer.revealed {
    filter: none;
}

.tag-badge {
	display: inline-flex;
	align-items: center;
	background-color: #007bff;  /* Bootstrap primary blue */
	color: white;
	padding: 5px 10px;
	border-radius: 15px;
	margin: 3px;
}

.tag-badge .remove-tag-btn {
	background: none;
	border: none;
	color: white;
	font-size: 14px;
	cursor: pointer;
	margin-left: 8px;
}

.tag-badge .remove-tag-btn:hover {
	color: red;
}

.container {
    max-width: 75% !important;  /* Adjust this value as needed */
}

/* Dark Mode Enhancements for Styles.css */

.blurred-answer {
    filter: blur(5px);
    cursor: pointer;
    transition: filter 0.3s ease-in-out;
}

.blurred-answer.revealed {
    filter: none;
}

/* Tag Badges - Updated to match new theme */
.tag-badge {
    display: inline-flex;
    align-items: center;
    background-color: rgba(158, 202, 211, 0.2); /* Transparent Primary */
    color: #9ECAD3; /* Primary Text */
    border: 1px solid #9ECAD3;
    padding: 5px 12px;
    border-radius: 9999px; /* Pill shape */
    margin: 3px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.tag-badge:hover {
    background-color: rgba(158, 202, 211, 0.4);
    box-shadow: 0 0 10px rgba(158, 202, 211, 0.3);
}

.tag-badge .remove-tag-btn {
    background: none;
    border: none;
    color: #7B98A9; /* TextDim */
    font-size: 16px;
    cursor: pointer;
    margin-left: 8px;
    line-height: 1;
}

.tag-badge .remove-tag-btn:hover {
    color: #B5E1EA; /* Accent for delete */
}

/* Override Select2 Dark Mode */
.select2-container {
    width: 100% !important;
}

/* Hide already selected options from the dropdown list */
.select2-container--default .select2-results__option[aria-selected="true"] {
    display: none !important;
}

.select2-container--default .select2-selection--multiple,
.select2-container--default .select2-selection--single {
    background-color: #0e1621 !important; /* cardDark */
    border: 1px solid #293846 !important;
    color: #f8fafc !important; /* textLight */
    border-radius: 0.5rem !important; /* rounded-lg */
    min-height: 54px !important; 
    padding: 6px 12px !important;
    font-family: 'Outfit', sans-serif !important;
    display: flex !important;
    align-items: center !important;
    overflow-x: auto !important;
}

/* Hide scrollbar for select2 container */
.select2-container--default .select2-selection--multiple::-webkit-scrollbar {
    display: none;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

.select2-container--default .select2-search--inline {
    float: none !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    display: flex !important;
    align-items: center !important;
    flex: 1 1 auto !important;
    min-width: 60px !important;
}

.select2-container--default .select2-search--inline .select2-search__field {
    color: #f8fafc !important;
    font-family: 'Outfit', sans-serif !important;
    margin-top: 0 !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important; /* Fixes overlap by adding explicit space between the x and text */
    background-color: rgba(158, 202, 211, 0.15) !important; /* Transparent Primary */
    border: 1px solid rgba(158, 202, 211, 0.5) !important; /* Primary Text with some transparency */
    color: #9ECAD3 !important;
    border-radius: 9999px !important;
    padding: 4px 14px 4px 10px !important; /* increased horizontal padding */
    margin: 4px 6px 4px 0 !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    white-space: nowrap !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__display {
    padding-left: 4px !important;
    padding-right: 0px !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    background: transparent !important;
    border: none !important;
    color: #7B98A9 !important; /* TextDim */
    font-size: 1.1rem !important;
    font-weight: bold !important;
    cursor: pointer !important;
    padding: 0 4px !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    position: relative !important;
    left: auto !important;
    right: auto !important;
    border-right: none !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: #ffffff !important;
    background: transparent !important;
}

.select2-dropdown {
    background-color: #0e1621 !important; /* cardDark */
    border: 1px solid #293846 !important;
    color: #f8fafc !important;
    border-radius: 0.5rem !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    margin-top: 4px;
}

.select2-results__option {
    padding: 10px 16px !important;
    font-family: 'Outfit', sans-serif !important;
}

.select2-results__option--highlighted {
    background-color: #91c3cf !important; /* Primary */
    color: #0b111b !important;
    font-weight: 600;
}

/* Layout Adjustment */
.container {
    max-width: 85% !important; /* Slightly wider for the dashboard look */
}