/* 
 * Rajmudra MCQ Frontend Quiz Styles 
 * Theme: White and Green (Rajmudra Theme)
 */
.rm-quiz-app {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	max-width: 850px;
	margin: 0 auto;
	color: #1f2937;
}

.rm-quiz-app.fullscreen-layout {
	max-width: 100%;
}

/* Base Card Style */
.rm-quiz-intro,
.rm-quiz-area,
.rm-quiz-results {
	background: #ffffff;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
	border: 1px solid #e5e7eb;
	padding: 32px;
	margin-bottom: 24px;
	width: 100%;
}

.rm-quiz-area {
	padding: 0;
	background: transparent;
	border: none;
	box-shadow: none;
}

/* INTRO / LEVEL VIEW */
.rm-quiz-intro-header {
	text-align: center;
	margin-bottom: 32px;
	padding-bottom: 24px;
	border-bottom: 1px solid #f3f4f6;
}

.rm-quiz-pkg-title {
	font-size: 32px;
	font-weight: 800;
	color: #065f46;
	/* Deep Green */
	margin: 0 0 12px 0;
	line-height: 1.2;
}

.rm-quiz-pkg-desc {
	font-size: 16px;
	color: #4b5563;
	margin: 0 0 16px 0;
}

.rm-quiz-subject-badge {
	display: inline-block;
	background: #d1fae5;
	color: #047857;
	padding: 6px 16px;
	border-radius: 20px;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.5px;
}

.rm-quiz-section-heading {
	font-size: 18px;
	font-weight: 600;
	color: #374151;
	margin-bottom: 20px;
	text-align: center;
}

.rm-quiz-level-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 16px;
}

.rm-quiz-level-card {
	background: #ffffff;
	border: 2px solid #e5e7eb;
	border-radius: 10px;
	padding: 16px;
	display: flex;
	align-items: center;
	cursor: pointer;
	transition: all 0.2s ease;
	text-align: left;
	width: 100%;
}

.rm-quiz-level-card:hover {
	border-color: #10b981;
	/* Emerald Green */
	background: #f0fdf4;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.rm-level-icon {
	width: 48px;
	height: 48px;
	border-radius: 10px;
	background: #ecfdf5;
	color: #059669;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	font-weight: 700;
	margin-right: 16px;
}

.rm-quiz-level-card:hover .rm-level-icon {
	background: #10b981;
	color: #fff;
}

.rm-level-info {
	flex-grow: 1;
}

.rm-level-info strong {
	display: block;
	font-size: 18px;
	color: #111827;
	margin-bottom: 4px;
}

.rm-level-info span {
	font-size: 13px;
	color: #6b7280;
}

.rm-level-arrow {
	font-size: 20px;
	color: #9ca3af;
	font-weight: 300;
	transition: transform 0.2s;
}

.rm-quiz-level-card:hover .rm-level-arrow {
	color: #10b981;
	transform: translateX(4px);
}


/* QUIZ INTERFACE LAYOUT (DESKTOP) */
.rm-quiz-desktop-layout {
	display: grid;
	grid-template-columns: 1fr 340px;
	gap: 24px;
	align-items: start;
}

.rm-quiz-main-column {
	background: #ffffff;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
	border: 1px solid #e5e7eb;
	padding: 32px;
}

.rm-quiz-sidebar-column {
	position: sticky;
	top: 24px;
}

.rm-sidebar-card {
	background: #ffffff;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
	border: 1px solid #e5e7eb;
	padding: 24px;
}

/* TOPBAR */
.rm-quiz-topbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
}

.rm-quiz-topbar-left {
	display: flex;
	align-items: center;
	gap: 12px;
}

.rm-quiz-level-label {
	background: #f3f4f6;
	color: #4b5563;
	padding: 4px 10px;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
}

.rm-quiz-counter {
	font-weight: 600;
	color: #374151;
	font-size: 16px;
}

/* TIMER */
.rm-quiz-timer {
	display: flex;
	align-items: center;
	gap: 8px;
	background: #ecfdf5;
	color: #059669;
	padding: 10px 16px;
	border-radius: 8px;
	font-weight: 700;
	font-size: 18px;
	border: 1px solid #a7f3d0;
	justify-content: center;
}

.rm-quiz-timer.desktop-timer {
	margin-bottom: 24px;
}

.rm-mobile-stats {
	display: none;
	/* Hidden on desktop */
}

.rm-quiz-timer.warning {
	background: #fef2f2;
	color: #dc2626;
	border-color: #fca5a5;
}

.rm-quiz-timer.warning svg {
	animation: pulse 1s infinite;
}

@keyframes pulse {
	0% {
		transform: scale(1);
	}

	50% {
		transform: scale(1.1);
	}

	100% {
		transform: scale(1);
	}
}

/* STATS GRID */
.rm-quiz-stats-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	margin-bottom: 24px;
}

.rm-stat-box {
	background: #f9fafb !important;
	border: 1px solid #e5e7eb !important;
	border-radius: 8px !important;
	padding: 12px 8px !important;
	text-align: center !important;
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	justify-content: center !important;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02) !important;
}

.rm-stat-val {
	font-size: 20px;
	font-weight: 800;
	color: #111827;
	margin-bottom: 4px;
}

.rm-stat-lbl {
	font-size: 11px;
	color: #6b7280;
	text-transform: uppercase;
	font-weight: 600;
	letter-spacing: 0.5px;
}

.rm-stat-box.count-correct .rm-stat-val {
	color: #10b981;
}

.rm-stat-box.count-wrong .rm-stat-val {
	color: #ef4444;
}

.rm-sidebar-divider {
	height: 1px;
	background: #e5e7eb;
	margin: 24px 0;
}

.rm-sidebar-title {
	font-size: 14px;
	font-weight: 700;
	color: #374151;
	margin-bottom: 16px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* SQUARE PROGRESS PROGRESS GRID (DESKTOP) */
.rm-quiz-square-progress {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(32px, 1fr));
	gap: 8px;
	justify-content: start;
}

.rm-square-block {
	width: 100%;
	aspect-ratio: 1/1;
	border-radius: 6px;
	background: #e5e7eb;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	font-size: 14px;
	font-weight: 700;
	color: #6b7280;
	cursor: pointer;
	border: 2px solid transparent;
}

.rm-square-block:hover {
	transform: translateY(-2px);
	filter: brightness(0.95);
}

.rm-square-block.active {
	background: #ffffff;
	color: #111827;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
	transform: scale(1.15);
	border-color: #374151;
	z-index: 2;
}

.rm-square-block.correct {
	background: #10b981;
	color: #fff;
}

.rm-square-block.wrong {
	background: #ef4444;
	color: #fff;
}

/* QUESTION CARD */
.rm-quiz-question-card {
	margin-bottom: 24px;
}

.rm-quiz-question-text {
	font-size: 20px;
	line-height: 1.5;
	color: #111827;
	font-weight: 600;
	margin-bottom: 24px;
	text-transform: none !important;
}

/* Options */
.rm-quiz-options {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.rm-option-btn {
	width: 100%;
	text-align: left;
	padding: 12px 14px;
	background: #f9fafb;
	border: 2px solid #e5e7eb;
	border-radius: 10px;
	font-size: 14px;
	color: #374151;
	cursor: pointer;
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
	text-transform: none !important;
}

.rm-option-btn:hover:not(:disabled) {
	background: #f0fdf4;
	border-color: #34d399;
}

.rm-option-marker {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: #e5e7eb;
	color: #4b5563;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 600;
	margin-right: 16px;
	flex-shrink: 0;
	font-size: 14px;
	transition: all 0.2s ease;
}

.rm-option-btn:hover:not(:disabled) .rm-option-marker {
	background: #10b981;
	color: #ffffff;
}

/* States */
.rm-option-btn:disabled {
	cursor: default;
}

.rm-option-btn.selected {
	border-color: #9ca3af;
}

.rm-option-btn.correct {
	background: #ecfdf5;
	border-color: #10b981;
	color: #065f46;
}

.rm-option-btn.correct .rm-option-marker {
	background: #10b981;
	color: #ffffff;
}

.rm-option-btn.wrong {
	background: #fef2f2;
	border-color: #ef4444;
	color: #991b1b;
}

.rm-option-btn.wrong .rm-option-marker {
	background: #ef4444;
	color: #ffffff;
}

/* Explanation Block */
.rm-quiz-explanation {
	background: #f8fafc;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	padding: 20px;
	margin-top: 24px;
	animation: slideDown 0.3s ease-out forwards;
}

.rm-quiz-explanation.success {
	background: #f0fdf4;
	border-color: #a7f3d0;
}

.rm-quiz-explanation.error {
	background: #fef2f2;
	border-color: #fca5a5;
}

.rm-explanation-header {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
	font-size: 18px;
}

.rm-quiz-explanation.success .rm-explanation-header {
	color: #059669;
}

.rm-quiz-explanation.error .rm-explanation-header {
	color: #dc2626;
}

#rm-explanation-text {
	color: #475569;
	font-size: 15px;
	line-height: 1.5;
	margin: 0;
}

@keyframes slideDown {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Loader */
.rm-quiz-loader {
	text-align: center;
	padding: 60px 0;
}

.rm-spinner {
	width: 40px;
	height: 40px;
	border: 4px solid #f3f4f6;
	border-top-color: #10b981;
	border-radius: 50%;
	animation: spin 1s linear infinite;
	margin: 0 auto 16px auto;
}

@keyframes spin {
	100% {
		transform: rotate(360deg);
	}
}


/* Results */
.rm-results-card {
	text-align: center;
	padding: 20px 0;
}

.rm-results-icon {
	font-size: 64px;
	margin-bottom: 16px;
}

.rm-results-card h2 {
	font-size: 32px;
	color: #111827;
	margin-bottom: 24px;
}

.rm-results-score {
	font-size: 72px;
	font-weight: 800;
	color: #059669;
	margin-bottom: 24px;
	display: flex;
	justify-content: center;
	align-items: baseline;
}

.rm-score-sep {
	font-size: 40px;
	color: #d1d5db;
	margin: 0 12px;
	font-weight: 300;
}

.rm-score-total {
	font-size: 40px;
	color: #6b7280;
}

.rm-results-msg {
	font-size: 18px;
	color: #4b5563;
	margin-bottom: 40px;
}

.rm-btn-back {
	background: #111827;
	color: #fff;
	border: none;
	padding: 14px 32px;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s;
}

.rm-btn-back:hover {
	background: #374151;
}

/* Three-column grid (OMG Rajmudra Template) */
.rm-exam-container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 20px 0;
}

.rm-three-column-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 25px;
	margin-top: 30px;
}

.rm-exam-card {
	background: #FFFFFF;
	border-radius: 10px;
	padding: 25px 20px;
	box-shadow: 0 6px 20px rgba(15, 23, 42, 0.1);
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	border: 1px solid #E2E8F0;
	text-align: center;
	position: relative;
	overflow: hidden;
	cursor: pointer;
}

.rm-exam-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 15px 35px var(--theme-shadow, rgba(15, 23, 42, 0.15));
	border-color: var(--hover-border, transparent);
}

.rm-card-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	padding-bottom: 15px;
	border-bottom: 2px solid #F1F5F9;
}

.rm-card-logo {
	display: flex;
	align-items: center;
	gap: 12px;
}

.rm-logo-badge {
	width: 50px;
	height: 50px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-weight: 800;
	font-size: 20px;
	box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.rm-logo-text {
	font-weight: 700;
	color: #0F172A;
	font-size: 18px;
	letter-spacing: -0.3px;
	text-align: left;
}

.rm-logo-subtext {
	color: #64748B;
	font-size: 12px;
	font-weight: 500;
	margin-top: 2px;
}

.rm-card-date {
	display: flex;
	align-items: center;
	gap: 8px;
	background: #F8FAFC;
	padding: 8px 12px;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 500;
	color: #475569;
}

.rm-date-icon {
	width: 14px;
	height: 14px;
	fill: #475569;
}

.rm-exam-title {
	color: #0F172A;
	font-size: 26px;
	font-weight: 800;
	margin: 20px 0 15px;
	letter-spacing: -0.5px;
}

.rm-exam-subtitle {
	color: #64748B;
	font-size: 15px;
	line-height: 1.7;
	margin-bottom: 30px;
	padding: 0 10px;
}

.rm-card-button {
	color: white;
	border: none;
	padding: 16px;
	font-size: 18px;
	font-weight: 700;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.3s ease;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 100%;
	margin-top: 5px;
	position: relative;
	overflow: hidden;
}

.rm-card-button:hover {
	transform: translateY(-3px);
	filter: brightness(1.1);
}

.rm-button-icon {
	width: 22px !important;
	height: 22px !important;
	fill: white;
	transition: transform 0.3s ease;
}

.rm-card-button:hover .rm-button-icon {
	transform: translateX(5px);
}

.rm-loading-dots {
	display: none;
	gap: 6px;
}

.rm-loading-dots span {
	width: 8px;
	height: 8px;
	background: white;
	border-radius: 50%;
	animation: rm-bounce 1.4s infinite ease-in-out both;
}

.rm-loading-dots span:nth-child(1) {
	animation-delay: -0.32s;
}

.rm-loading-dots span:nth-child(2) {
	animation-delay: -0.16s;
}

@keyframes rm-bounce {

	0%,
	80%,
	100% {
		transform: scale(0);
	}

	40% {
		transform: scale(1);
	}
}

.rm-success-icon {
	display: none;
	width: 24px !important;
	height: 24px !important;
	fill: white;
	animation: rm-checkmark 0.5s ease;
}

@keyframes rm-checkmark {
	0% {
		transform: scale(0);
	}

	50% {
		transform: scale(1.2);
	}

	100% {
		transform: scale(1);
	}
}

/* RESPONSIVE DESIGN */
@media (max-width: 992px) {
	.rm-quiz-desktop-layout {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.rm-quiz-main-column {
		padding: 24px 20px;
	}

	.rm-quiz-sidebar-column {
		position: static;
		order: -1;
	}

	.rm-sidebar-card {
		padding: 16px;
	}

	.rm-quiz-stats-grid {
		display: flex !important;
		flex-direction: row !important;
		justify-content: center !important;
		align-items: center !important;
		gap: 12px !important;
		margin-bottom: 24px !important;
		width: 100% !important;
	}

	.rm-stat-box {
		flex: 1 1 0 !important;
		min-width: 0 !important;
		padding: 12px 6px !important;
		background: #ffffff !important;
		border: 1px solid #e2e8f0 !important;
		border-radius: 10px !important;
		box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
	}
}

@media (max-width: 768px) {
	.rm-three-column-grid {
		grid-template-columns: 1fr;
		gap: 15px;
	}
}

/* MCQ Quiz Breakdown Styles */
.rm-mcq-container {
	width: 100%;
	margin-top: 20px;
}

.rm-mcq-header {
	margin-bottom: 30px;
	text-align: left;
}

.rm-mcq-badge {
	display: inline-block;
	background: #ecfdf5;
	color: #059669;
	padding: 6px 14px;
	border-radius: 50px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-bottom: 12px;
	border: 1px solid #d1fae5;
}

.rm-mcq-title {
	font-size: 28px;
	font-weight: 800;
	background: linear-gradient(135deg, #065f46 0%, #10b981 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	margin-bottom: 8px;
	line-height: 1.2;
}

.rm-mcq-subtitle {
	font-size: 16px;
	color: #4b5563;
	line-height: 1.5;
}

.rm-mcq-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

@media (max-width: 1024px) {
	.rm-mcq-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 640px) {
	.rm-mcq-grid {
		grid-template-columns: 1fr;
	}
}

/* ==========================================
 * MPSC-Style Subject Cards
 * ========================================== */
.rm-subject-card {
	background: #FFFFFF;
	border-radius: 12px;
	padding: 0;
	box-shadow: 0 8px 25px rgba(15, 23, 42, 0.08);
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	border: 1px solid #E2E8F0;
	overflow: hidden;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.rm-subject-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 15px 35px rgba(15, 23, 42, 0.12);
	border-color: #1B8A5A;
}

/* Subject Header */
.rm-subject-header {
	background: linear-gradient(135deg, #1B8A5A 0%, #147349 100%);
	color: white;
	padding: 25px 20px;
	text-align: center;
	position: relative;
	overflow: hidden;
	border-radius: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
}

.rm-subject-header::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
	animation: rmShine 3s infinite linear;
}

@keyframes rmShine {
	0% {
		transform: translateX(-100%);
	}

	100% {
		transform: translateX(100%);
	}
}

.rm-subject-name {
	font-size: 24px;
	font-weight: 700;
	color: #ffffff;
	margin: 0;
	position: relative;
	z-index: 1;
	letter-spacing: -0.5px;
	line-height: 1.2;
}

.rm-subject-code {
	font-size: 14px;
	opacity: 0.9;
	margin-top: 5px;
	position: relative;
	z-index: 1;
	font-weight: 500;
	color: #ffffff;
	background: transparent;
	padding: 0;
	border-radius: 0;
	backdrop-filter: none;
}

/* Chapter Table Styling */
.rm-chapters-table {
	width: 100%;
	border-collapse: collapse;
	margin: 0;
	flex-grow: 1;
}

.rm-chapters-table thead {
	background-color: #F8FAFC;
}

.rm-chapters-table th {
	padding: 16px 15px;
	text-align: left;
	font-weight: 700;
	color: #0F172A;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	border-bottom: 2px solid #E2E8F0;
}

.rm-chapters-table th:nth-child(1) {
	width: 60px;
	text-align: center;
}

.rm-chapters-table th:nth-child(2) {
	padding-left: 0;
}

.rm-chapters-table tbody tr {
	border-bottom: 1px solid #F1F5F9;
	transition: background-color 0.2s ease;
	cursor: pointer;
}

.rm-chapters-table tbody tr:hover {
	background-color: #F8FAFC;
}

.rm-chapters-table tbody tr:last-child {
	border-bottom: none;
}

.rm-chapters-table td {
	padding: 14px 15px;
	color: #475569;
	font-size: 14px;
	line-height: 1.5;
}

.rm-chapters-table td:nth-child(1) {
	text-align: center;
	font-weight: 600;
	color: #1B8A5A;
	font-size: 15px;
	border-right: 1px solid #F1F5F9;
}

.rm-chapters-table td:nth-child(2) {
	padding-left: 0;
}

/* MCQ Footer */
.rm-mcq-footer {
	text-align: center;
	margin-top: 40px;
	padding-top: 20px;
	border-top: 1px solid #E2E8F0;
	color: #64748B;
	font-size: 14px;
}

/* Animation for table rows */
@keyframes rmFadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.rm-chapters-table tbody tr {
	animation: rmFadeIn 0.3s ease-out forwards;
	opacity: 0;
}

.rm-chapters-table tbody tr:nth-child(1) {
	animation-delay: 0.1s;
}

.rm-chapters-table tbody tr:nth-child(2) {
	animation-delay: 0.2s;
}

.rm-chapters-table tbody tr:nth-child(3) {
	animation-delay: 0.3s;
}

.rm-chapters-table tbody tr:nth-child(4) {
	animation-delay: 0.4s;
}

.rm-chapters-table tbody tr:nth-child(5) {
	animation-delay: 0.5s;
}

.rm-chapters-table tbody tr:nth-child(6) {
	animation-delay: 0.6s;
}

.rm-chapters-table tbody tr:nth-child(7) {
	animation-delay: 0.7s;
}

.rm-chapters-table tbody tr:nth-child(8) {
	animation-delay: 0.8s;
}

/* Subject-specific header colors */
.rm-subject-card:nth-child(1) .rm-subject-header {
	background: linear-gradient(135deg, #1B8A5A 0%, #147349 100%);
}

.rm-subject-card:nth-child(2) .rm-subject-header {
	background: linear-gradient(135deg, #0F6FC9 0%, #0B5AA8 100%);
}

.rm-subject-card:nth-child(3) .rm-subject-header {
	background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
}

.rm-subject-card:nth-child(4) .rm-subject-header {
	background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
}

.rm-subject-card:nth-child(5) .rm-subject-header {
	background: linear-gradient(135deg, #D97706 0%, #B45309 100%);
}

.rm-subject-card:nth-child(6) .rm-subject-header {
	background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.rm-subject-card:nth-child(7) .rm-subject-header {
	background: linear-gradient(135deg, #0891B2 0%, #0E7490 100%);
}

.rm-subject-card:nth-child(8) .rm-subject-header {
	background: linear-gradient(135deg, #BE185D 0%, #9D174D 100%);
}

/* Table serial number colors per subject */
.rm-subject-card:nth-child(1) .rm-chapters-table td:nth-child(1) {
	color: #1B8A5A;
}

.rm-subject-card:nth-child(2) .rm-chapters-table td:nth-child(1) {
	color: #0F6FC9;
}

.rm-subject-card:nth-child(3) .rm-chapters-table td:nth-child(1) {
	color: #8B5CF6;
}

.rm-subject-card:nth-child(4) .rm-chapters-table td:nth-child(1) {
	color: #DC2626;
}

.rm-subject-card:nth-child(5) .rm-chapters-table td:nth-child(1) {
	color: #D97706;
}

.rm-subject-card:nth-child(6) .rm-chapters-table td:nth-child(1) {
	color: #059669;
}

.rm-subject-card:nth-child(7) .rm-chapters-table td:nth-child(1) {
	color: #0891B2;
}

.rm-subject-card:nth-child(8) .rm-chapters-table td:nth-child(1) {
	color: #BE185D;
}

/* Subject card hover border colors */
.rm-subject-card:nth-child(1):hover {
	border-color: #1B8A5A;
}

.rm-subject-card:nth-child(2):hover {
	border-color: #0F6FC9;
}

.rm-subject-card:nth-child(3):hover {
	border-color: #8B5CF6;
}

.rm-subject-card:nth-child(4):hover {
	border-color: #DC2626;
}

.rm-subject-card:nth-child(5):hover {
	border-color: #D97706;
}

.rm-subject-card:nth-child(6):hover {
	border-color: #059669;
}

.rm-subject-card:nth-child(7):hover {
	border-color: #0891B2;
}

.rm-subject-card:nth-child(8):hover {
	border-color: #BE185D;
}

/* Level Selection Modal */
.rm-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(15, 23, 42, 0.6);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 10000;
	backdrop-filter: blur(4px);
	padding: 20px;
	box-sizing: border-box;
}

.rm-modal-content {
	background: white;
	width: 100%;
	max-width: 500px;
	border-radius: 16px;
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
	overflow: hidden;
	max-height: 90vh;
	display: flex;
	flex-direction: column;
	animation: rmModalFadeIn 0.3s ease;
}

@keyframes rmModalFadeIn {
	from {
		opacity: 0;
		transform: scale(0.95);
	}

	to {
		opacity: 1;
		transform: scale(1);
	}
}

.rm-modal-header {
	padding: 20px 24px;
	border-bottom: 1px solid #f3f4f6;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.rm-modal-header h3 {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	color: #111827;
}

.rm-modal-close {
	background: none;
	border: none;
	font-size: 24px;
	color: #9ca3af;
	cursor: pointer;
	padding: 0;
	line-height: 1;
}

.rm-modal-close:hover {
	color: #4b5563;
}

.rm-modal-body {
	padding: 24px;
}

.rm-level-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
}

.rm-modal-level-btn {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px 20px;
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	text-decoration: none;
	color: #111827;
	font-weight: 600;
	transition: all 0.2s;
	cursor: pointer;
	text-align: left;
	width: 100%;
}

.rm-modal-level-btn:hover {
	border-color: #10b981;
	background: linear-gradient(to right, #f0fdf4, #dcfce7);
	color: #065f46;
	transform: translateX(4px);
}

.rm-modal-level-btn .arrow {
	color: #10b981;
	font-size: 18px;
}

/* Responsive Design for Subject Cards */
@media (max-width: 1200px) {
	.rm-mcq-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 25px;
	}
}

@media (max-width: 640px) {
	.rm-quiz-app {
		padding: 5px;
	}

	.rm-mcq-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.rm-mcq-title {
		font-size: 24px;
	}

	.rm-subject-header {
		padding: 20px 15px;
	}

	.rm-subject-name {
		font-size: 20px;
	}

	.rm-chapters-table th,
	.rm-chapters-table td {
		padding: 12px 10px;
		font-size: 13px;
	}
}