/**
 * AQBL Question Bank - Frontend Styles
 * 
 * Main CSS file for question interface
 * 
 * @package AQBL_Question_Bank
 * @since 1.0.0
 */

/* Placeholder styles - will be expanded in Stage 2 */
#aqbl-question-bank-container {
	max-width: 1200px;
	margin: 0 auto;
}

#aqbl-question-container {
	min-height: 400px;
	position: relative;
}

/* Loading state - absolutely positioned overlay */
.aqbl-loading {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(255, 255, 255, 0.9);
	backdrop-filter: blur(2px);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1000;
	flex-direction: column;
	gap: 20px;
}

.aqbl-loading-text {
	font-size: 16px;
	color: #1f2937;
	font-weight: 500;
}

.aqbl-loading-spinner {
	display: inline-block;
	width: 40px;
	height: 40px;
	border: 4px solid #f3f3f3;
	border-top: 4px solid #3498db;
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* Error state */
.aqbl-error {
	background-color: #fee;
	border: 1px solid #fcc;
	color: #c33;
	padding: 15px;
	border-radius: 4px;
	margin: 20px 0;
}

/* Fade transition for question changes */
#aqbl-question-container {
	transition: opacity 0.3s ease-in-out;
}

#aqbl-question-container.fade-out {
	opacity: 0;
}

#aqbl-question-container.fade-in {
	opacity: 1;
}

/* Feedback overlay */
.aqbl-feedback-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(0, 0, 0, 0.7);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
}

.aqbl-feedback-content {
	background: #fff;
	padding: 30px;
	border-radius: 8px;
	max-width: 600px;
	width: 90%;
	text-align: center;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.aqbl-feedback-icon.correct {
	color: #46b450;
}

.aqbl-feedback-icon.incorrect {
	color: #dc3232;
}

.aqbl-feedback-title {
	margin: 0 0 15px 0;
	font-size: 28px;
}

.aqbl-feedback-title.correct {
	color: #46b450;
}

.aqbl-feedback-title.incorrect {
	color: #dc3232;
}

.aqbl-feedback-points {
	font-size: 18px;
	font-weight: bold;
	margin: 15px 0;
	color: #0073aa;
}

.aqbl-feedback-explanation {
	margin: 20px 0;
	padding: 15px;
	background-color: #f5f5f5;
	border-radius: 4px;
	text-align: left;
}

.aqbl-feedback-continue {
	margin-top: 20px;
}

/* Peer Percentages */
.aqbl-peer-percentages {
	margin: 20px 0;
	padding: 15px;
	background: #f9fafb;
	border-radius: 4px;
	text-align: left;
}

.aqbl-peer-percentages h4 {
	margin: 0 0 10px 0;
	font-size: 16px;
}

.aqbl-peer-percentages ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.aqbl-peer-percentages li {
	padding: 5px 0;
	border-bottom: 1px solid #e5e7eb;
}

.aqbl-peer-percentages li:last-child {
	border-bottom: none;
}

/* Question styling */
.aqbl-question {
	margin: 0 0 20px;
}

.aqbl-question .wpProQuiz_message {
	margin: 20px 0 0;
	padding: 20px;
	border: solid 1px var(--grey-300);
	border-radius: 4px;
}

/* Question Specialties */
.aqbl-question-categories {
	margin-bottom: 15px;
}

.aqbl-category-badge {
	display: inline-block;
	padding: 4px 12px;
	margin-right: 8px;
	margin-bottom: 6px;
	background-color: #f3f4f6;
	color: #374151;
	border-radius: 12px;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.5;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.aqbl-category-badge:hover {
	background-color: #e5e7eb;
	color: #1f2937;
}

/* Taxonomy Badge Colors */
.aqbl-specialty-badge {
	background-color: #dbeafe !important;
	color: #1e40af !important;
	border: 1px solid #93c5fd;
}

.aqbl-specialty-badge:hover {
	background-color: #bfdbfe !important;
	color: #1e3a8a !important;
}

.aqbl-focus-badge {
	display: inline-block;
	padding: 4px 12px;
	margin-right: 8px;
	margin-bottom: 6px;
	background-color: #f3e8ff;
	color: #6b21a8;
	border: 1px solid #c084fc;
	border-radius: 12px;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.5;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.aqbl-focus-badge:hover {
	background-color: #e9d5ff;
	color: #581c87;
}

.aqbl-difficulty-badge {
	display: inline-block;
	padding: 4px 12px;
	margin-right: 8px;
	margin-bottom: 6px;
	background-color: #fed7aa;
	color: #9a3412;
	border: 1px solid #fdba74;
	border-radius: 12px;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.5;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.aqbl-difficulty-badge:hover {
	background-color: #fdba74;
	color: #7c2d12;
}

/* Unified Tags Container */
.aqbl-unified-tags-container {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 20px;
	padding: 12px;
	background-color: #f9fafb;
	border-radius: 8px;
	border: 1px solid #e5e7eb;
}

.aqbl-unified-tag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border-radius: 16px;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.5;
	cursor: pointer;
	transition: all 0.2s ease;
}

.aqbl-unified-tag .aqbl-tag-remove {
	cursor: pointer;
	font-size: 16px;
	line-height: 1;
	opacity: 0.7;
	transition: opacity 0.2s ease;
}

.aqbl-unified-tag .aqbl-tag-remove:hover {
	opacity: 1;
}

/* Unified Tag Colors */
.aqbl-tag-specialty {
	background-color: #dbeafe;
	color: #1e40af;
	border: 1px solid #93c5fd;
}

.aqbl-tag-specialty:hover {
	background-color: #bfdbfe;
	color: #1e3a8a;
}

.aqbl-tag-focus {
	background-color: #f3e8ff;
	color: #6b21a8;
	border: 1px solid #c084fc;
}

.aqbl-tag-focus:hover {
	background-color: #e9d5ff;
	color: #581c87;
}

.aqbl-tag-difficulty {
	background-color: #fed7aa;
	color: #9a3412;
	border: 1px solid #fdba74;
}

.aqbl-tag-difficulty:hover {
	background-color: #fdba74;
	color: #7c2d12;
}

.aqbl-tag-status {
	background-color: #f3f4f6;
	color: #374151;
	border: 1px solid #d1d5db;
}

.aqbl-tag-status:hover {
	background-color: #e5e7eb;
	color: #1f2937;
}

/* Filter Section Spacing */
.aqbl-filter-section {
	margin-bottom: 24px;
}

.aqbl-filter-section:last-of-type {
	margin-bottom: 0;
}

.wpProQuiz_question {
	/* Remove border and padding */
	border: none;
	padding: 0;
	background: transparent;
	border-radius: 0;
}

.aqbl-question .wpProQuiz_question_text {
	font-size: 18px;
	font-weight: bold;
	margin-bottom: 20px;
	display: block;
	width: 100%;
}

.wpProQuiz_answer {
	margin: 10px 0;
	padding: 10px;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	transition: all 0.2s ease;
	position: relative;
	overflow: hidden;
}

.wpProQuiz_answer:hover {
	background-color: #f9f9f9;
}

.wpProQuiz_answer label {
    cursor: pointer;
    display: flex;
    margin: 0;
    position: relative;
}

/* Peer Percentage Display - Background Bar */
.wpProQuiz_answer.aqbl-has-peer-percentage {
	background-image: linear-gradient(to right, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.15));
	background-repeat: repeat-y;
	background-position: left top;
	background-size: var(--peer-percentage, 0%) 100%;
	transition: background-size 0.5s ease;
}

/* Peer percentage label */
.aqbl-peer-percentage-label {
    font-size: 12px;
    color: white;
    margin: 0 0 12px auto;
    padding: 2px 12px;
    border: 1px solid #e5e7eb;
    display: flex;
    width: fit-content;
    border-radius: 20px;
    background: var(--bde-palette-brand-2-447539d4-dc48-4f77-a4c3-89e2e79b8cfe-12);
}

/* Percentage text styling - positioned to the right */
.aqbl-peer-percentage-text {
	font-weight: 600;
	color: #374151;
	margin-left: auto;
	font-size: 14px;
	position: relative;
	z-index: 1;
	padding-left: 10px;
}

/* Answer status indicators */
.aqbl-answer-status {
	display: inline-block;
	margin-left: 10px;
	font-size: 14px;
	font-weight: 600;
	vertical-align: middle;
}

.aqbl-status-icon {
	margin-right: 5px;
	font-size: 16px;
	display: inline-block;
	vertical-align: middle;
}

.aqbl-status-correct {
	color: #2f8351;
}

.aqbl-status-incorrect {
	color: #db0000;
}

/* Answer highlighting styles - Match AQBL visual style */
.wpProQuiz_answer {
	transition: all 0.2s ease;
	position: relative;
}

/* Correct answer highlighting - gray background with green border */
#aqbl-question-container .wpProQuiz_answer.wpProQuiz_answerCorrect,
#aqbl-question-container .wpProQuiz_answer.aqbl-answer-correct {
	background-color: #f5f5f5 !important;
	border: 2px solid #2f8351 !important;
	border-radius: 4px;
	padding: 10px;
}

/* Incorrect answer highlighting - gray background with red border */
#aqbl-question-container .wpProQuiz_answer.wpProQuiz_answerIncorrect,
#aqbl-question-container .wpProQuiz_answer.aqbl-answer-incorrect {
	background-color: #f5f5f5 !important;
	border: 2px solid #db0000 !important;
	border-radius: 4px;
	padding: 10px;
}

/* Selected answer highlighting (user's selection) - blue border */
#aqbl-question-container .wpProQuiz_answer.aqbl-answer-selected {
	background-color: #f5f5f5 !important;
	border: 2px solid #235af3 !important;
	border-radius: 4px;
	padding: 10px;
}

/* Combined states - selected and correct */
#aqbl-question-container .wpProQuiz_answer.aqbl-answer-selected.aqbl-answer-correct {
	background-color: #e8f5e9 !important;
	border: 2px solid #2f8351 !important;
}

/* Combined states - selected and incorrect */
#aqbl-question-container .wpProQuiz_answer.aqbl-answer-selected.aqbl-answer-incorrect {
	background-color: #ffebee !important;
	border: 2px solid #db0000 !important;
}

/* Label text styling */
#aqbl-question-container .wpProQuiz_answer label.wpProQuiz_answerCorrect {
	color: #1f2937;
	font-weight: 500;
}

#aqbl-question-container .wpProQuiz_answer label.wpProQuiz_answerIncorrect {
	color: #1f2937;
	font-weight: 500;
}

/* Ensure status text is visible and properly styled */
#aqbl-question-container .wpProQuiz_answer .aqbl-answer-status {
    display: flex;
    visibility: visible !important;
    opacity: 1 !important;
    margin-left: 10px;
    font-size: 14px;
    font-weight: 600;
    align-items: center;
}

#aqbl-question-container .wpProQuiz_answer .aqbl-status-icon {
	display: inline-block !important;
	margin-right: 5px;
	font-size: 16px;
	vertical-align: middle;
}

.aqbl-answer-input {
	margin-right: 10px;
}

.aqbl-question-actions {
	margin-top: 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.aqbl-question-actions-left {
	display: flex;
	gap: 10px;
}

.aqbl-bookmark-button {
	background: transparent;
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: 8px 15px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	transition: all 0.2s;
	font-size: 14px;
}

.aqbl-bookmark-button:hover {
	background: #f5f5f5;
	border-color: #999;
}

.aqbl-bookmark-button.aqbl-bookmarked {
	background: #fff9e6;
	border-color: #fbbf24;
}

.aqbl-bookmark-button.aqbl-bookmarked .aqbl-bookmark-icon {
	color: #f59e0b;
}

.aqbl-bookmark-icon {
	font-size: 18px;
	line-height: 1;
}

.aqbl-feedback-button {
	background: transparent;
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: 8px 15px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	transition: all 0.2s;
	font-size: 14px;
	color: #666;
}

.aqbl-feedback-button:hover {
	background: #fff5f5;
	border-color: #f87171;
	color: #dc2626;
}

.aqbl-feedback-icon {
	font-size: 14px;
	line-height: 1;
}

.aqbl-btn {
    margin: 0;
    border-radius: 20px;
    background-color: #235af3;
    color: white;
    box-shadow: none;
    text-transform: none;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    max-width: 385px;
    white-space: normal;
    text-shadow: none;
    border: 0;
    opacity: 1;
    transition: opacity 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
    padding: 8px 16px;
    line-height: 1.25em;
}

.aqbl-bookmark-feedback {
	position: fixed;
	top: 20px;
	right: 20px;
	background: #16a34a;
	color: #fff;
	padding: 12px 20px;
	border-radius: 4px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	z-index: 10000;
	opacity: 0;
	transform: translateY(-10px);
	transition: all 0.3s ease;
}

.aqbl-bookmark-feedback.show {
	opacity: 1;
	transform: translateY(0);
}

/* Filter Interface Styles */
.aqbl-filter-container {
    display: flex;
    column-gap: 40px;
    flex-direction: column;
}

.aqbl-category-filter,
.aqbl-status-filter {
	flex: 1;
	min-width: min(320px,100%);
}

div.aqbl-filter-section h3 {
	margin-top: 0;
	margin-bottom: 15px;
	font-size: 18px;
}

/* Selected Categories Tags */
.aqbl-selected-categories {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 15px;
	min-height: 32px;
	padding: 8px;
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 4px;
}

.aqbl-category-tag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	background: #3b82f6;
	color: #fff;
	border-radius: 16px;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
}

.aqbl-tag-remove {
	cursor: pointer;
	font-size: 18px;
	line-height: 1;
	font-weight: bold;
	opacity: 0.8;
	transition: opacity 0.2s;
	margin-left: 2px;
}

.aqbl-tag-remove:hover {
	opacity: 1;
}

/* Multi-select Dropdown */
.aqbl-category-multiselect {
	position: relative;
	width: 100%;
}

.aqbl-multiselect-input-wrapper {
	position: relative;
	display: flex;
	align-items: center;
	border: 1px solid #d1d5db;
	border-radius: 4px;
	background: #fff;
	cursor: pointer;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.aqbl-multiselect-input-wrapper:hover {
	border-color: #9ca3af;
}

.aqbl-category-multiselect.active .aqbl-multiselect-input-wrapper {
	border-color: #3b82f6;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.aqbl-category-search {
	flex: 1;
	border: none;
	padding: 10px 35px 10px 12px;
	font-size: 14px;
	background: transparent;
	outline: none;
	cursor: pointer;
}

.aqbl-category-search::placeholder {
	color: #9ca3af;
}

.aqbl-multiselect-arrow {
	position: absolute;
	right: 12px;
	color: #6b7280;
	font-size: 12px;
	pointer-events: none;
	transition: transform 0.2s;
}

.aqbl-category-multiselect.active .aqbl-multiselect-arrow {
	transform: rotate(180deg);
}

/* Dropdown */
.aqbl-multiselect-dropdown {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: #fff;
	border: 1px solid #d1d5db;
	border-top: none;
	border-radius: 0 0 4px 4px;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
	max-height: 400px;
	overflow-y: auto;
	z-index: 1000;
	margin-top: -1px;
}

.aqbl-category-multiselect.active .aqbl-multiselect-dropdown {
	display: block;
}

/* Category Groups */
.aqbl-category-group {
	margin-bottom: 0;
}

.aqbl-category-group-header {
	padding: 10px 12px;
	background: #f9fafb;
	border-bottom: 1px solid #e5e7eb;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #6b7280;
	position: sticky;
	top: 0;
	z-index: 10;
}

.aqbl-category-group-items {
	padding: 4px 0;
}

/* Category Options */
.aqbl-category-option {
	display: flex;
	align-items: center;
	padding: 8px 12px;
	cursor: pointer;
	transition: background-color 0.15s;
	user-select: none;
}

.aqbl-category-option:hover {
	background-color: #f3f4f6;
}

.aqbl-category-option.selected {
	background-color: #eff6ff;
}

.aqbl-category-option.selected:hover {
	background-color: #dbeafe;
}

.aqbl-category-option .aqbl-category-checkbox {
	margin-right: 10px;
	cursor: pointer;
	flex-shrink: 0;
}

.aqbl-category-label {
	flex: 1;
	cursor: pointer;
	font-size: 14px;
	color: #1f2937;
	line-height: 1.5;
}

.aqbl-category-child .aqbl-category-label {
	font-weight: normal;
}

.aqbl-category-parent .aqbl-category-label {
	font-weight: 500;
}

.aqbl-category-count {
	color: #6b7280;
	font-size: 12px;
	margin-left: 6px;
	font-weight: normal;
}

/* No Results */
.aqbl-category-no-results {
	padding: 20px;
	text-align: center;
	color: #6b7280;
	font-size: 14px;
}

/* Legacy styles for backward compatibility */
.aqbl-category-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.aqbl-category-item {
	margin: 5px 0;
	padding: 5px 0;
}

/* Status Multi-select (similar to category multi-select) */
.aqbl-selected-statuses {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 15px;
	min-height: 32px;
	padding: 8px;
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 4px;
}

.aqbl-status-tag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	background: #10b981;
	color: #fff;
	border-radius: 16px;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
}

.aqbl-status-tag .aqbl-tag-remove {
	cursor: pointer;
	font-size: 18px;
	line-height: 1;
	font-weight: bold;
	opacity: 0.8;
	transition: opacity 0.2s;
	margin-left: 2px;
}

.aqbl-status-tag .aqbl-tag-remove:hover {
	opacity: 1;
}

/* Generic Taxonomy Multi-select Dropdown (for Status, Focus, Difficulty, etc.) */
.aqbl-taxonomy-multiselect,
.aqbl-status-multiselect {
	position: relative;
	width: 100%;
}

.aqbl-taxonomy-multiselect .aqbl-multiselect-input-wrapper,
.aqbl-status-multiselect .aqbl-multiselect-input-wrapper {
	position: relative;
	display: flex;
	align-items: center;
	border: 1px solid #d1d5db;
	border-radius: 4px;
	background: #fff;
	cursor: pointer;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.aqbl-taxonomy-multiselect .aqbl-multiselect-input-wrapper:hover,
.aqbl-status-multiselect .aqbl-multiselect-input-wrapper:hover {
	border-color: #9ca3af;
}

.aqbl-taxonomy-multiselect.active .aqbl-multiselect-input-wrapper,
.aqbl-status-multiselect.active .aqbl-multiselect-input-wrapper {
	border-color: #10b981;
	box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.aqbl-taxonomy-search,
.aqbl-status-search {
	flex: 1;
	border: none;
	padding: 10px 35px 10px 12px;
	font-size: 14px;
	background: transparent;
	outline: none;
	cursor: pointer;
}

.aqbl-taxonomy-search::placeholder,
.aqbl-status-search::placeholder {
	color: #9ca3af;
}

.aqbl-taxonomy-multiselect .aqbl-multiselect-arrow,
.aqbl-status-multiselect .aqbl-multiselect-arrow {
	position: absolute;
	right: 12px;
	color: #6b7280;
	font-size: 12px;
	pointer-events: none;
	transition: transform 0.2s;
}

.aqbl-taxonomy-multiselect.active .aqbl-multiselect-arrow,
.aqbl-status-multiselect.active .aqbl-multiselect-arrow {
	transform: rotate(180deg);
}

/* Taxonomy Dropdown */
.aqbl-taxonomy-multiselect .aqbl-multiselect-dropdown,
.aqbl-status-multiselect .aqbl-multiselect-dropdown {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: #fff;
	border: 1px solid #d1d5db;
	border-top: none;
	border-radius: 0 0 4px 4px;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
	max-height: 300px;
	overflow-y: auto;
	z-index: 1000;
	margin-top: -1px;
}

.aqbl-taxonomy-multiselect.active .aqbl-multiselect-dropdown,
.aqbl-status-multiselect.active .aqbl-multiselect-dropdown {
	display: block;
}

/* Taxonomy Options */
.aqbl-taxonomy-group-items,
.aqbl-status-group-items {
	padding: 4px 0;
}

.aqbl-taxonomy-option,
.aqbl-status-option {
	display: flex;
	align-items: center;
	padding: 8px 12px;
	cursor: pointer;
	transition: background-color 0.15s;
	user-select: none;
}

.aqbl-taxonomy-option:hover,
.aqbl-status-option:hover {
	background-color: #f3f4f6;
}

.aqbl-taxonomy-option.selected,
.aqbl-status-option.selected {
	background-color: #ecfdf5;
}

.aqbl-taxonomy-option.selected:hover,
.aqbl-status-option.selected:hover {
	background-color: #d1fae5;
}

.aqbl-taxonomy-option .aqbl-taxonomy-checkbox,
.aqbl-status-option .aqbl-status-checkbox {
	margin-right: 10px;
	cursor: pointer;
	flex-shrink: 0;
}

.aqbl-taxonomy-label,
.aqbl-status-label {
	flex: 1;
	cursor: pointer;
	font-size: 14px;
	color: #1f2937;
	line-height: 1.5;
}

.aqbl-status-count {
	color: #6b7280;
	font-size: 12px;
	margin-left: 6px;
	font-weight: normal;
}

/* Taxonomy No Results */
.aqbl-taxonomy-no-results,
.aqbl-status-no-results {
	padding: 20px;
	text-align: center;
	color: #6b7280;
	font-size: 14px;
}

/* Legacy styles for backward compatibility */
.aqbl-status-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	gap: 20px;
	justify-content: space-between;
}

.aqbl-status-list li {
	margin: 8px 0;
	padding: 5px 0;
}

.aqbl-status-list label {
	cursor: pointer;
	display: flex;
	align-items: center;
}

.aqbl-status-radio {
	margin-right: 8px;
}

.aqbl-filter-actions {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid #ddd;
	width: 100%;
}

.aqbl-filter-actions .button {
	margin-right: 10px;
}

/* Progress Header */
.aqbl-progress-header {
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: 20px;
	margin-bottom: 20px;
}

.aqbl-progress-bar-container {
	margin-bottom: 15px;
}

.aqbl-progress-bar {
	width: 100%;
	height: 30px;
	background-color: #e5e7eb;
	border-radius: 4px;
	overflow: hidden;
	display: flex;
	position: relative;
}

.aqbl-progress-segment {
	height: 100%;
	transition: width 0.3s ease;
	cursor: help;
}

.aqbl-progress-correct {
	background-color: #16a34a;
}

.aqbl-progress-incorrect {
	background-color: #dc2626;
}

.aqbl-progress-unanswered {
	background-color: #d1d5db;
}

.aqbl-stats-summary {
	display: flex;
	justify-content: space-around;
	gap: 20px;
	flex-wrap: wrap;
}

.aqbl-stat-item {
	font-size: 14px;
	color: #666;
}

.aqbl-stat-item strong {
	font-size: 18px;
	color: #1f2937;
	margin-right: 5px;
}

/* Main Content Layout */
.aqbl-main-content {
	display: flex;
	flex-direction: column;
	gap: 20px;
	align-items: flex-start;
}

.aqbl-filter-toggle-btn {
	background: var(--bde-palette-brand-3-unsaturated-771e7ef5-1824-4361-8273-6bb212f0c98a-2);
	border: 1px solid #d1d5db;
	border-radius: 4px;
	padding: 8px 16px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	color: #1f2937;
	transition: all 0.2s;
	margin-right: 10px;
}

.aqbl-filter-toggle-btn:hover {
	background: var(--bde-palette-brand-3-0aef0a2e-7f55-492c-9627-37258be30fc3-8);
	border-color: #9ca3af;
}

.aqbl-filter-toggle-icon {
	font-size: 18px;
	line-height: 1;
}

/* Filter Modal */
.aqbl-filter-modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 10000;
}

.aqbl-filter-modal-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(2px);
}

.aqbl-filter-modal-content {
	position: relative;
	background: #fff;
	border-radius: 8px;
	max-width: 600px;
	max-height: 90vh;
	margin: 5vh auto;
	display: flex;
	flex-direction: column;
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
	z-index: 1;
	pointer-events: auto;
}

.aqbl-filter-modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px 24px;
	border-bottom: 1px solid #e5e7eb;
	background: #fff;
}

.aqbl-filter-modal-header h3 {
	margin: 0;
	font-size: 20px;
	font-weight: 600;
	color: #1f2937;
}

.aqbl-filter-modal-close {
	background: transparent;
	border: none;
	font-size: 28px;
	line-height: 1;
	color: #6b7280;
	cursor: pointer;
	padding: 0;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
	transition: all 0.2s;
}

.aqbl-filter-modal-close:hover {
	background: #f3f4f6;
	color: #1f2937;
}

.aqbl-filter-content {
	padding: 24px;
	flex: 1;
}

.aqbl-question-wrapper {
	width: 100%;
}

.aqbl-question-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px 20px;
	background: var(--grey-50);
	border: 1px solid #ddd;
	border-radius: 4px 4px 0 0;
	margin-bottom: 0;
}

.aqbl-question-counter {
	font-size: 16px;
	font-weight: 600;
	color: #1f2937;
}

.aqbl-question-navigation {
	display: flex;
	gap: 10px;
}

.aqbl-nav-btn {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 8px 16px;
	background: #fff;
	border: 1px solid #d1d5db;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
	transition: all 0.2s;
}

.aqbl-nav-btn:hover:not(:disabled) {
	background: #f5f5f5;
	border-color: #9ca3af;
}

.aqbl-nav-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.aqbl-nav-icon {
	font-size: 16px;
	line-height: 1;
}

.aqbl-question-container {
	background: #fff;
	border: 1px solid #ddd;
	border-top: none;
	border-radius: 0 0 4px 4px;
	padding: 20px;
	min-height: 400px;
	position: relative;
}

/* Mobile Responsive */
@media (max-width: 768px) {
	.aqbl-filter-modal-content {
		max-width: 95%;
		max-height: 95vh;
		margin: 2.5vh auto;
		border-radius: 8px;
	}

	.aqbl-filter-modal-header {
		padding: 16px 20px;
	}

	.aqbl-filter-modal-header h3 {
		font-size: 18px;
	}

	.aqbl-filter-content {
		padding: 20px;
	}

	.aqbl-question-header {
		flex-direction: column;
		gap: 15px;
		align-items: flex-start;
	}

	.aqbl-question-navigation {
		width: 100%;
		justify-content: space-between;
	}

	.aqbl-nav-btn {
		flex: 1;
		justify-content: center;
	}

	.aqbl-stats-summary {
		flex-direction: column;
		gap: 10px;
	}

	/* Mobile multi-select adjustments */
	.aqbl-multiselect-dropdown {
		max-height: 60vh;
		position: fixed;
		left: 10px;
		right: 10px;
		top: auto;
		bottom: 10px;
		border-radius: 8px;
		box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1), 0 -2px 4px -1px rgba(0, 0, 0, 0.06);
	}

	.aqbl-category-option {
		padding: 12px;
		min-height: 44px; /* Touch-friendly */
	}

	.aqbl-category-tag {
		padding: 6px 12px;
		font-size: 14px;
	}

	/* Mobile taxonomy multi-select adjustments (Status, Focus, Difficulty) */
	.aqbl-taxonomy-multiselect .aqbl-multiselect-dropdown,
	.aqbl-status-multiselect .aqbl-multiselect-dropdown {
		max-height: 60vh;
		position: fixed;
		left: 10px;
		right: 10px;
		top: auto;
		bottom: 10px;
		border-radius: 8px;
		box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1), 0 -2px 4px -1px rgba(0, 0, 0, 0.06);
	}

	.aqbl-taxonomy-option,
	.aqbl-status-option {
		padding: 12px;
		min-height: 44px; /* Touch-friendly */
	}

	.aqbl-status-tag {
		padding: 6px 12px;
		font-size: 14px;
	}
}

/* Feedback Modal Styles */
.aqbl-feedback-modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
}

.aqbl-feedback-modal-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(2px);
}

.aqbl-feedback-modal-content {
	position: relative;
	background: #fff;
	border-radius: 8px;
	max-width: 600px;
	width: 90%;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
	z-index: 10001;
}

.aqbl-feedback-modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px 25px;
	border-bottom: 1px solid #e5e7eb;
}

.aqbl-feedback-modal-header h3 {
	margin: 0;
	font-size: 20px;
	font-weight: 600;
	color: #111827;
}

.aqbl-feedback-modal-close {
	background: none;
	border: none;
	font-size: 28px;
	line-height: 1;
	color: #6b7280;
	cursor: pointer;
	padding: 0;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
	transition: all 0.2s;
}

.aqbl-feedback-modal-close:hover {
	background: #f3f4f6;
	color: #111827;
}

.aqbl-feedback-modal-body {
	padding: 25px;
}

.aqbl-feedback-field {
	margin-bottom: 20px;
}

.aqbl-feedback-field label {
	display: block;
	margin-bottom: 8px;
	font-weight: 500;
	color: #374151;
	font-size: 14px;
}

.aqbl-feedback-field .required {
	color: #dc2626;
}

.aqbl-feedback-field select,
.aqbl-feedback-field textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font-size: 14px;
	font-family: inherit;
	transition: border-color 0.2s;
}

.aqbl-feedback-field select:focus,
.aqbl-feedback-field textarea:focus {
	outline: none;
	border-color: #3b82f6;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.aqbl-feedback-field textarea {
	resize: vertical;
	min-height: 120px;
}

.aqbl-feedback-messages {
	margin-bottom: 20px;
}

.aqbl-feedback-success {
	background: #d1fae5;
	border: 1px solid #6ee7b7;
	color: #065f46;
	padding: 12px 16px;
	border-radius: 6px;
	font-size: 14px;
}

.aqbl-feedback-error {
	background: #fee2e2;
	border: 1px solid #fca5a5;
	color: #991b1b;
	padding: 12px 16px;
	border-radius: 6px;
	font-size: 14px;
}

.aqbl-feedback-modal-actions {
	display: flex;
	justify-content: flex-end;
	gap: 12px;
	margin-top: 25px;
	padding-top: 20px;
	border-top: 1px solid #e5e7eb;
}

.aqbl-feedback-modal-actions .button {
	padding: 10px 20px;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s;
	border: 1px solid transparent;
}

.aqbl-feedback-modal-cancel {
	background: #fff;
	border-color: #d1d5db;
	color: #374151;
}

.aqbl-feedback-modal-cancel:hover {
	background: #f9fafb;
	border-color: #9ca3af;
}

.aqbl-feedback-submit {
	background: #3b82f6;
	border-color: #3b82f6;
	color: #fff;
}

.aqbl-feedback-submit:hover {
	background: #2563eb;
	border-color: #2563eb;
}

.aqbl-feedback-submit:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* Prevent body scroll when modal is open */
body.aqbl-modal-open {
	overflow: hidden;
}

/* Mobile responsive */
@media (max-width: 768px) {
	.aqbl-feedback-modal-content {
		width: 95%;
		max-height: 95vh;
	}

	.aqbl-feedback-modal-header {
		padding: 15px 20px;
	}

	.aqbl-feedback-modal-body {
		padding: 20px;
	}

	.aqbl-feedback-modal-actions {
		flex-direction: column;
	}

	.aqbl-feedback-modal-actions .button {
		width: 100%;
	}
}

