@import
url('https://fonts.googleapis.com/css2?family=Public+Sans:wght@300;400;600;700&display=swap');
* {

	font-family: 'Public Sans', sans-serif;
}

body {
	font-family: Arial,
		sans-serif;
	margin: 0px;
	padding: 0;
    background-color: #f8f7fa;
}

.container {
	width: 300px;
	margin: 0
		auto;
	padding: 20px;
	border: 1px
		solid
		#ccc;
	border-radius: 5px;
}

.container
	h2 {
	text-align: center;
}

.container
	input[type='text'],
.container
	input[type='password'],
.container
	input[type='submit'] {
	width: 100%;
	padding: 10px;
	margin-bottom: 10px;
	box-sizing: border-box;
}

.container
	input[type='submit'] {
	background-color: #4caf50;
	color: white;
	border: none;
	cursor: pointer;
}

.container
	input[type='submit']:hover {
	background-color: #45a049;
}

.top {
	display: flex;
	align-items: center;
/*	background: linear-gradient(to right, #0073e6, #659EC7);*/
        background: #368BC1;
	padding: 0.5rem 1.5rem;
	position: fixed;
	width: 100%;
	z-index: 10000;
	box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
}

/* Desktop: Reorder header items - language selector after bell */
@media (min-width: 769px) {
	.top .logo { order: 1; }
	.top #demo-badge-container { order: 2; } /* Small pill next to logo */
	.top .notification-bell-container { order: 3; margin-left: auto; }
	.top .language-selector { order: 4; margin-right:16px; }
	.top .feedback-top-btn { order: 5; }
	.top .hamburger { order: 6; }
}
.top-right {
	margin-left: auto;
	margin-right: 50px;
}
.top-right a {
	background-color: #fff;
	color: #368BC1;
	padding: 0.5rem 1rem;
	border-radius: 3px;
	position: relative;
    font-weight: 400;
    font-size: 0.86rem;
    transition: all 0.4s;
}
.top-right
	a:link {
	text-decoration: none;
}
.top-right
	a:hover {
	background-color: #659EC7;
    color: white;
}

.left::-webkit-scrollbar {
    width: 8px;
}

.left::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 4px;
}

.left::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 4px;
}

.left::-webkit-scrollbar-thumb:hover {
    background: #368BC1;
}

.left a,
.left .has-submenu {
	display: flex;
	justify-content: flex-start;
	align-items: center;
	text-decoration: none;
	color: #2d3748;
	padding: 12px 16px;
	margin: 4px 12px;
	border-radius: 6px;
	transition: all 0.3s ease;
	font-size: 0.9rem;
	font-weight: 500;
	position: relative;
	border-left: 3px solid transparent;
}

.left a .menu-icon,
.left .has-submenu .menu-icon {
	margin-right: 12px;
	flex-shrink: 0;
	color: #4a5568;
	transition: color 0.3s ease;
}

.left .has-submenu {
	cursor: pointer;
	user-select: none;
}

.left a:hover,
.left .has-submenu:hover {
	background-color: rgba(54, 139, 193, 0.1);
	color: #368BC1;
	border-left-color: #368BC1;
}

.left a:hover .menu-icon,
.left .has-submenu:hover .menu-icon {
	color: #368BC1;
}

/* Active menu item */
.left a.active,
.left .has-submenu.active {
	background-color: rgba(54, 139, 193, 0.15);
	color: #368BC1;
	border-left-color: #368BC1;
	font-weight: 600;
}

.left a.active .menu-icon {
	color: #368BC1;
}

/* Menu count badge */
.menu-count {
	margin-left: auto;
	background: #368BC1;
	color: white;
	font-size: 0.75rem;
	font-weight: 600;
	padding: 2px 8px;
	border-radius: 12px;
	min-width: 20px;
	text-align: center;
	box-shadow: 0 2px 6px rgba(54, 139, 193, 0.4);
}

.left a:hover .menu-count {
	background: #2a6d96;
}

.left a.active .menu-count {
	background: #2a6d96;
}

/* Chevron indicator for submenu */
.left .has-submenu:after {
	content: '';
	position: absolute;
	right: 16px;
	width: 0;
	height: 0;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 5px solid #4a5568;
	transition: transform 0.3s ease;
}

.left .has-submenu.open:after {
	transform: rotate(180deg);
}

.left .has-submenu:hover:after {
	border-top-color: #368BC1;
}

.content {
	padding: 5rem 1rem 0rem 20rem;
	background: linear-gradient(135deg, #f8f7fa 0%, #e8f4f8 100%);
	min-height: 100vh;
	box-sizing: border-box;
}

.submenu {
	display: block;
	background: #f7fafc;
	border-radius: 6px;
	margin: 0 12px 8px 12px;
	padding: 4px 0;
	transition: all 0.3s ease;
}

.submenu a {
	padding: 10px 16px 10px 44px;
	margin: 2px 8px;
	font-size: 0.85rem;
	font-weight: 400;
	border-left-width: 2px;
}

.submenu a:hover {
	background-color: rgba(54, 139, 193, 0.08);
}

.submenu a.active {
	background-color: rgba(54, 139, 193, 0.12);
	font-weight: 500;
}



.card-wrapper {
    max-width: 700px;
    margin: 0 auto;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 2px 0 14px rgba(0, 0, 0, 0.03);
    padding: 1rem 0 0;
}

.card-wrapper-search {
    max-width: 700px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 2px;
    box-shadow: 2px 0 14px rgba(0, 0, 0, 0.03);
    padding: 0.5rem 0 0px 0px;
    border: 1px solid #368BC1;
    height: 50px;
    display: flex;
    justify-content: left;
    flex-wrap: wrap;
    align-content: center;
}






.card-wrapper-test {
    max-width: 700px;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 2px 0 14px rgba(0, 0, 0, 0.03);
    padding: 1rem 0 0;
    color: #fff;
}

.card-wrapper2 {
    max-width: 700px;
    min-width: 210px;
    margin: 0 auto;
    background-color: #ffffff;
    border-radius: 2px;
    box-shadow: 2px 0 14px rgba(0, 0, 0, 0.03);
    padding: 0rem 0 0;
}

.card-wrapper10 {
    max-width: 300px;
    min-width: 210px;
    margin: 0 auto;
    background-color: #ffffff;
    border-radius: 2px;
    box-shadow: 2px 0 14px rgba(0, 0, 0, 0.03);
    padding: 0rem 0 0;
}


.category {
    max-width: 700px;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 2px 0 14px rgba(0, 0, 0, 0.03);
    padding: 1rem 1rem 1rem 1rem;
    color: #7367f0;
    text-align: center;
    font-size: 30px;
}

.submit-test {
    max-width: 700px;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 2px 0 14px rgba(0, 0, 0, 0.03);
    padding: 1rem 1rem 1rem 1rem;
    color: #7367f0;
    text-align: center;
    font-size: 30px;
    border-bottom-color: #7367f0;
    border: 2px;
}

.submit-test-failed {
    max-width: 700px;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 2px 0 14px rgba(0, 0, 0, 0.03);
    padding: 1rem 1rem 1rem 1rem;
    color: #B21807;
    text-align: center;
    font-size: 30px;
/*    background-color: #B83C08; */
}

.submit-test-passed {
    max-width: 700px;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 2px 0 14px rgba(0, 0, 0, 0.03);
    padding: 1rem 1rem 1rem 1rem;
    color: #2E8B57;
    text-align: center;
    font-size: 30px;
/*    background-color: #B83C08; */
}



.card-wrapper-select-quiz {
    max-width: 700px;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 2px 0 14px rgba(0, 0, 0, 0.03);
    padding: 1rem 0rem 0 0;
}

.card-wrapper-error {
   max-width: 300px;
   margin: 0 auto;
   border-radius: 2px;
   box-shadow: 2px 0 14px rgba(0, 0, 0, 0.03);
   padding: 1rem 0rem 0 0;
}


.card-header {
    border-bottom: 1px solid #ddd;
    padding: 1rem 1.5rem 1rem 1.5rem;
    display: flex;
}

.card-header-10 {
    border-bottom: 1px solid #ddd;
    padding: 0rem 1.5rem 1.5rem 1.5rem;
    display: flex;
}


.card-header-info {
    border-top: 1px solid #ddd;
    padding: 1rem 1.5rem 1rem 1.5rem;
    display: flex;
    align-items: center;
}


.card-header-results {
    border-bottom: 1px solid #ddd;
    border-top: 1px solid #ddd;
    padding: 1rem 1.5rem 1.5rem 1.5rem;
    display: flex;
    align-items: center;
}



.card-wrapper-home {
    margin: 0 auto;
    background: transparent;
    display: block;
    padding: 0rem 1rem 1rem 1rem;
    overflow-x: hidden;
}

.home-container {
	display: flex;
	justify-content: center;
	padding: 0;
	margin-bottom: 20px;
	width: 100%;
}

.home-container .dash-card {
	width: 100%;
	max-width: 100%;
}

/* Grid for subject progress and quiz cards side by side */
.progress-quiz-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	width: 100%;
}

.progress-quiz-grid .dash-card {
	width: 100%;
}
.card-header-home {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(54, 139, 193, 0.08);
    padding: 1rem 1.5rem;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
}
.card-header-home-search {
    padding: 0rem 0rem 1rem 0rem;
    display: flex;
    align-items: center;
    border-left: 1px solid #7367f0;
    border-top: 1px solid #7367f0;
    border-right: 1px solid #7367f0;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.card-header-home-last4 {
    padding: 0rem 0rem 8px 0rem;
    display: flex;
    align-items: center;
    width: 100%;
}


.card-header-home-last3 {
    padding: 10px 0rem 1rem 10px;
    display: flex;
    align-content: center;
    font-size: 1rem;
    font-weight: normal;
    color: #656565;

}

.card-header-home-last {
        padding: 0px 15px 0px 10px;
        font-size: 1rem;
        font-weight: normal;
        color: #656565;
/*        width: 35%;*/
}

.card-header-home-last2 {
        padding: 0px 0px 0 10px;
        font-size: 1.2rem;
        font-weight: 600;
        color: #656565;
        width: 40%;
}


.card-header-home-label {
	padding: 0;
	font-size: 28px;
        font-weight: 700;
        color: #2c3e50;
        width: 100%;
        letter-spacing: -0.5px;
}
.quiz-result-label-success {
	padding: 15px 0px 0 10px;
        font-size: 30px;
        font-weight: 600;
        color: #1AA260;
        width: 90%;

}

.quiz-result-label-failed {
        padding: 15px 0px 0 10px;
        font-size: 30px;
        font-weight: 600;
        color: #E41B17;
        width: 90%;

}


.go-card {
    display: grid;
    grid-template-columns: auto auto auto;
    gap: 10px;   
    padding:  0; 
}

.stats-card {
    display: grid;
    grid-template-columns: auto auto auto;
    gap: 10px;
    padding: 0 0px 0 10px;
}

.search-card {
    display: grid;
    grid-template-columns: auto auto auto;
    gap: 0px;
    padding: 10px 0 -10px 0;
}


.quiz-list-stats {
    display: grid;
    grid-template-columns: auto auto auto auto;
    gap: 5px;
}

.quiz-list {
    display: grid;
    grid-template-columns: auto auto auto ;
    gap: 0px;
}


.quiz-list-2cols {
	display: grid;
	grid-template-columns: auto auto ;
	gap: 5px;
}

.quiz-list-item-header-left {
	font-size: 0.6rem;
	font-weight: 600;
	color: #656565;
	text-align: center;
	padding: 5px;
	border-bottom: 1px solid #ddd;
	width: 200px;
}

.quiz-list-item-header-center {
        font-size: 0.6rem;
        font-weight: 600;
        color: #656565;
        text-align: center;
        padding: 5px;
        border-bottom: 1px solid #ddd;
        width: 100px;
}
.quiz-list-item-header2-right {
        font-size: 0.6rem;
        font-weight: 600;
        color: #656565;
        text-align: center;
        padding: 5px;
        border-bottom: 1px solid #ddd;
        width: 60px;
}



.quiz-list-item-header2 {
        font-size: 0.6rem;
        font-weight: 600;
        color: #656565;
        text-align: center;
        padding: 5px;
        border-bottom: 1px solid #ddd;
        width: 50px;

}

.quiz-list-item {
        font-size: 0.6rem;
        font-weight: 500;
        color: #656565;
        text-align: left;
        padding: 5px;
        border-bottom: 1px solid #ddd;
/*#        width: 90px;*/
        vertical-align:middle;
        padding: 15px 0;
}

.quiz-list-item-hist-left {
        font-size: 0.6rem;
        font-weight: 500;
        color: #656565;
        text-align: left;
        padding: 5px;
        border-bottom: 1px solid #ddd;
        width: 210px;
        vertical-align:middle;
        padding: 15px 0;
}

.quiz-list-item-hist-center {
        font-size: 0.6rem;
        font-weight: 500;
        color: #656565;
        text-align: center;
        padding: 5px;
        border-bottom: 1px solid #ddd;
        width: 100px;
        vertical-align:middle;
        padding: 15px 0;
}

.quiz-list-item-center-fail-right {
        font-size: 0.6rem;
        font-weight: 500;
        color: #E41B17;
        text-align: center;
        padding: 5px;
        border-bottom: 1px solid #ddd;
        width: 60px;
        vertical-align:middle;
        padding: 15px 0;
}

.quiz-list-item-center-pass-right {
        font-size: 0.6rem;
        font-weight: 500;
        color: #12E193;
        text-align: center;
        padding: 5px;
        border-bottom: 1px solid #ddd;
        width: 60px;
        vertical-align:middle;
        padding: 15px 0;
}




.quiz-list-item-bank-left {
        font-size: 1rem;
        font-weight: 600;
        color: #656565;
        text-align: left;
        padding: 5px;
        border-bottom: 1px solid #ddd;
        width: 200px;
        vertical-align:middle;
        padding: 15px 0;
}

.quiz-list-item-bank-right {
        font-size: 1rem;
        font-weight: 600;
        color: #656565;
        text-align: right;
        padding: 5px;
        border-bottom: 1px solid #ddd;
        width: 200px;
        vertical-align:middle;
        padding: 15px 0;
}

.quiz-list-item-bank-center {
        font-size: 1rem;
        font-weight: 600;
        color: #656565;
        text-align: center;
        padding: 5px;
        border-bottom: 1px solid #ddd;
        width: 155px;
        vertical-align:middle;
        padding: 15px 0;
}

.quiz-list-2cols-small {
        display: grid;
        grid-template-columns: auto auto ;
        gap: 3px;
}


.quiz-list-item-bank-left-small {
        font-size: 0.6rem;
        font-weight: 500;
        color: #656565;
        text-align: left;
        padding: 0;
        border-bottom: 1px solid #ddd;
        width: 200px;
        vertical-align:middle;
        padding: 15px 0;
        vertical-align: middle;
}

.quiz-list-item-bank-right-small {
	display: flex;
        font-size: 0.5rem;
        font-weight: 500;
        color: #656565;
        padding: 0px;
        border-bottom: 1px solid #ddd;
        width: 200px;
        vertical-align:middle;
        padding: 15px 0;
        align-items: center;
        justify-content: center;
}

.quiz-list-item-bank-center-small {
        font-size: 0.7rem;
        font-weight: 600;
        color: #656565;
        text-align: center;
        padding: 0px;
        border-bottom: 1px solid #ddd;
        width: 200px;
        vertical-align:middle;
        padding: 15px 0;
}



.quiz-list-item-center {
	font-size: 0.6rem;
        font-weight: 500;
        color: #656565;
        text-align: center;
        padding: 5px;
        border-bottom: 1px solid #ddd;
        width: 50px;
        vertical-align:middle;
        padding: 15px 0;
}

.quiz-list-item-header-perf {
	font-size: 0.6rem;
        font-weight: 600;
        color: #656565;
        text-align: center;
        padding: 5px;
        border-bottom: 1px solid #ddd;
        width: 200px;
}

.quiz-list-item-header-perf-center {
        font-size: 0.6rem;
        font-weight: 600;
        color: #656565;
        text-align: center;
        padding: 5px 0 5px 0;
        border-bottom: 1px solid #ddd;
        width: 50px;
}
.quiz-list-item-header-perf-right {
        font-size: 0.6rem;
        font-weight: 600;
        color: #656565;
        text-align: center;
        padding: 5px 0 5px 0;
        border-bottom: 1px solid #ddd;
        width: 50px;
}

.quiz-list-item-header-perf-total {
        font-size: 0.6rem;
        font-weight: 600;
        color: #656565;
        text-align: center;
        padding: 5px 0 5px 0;
        border-bottom: 1px solid #ddd;
        width: 50px;
}




.quiz-list-item-perf-center {
	display: flex;
        font-size: 0.6rem;
        font-weight: 600;
        color: #656565;
        text-align: center;
        padding: 5px 0 5px 0;
        border-bottom: 1px solid #ddd;
        width: 50px;
        align-items: center;
        justify-content: center;
        vertical-align: middle;
}

.quiz-list-item-perf-center-green {
        display: flex;
        font-size: 0.6rem;
        font-weight: 600;
        color: #12E193;
        text-align: center;
        padding: 5px 0 5px 0;
        border-bottom: 1px solid #ddd;
        width: 50px;
        align-items: center;
        justify-content: center;
        vertical-align: middle;
}

.quiz-list-item-perf-center-red {
        display: flex;
        font-size: 0.6rem;
        font-weight: 600;
        color: #E41B17;
        text-align: center;
        padding: 5px 0 5px 0;
        border-bottom: 1px solid #ddd;
        width: 50px;
        align-items: center;
        justify-content: center;
        vertical-align: middle;
}


.quiz-list-item-perf-right {
        font-size: 0.6rem;
        font-weight: 600;
        color: #656565;
        text-align: center;
        padding: 5px 0 5px 0;
        border-bottom: 1px solid #ddd;
        width: 50px;
}

.quiz-list-item-perf-total {
        font-size: 0.6rem;
        font-weight: 500;
        color: #656565;
        text-align: left;
        padding: 15px 0 15px 0;
        border-bottom: 1px solid #ddd;
        width: 200px;
}


.quiz-list-item-perf {
        font-size: 0.6rem;
        font-weight: 600;
        color: #656565;
        text-align: left;
        padding: 5px 0 5px 0;
        border-bottom: 1px solid #ddd;
        width: 200px;
}



.quiz-list-item-center-pass {
        font-size: 0.6rem;
        font-weight: 600;
        color: #12E193;
        text-align: center;
        padding: 5px;
        border-bottom: 1px solid #ddd;
        width: 50px;
        vertical-align:middle;
        padding: 15px 0;
}


.quiz-list-item-center-fail {
        font-size: 0.6rem;
        font-weight: 500;
        color: #E41B17;
        text-align: center;
        padding: 5px;
        border-bottom: 1px solid #ddd;
        width: 50px;
        vertical-align:middle;
        padding: 15px 0;
}



.home-card {
   background: #eee;
   padding: 10px 0px 10px 5px;
   border-top-left-radius: 5px;
   border-top-right-radius: 5px;
   text-align: center;
   background: #7367f0;
   font-size: 1rem;
   font-weight: 600;
   color: #fff;
   border-bottom: 1px solid #ddd;
   width: 442px;
}

.home-card-content {
	width: 440px;
	background: #f8f7fa;
	padding: 0px 0px 0px 5px;
	height: 500px;
	box-shadow: 2px 0 14px rgba(0, 0, 0, 0.03);
	border-bottom: 1px solid #ccc;
	border-left: 1px solid #ccc;
	border-right: 1px solid #ccc;
	border-bottom-left-radius: 5px;
	border-bottom-right-radius: 5px;
}

.message {
	font-size: 1rem;
	font-weight: 500;
	color: #656565;
	padding: 5px 5px 5px 5px;
	border-bottom: 1px solid #ccc;
	width: 95%;
	text-align: center;
}


.questions {
	padding: 1rem 1rem 1rem 1rem;
	border-bottom-left-radius: 10px;
	border-bottom-right-radius: 10px;
	background-color: #dadbdd;
}

.card-header-test {
    border-bottom: 1px solid #ddd;
    padding: 1rem 0rem 1rem 1.5rem;
    display: flex;
    align-items: center;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    background-color: #7367f0;
    color: #fff;
}

.card-header-test2 {
    border-bottom: 1px solid #ddd;
    padding: 1rem 0rem 1rem 1.5rem;
    display: flex;
    align-items: center;
    border-top-left-radius: 2px;
    border-top-right-radius: 2px;
    background-color: #368BC1;
    color: #fff;
}



.card-header-error {
    border-bottom: 1px solid #ddd;
    padding: 1rem 0rem 1rem 1.5rem;
    display: flex;
    align-items: center;
    border-top-left-radius: 2px;
    border-top-right-radius: 2px;
    background-color: #E41B17;
    color: #fff;
}

.card-header-success {
    border-bottom: 1px solid #ddd;
    padding: 1rem 0rem 1rem 1.5rem;
    display: flex;
    align-items: center;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    background-color: #93E9BE;
    color: #656565;
}




.card-header-select-quiz {
    border-bottom: 5px solid #ddd;
    background: #7367f0;
    padding: 0.5rem 1.5rem 0.5rem 1.5rem;
    display: flex;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    justify-content: center;
    font-size: 30px;
    color: #fff;
}

.card-header-submit {
    background: #fff;
    padding: 0.5rem 1.5rem 0.5rem 1.5rem;
    display: flex;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    justify-content: center;
    font-size: 40px;
    color: #ddd;
}

.question-test {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    width: 90%;
}

.button {
	background-color: #eee;
	border: none;
	font-size: 16px;
	padding: 10px 20px;
	cursor: pointer;
	border-radius: 5px;
	color: #797979;
	}
	
.button:hover {
	background-color: #ddd;
	color: #7367f0;
}

.button-test {
        background-color: #368BC1;
        border: none;
        font-size: 16px;
        padding: 10px 20px;
        cursor: pointer;
        border-radius: 2px;
        color: #eee;
}

.button-test:hover {
        background-color: #ddd;
        color: #000;
}



.form-group {
    padding: 1rem 0rem 0rem 0rem;
    display: flex;
    justify-content: center;
    font-size: 20px;
    color: #797979;
}
.form-group2 {
    border-bottom: 1px solid #ddd;
    padding: 1rem 0rem 0rem 0rem;
    display: flex;
    justify-content: center;
    font-size: 20px;
    color: #656565;
    background: #fff;
}

.form-group9 {
    border-bottom: 1px solid #ddd;
    padding: 1rem 0rem 1rem 0rem;
    display: flex;
    justify-content: center;
    font-size: 20px;
    color: #656565;
    background: #fff;
}


.form-group4 {
    border-bottom: 1px solid #ddd;
    padding: 1rem 0rem 1rem 0rem;
    display: flex;
    justify-content: center;
    font-size: 20px;
    color: #656565;
    background: #fff;
}


.form-group3 {
    border-bottom: 1px solid #ddd;
    padding: 1rem 0rem 1rem 0rem;
    display: flex;
    justify-content: center;
    font-size: 20px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    background: #fff;
}


.radio-group2 {
    border-bottom: 5px solid #eee;
    background: #eee;
    padding: 0.5rem 0rem 1rem 0rem;
    display: flex;
    justify-content: center;
    font-size: 20px;
    color: #797979;
}

.radio-group3 {
    background: #fff;
    padding: 0rem 0rem 1rem 0rem;
    display: flex;
    justify-content: center;
    font-size: 20px;
    color: #797979;
}


.radio-group input[type="radio"]:checked + label::after {
	background-color: #666;
}


.select {
	border-radius: 2px;
	display: flex;
	height: 25px;
	padding: 0px;
	background-color: #fff;
	border: 1px solid #368BC1;
	color: #797979;
	font-size: 14px;
	
}

.select-no-questions {
        border-radius: 2px;
        display: flex;
        height: 25px;
        padding: 0px;
        background-color: #fff;
        border: 1px solid #368BC1;
        color: #797979;
        font-size: 14px;

}


.add-text {
        border: 1px solid #7367f0;
        border-radius: 4px;
        display: flex;
        size: 40px;
        height: 25px;
        padding: 0px;
        background-color: #fff;
        width: 400px;
}

.add-textarea {
	border-radius: 4px;
        display: flex;
        size: 40px;
        height: 150px;
        width: 500px;
        padding: 0 0 1rem 0px;
        position: relative;
        border-color: #7367f0;
}
.add-textarea2 {
        border-radius: 4px;
        display: flex;
        size: 40px;
        height: 150px;
        width: 600px;
        padding: 0 0 0 0px;
        background-color: #fff;
        position: absolute;
}



.select option {
	background: #f4f4f4;
	padding: 5px;
	font-size: 15px;
	cursor: pointer;
}

.select option:hover {
	background-color: #f4f4f4;
	cursor: pointer;
}



.login-form {
        display: flex;
        vertical-align: middle;
        margin-top: 5px;
        justify-content: right;
}

.login-form2 {
        display: flex;
        margin-top: 5px;
        margin-bottom: 5px;
/*#        width: 340px;*/
        justify-content: center;
}

.login-form label {
        margin-right: 50px;
        margin-left: 10px;
        cursor: hand;
        width: 150px;
        /*align: right;*/
}
.login-form input[type="submit"] {
	margin-left: 150px;
	margin-bottom: 50px;
	margin-top: 50px;
}

.questionid {
    background-color: #28c76f;
    color: white;
    font-weight: bold;
    font-size: 1rem;
    text-align: center;
    width: 50px;
    height: 50px;
    line-height: 50px;
    border-radius: 30px;
    margin-right: 0.5rem;
}

.questionid-small {
    background-color: #28c76f;
    color: white;
    font-weight: bold;
    font-size: 10px;
    text-align: center;
    width: 30px;
    height: 30px;
    line-height: 30px;
    border-radius: 50px;
    margin-right: 0.5rem;
}


.progress-empty {
   background-color: #fff;
   color: white;
   width:10px;
   height: 10px;
   border-radius: 1px;
   cursor: pointer;
}

.progress-completed {
   background-color: #D4A017;
   color: #D4A017;
   width:10px;
   height: 10px;
   border-radius: 1px;
   cursor: pointer;
}

.question {
    font-size: 1.2rem;
    font-weight: 600;
    color: #656565;
    width: 90%;
    padding: 0 0px 0px 20px;
}
.control {
	display: flex;
	position: relative;
	margin-bottom: 5px;
	cursor: pointer;
	font-size: 1.1rem;
	margin-bottom: 1rem;
	color: #656565;
}

.control-success {
	display: flex;
        position: relative;
        margin-bottom: 5px;
        cursor: pointer;
        font-size: 1.1rem;
        font-weight: 600;
        margin-bottom: 1rem;
        color: #1aa260;
}

.control-fail {
        display: flex;
        position: relative;
        margin-bottom: 5px;
        cursor: pointer;
        font-size: 1.1rem;
        font-weight: 600;
        margin-bottom: 1rem;
        color: #c11b17;
}


.control-group {
	padding: 1rem 1.5rem 1rem 1.5rem;
}
.control
	input {
	position: relative;
	z-index: -1;
	opacity: 0;
}
.control_indicator {
	position: absolute;
	top: 3px;
	left: 0;
	height: 16px;
	width: 16px;
	background: #ffffff;
	border: 1px solid #656565;
	vertical-align: middle;
}
.control_indicator-correct {
        position: absolute;
        top: 3px;
        left: 0;
        height: 16px;
        width: 16px;
        background: #2E8B57;
        border: 1px solid #2E8B57;
        vertical-align: middle;
}
.control_indicator-incorrect {
        position: absolute;
        top: 3px;
        left: 0;
        height: 16px;
        width: 16px;
        background: #B21807;
        border: 1px solid #B21807;
        vertical-align: middle;
}



.control:hover
	input
	~ .control_indicator,
.control
	input:focus
	~ .control_indicator {
	background: #368BC1;
    border-color: #368BC1;
}
.control
	input:checked
	~ .control_indicator {
	background: #368BC1;
    border-color: #368BC1;
}
.control:hover
	input:not(
		[disabled]
	):checked
	~ .control_indicator,
.control
	input:checked:focus
	~ .control_indicator {
	background: #368BC1;
}
.control
	input:disabled
	~ .control_indicator {
	background: #e6e6e6;
	opacity: 0.6;
	pointer-events: none;
}
.control_indicator:after {
	box-sizing: unset;
	content: '';
	position: relative;
	display: none;
}
.control
	input:checked
	~ .control_indicator:after {
	display: block;
}
.control-radio {
	padding-left: 40px;
}
.control-radio
	.control_indicator {
	border-radius: 50%;
}
.control-radio
	.control_indicator:after {
	left: 5px;
	top: 5px;
	height: 6px;
	width: 6px;
	border-radius: 50%;
	background: #ffffff;
	transition: background 250ms;
}
.control-radio
	input:disabled
	~ .control_indicator:after {
	background: #7b7b7b;
}
.control-radio
	.control_indicator::before {
	content: '';
	display: block;
	position: absolute;
	left: 0;
	top: 0;
	width: 4.5rem;
	height: 4.5rem;
	margin-left: -1.3rem;
	margin-top: -1.3rem;
	background: #2aa1c0;
	border-radius: 3rem;
	opacity: 0.6;
	z-index: 99999;
	transform: scale(
		0
	);
}
@keyframes s-ripple {
	0% {
		opacity: 0;
		transform: scale(
			0
		);
	}
	20% {
		transform: scale(
			1
		);
	}
	100% {
		opacity: 0.01;
		transform: scale(
			1
		);
	}
}
@keyframes s-ripple-dup {
	0% {
		transform: scale(
			0
		);
	}
	30% {
		transform: scale(
			1
		);
	}
	60% {
		transform: scale(
			1
		);
	}
	100% {
		opacity: 0;
		transform: scale(
			1
		);
	}
}
.control-radio
	input
	+ .control_indicator::before {
	animation: s-ripple
		250ms
		ease-out;
}
.control-radio
	input:checked
	+ .control_indicator::before {
	animation-name: s-ripple-dup;
}

.answer-button {
    padding: 1rem 0 0 0rem;
    display: flex;
    justify-content: center;
}

.continue-button {
    padding: 0.30rem 2rem;
    justify-content: center;
    background: #368BC1;
    color: #fff;
    border: 0px;
    font-size: 14px;
    transition: all 0.4s;
    font-weight: 600;
    border-radius: 2px;
}

.continue-button:hover {
        background: #ddd;
        cursor: hand;
        color: #659EC7;
}

.annex-button {
    padding: 0.50rem 2rem;
    justify-content: center;
    background: #368BC1;
    color: #fff;
    border: 0px;
    font-size: 18px;
    transition: all 0.4s;
    font-weight: 600;
    border-radius: 3px;
}

.annex-button:hover {
        background: #584ec7;
        cursor: hand;
}


.answer-button
	input[type='submit'] {
	background: #368BC1;
	border-radius: 3px;
	font-size: 18px;
	color: #ffffff;
	font-weight: 600;
	border: 0px;
	padding: 0.75rem 5rem;
	transition: all 0.4s;
}

.answer-button button {
	background: #368BC1;
	border-radius: 3px;
	font-size: 18px;
	color: #ffffff;
	font-weight: 600;
	border: 0px;
	padding: 0.75rem 5rem;
	transition: all 0.4s;
}

.answer-button button:hover {
        background: #584ec7;
        cursor: hand;
}

.go-button
        {
        background: #368BC1;
        border-radius: 2px;
        font-size: 13px;
        color: #ffffff;
        font-weight: 600;
        border: 0px;
        padding: 0.2rem 1rem;
        transition: all 0.4s;
}


.image {
	max-width: 700px;
	display: flex;
	justify-content: center;
	border-top: 1px solid;
	border-bottom: 1px solid;
	border-color: #ddd;
	padding: 1rem 0rem 1rem 0rem;
	/*aling-items: center;*/
	overflow: hidden;
}


.image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.image-img {
	padding: 5px 0 5px 0px;
}

.image-practice {
    max-width: 700px;
    display: flex;
    justify-content: center;
    border-top: 1px solid;
    border-color: #ddd;
    padding: 1rem 0rem 1rem 0rem;
    /*aling-items: center;*/
    overflow: hidden;
}

.image-practice img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}


.answer-button
	input[type='submit']:hover {
	background: #659EC7;
	cursor: hand;
}

.go-button:hover {
        background: #ddd;
        color: #659EC7;
        cursor: hand;
}

.nav {
    display: flex;
    align-items: center;
    padding: 1rem;
    margin-top: 1rem;
    border-top: 1px solid #ddd;
    justify-content: space-between;
    align-items: center;
}

.nav a {
    color: #368BC1;
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: bold;
}

.nav label {
    color: #368BC1;
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: bold;
    cursor: pointer;
}


.nav a span {
    position: relative;
    top: 0px;
}



.nav button {
    border: none;
    background: none;
    cursor: pointer;
}

.finish {
	padding-left: 700px;
}

.file-input {
	display: none;
}

.custom-file-label {
	display: flex;    
	padding: 10px 20px;    
	color: #fff;    
	background-color: #7367f0;    
	border-radius: 5px;    
	cursor: pointer;    
	font-family: Arial, sans-serif;    
	font-size: 16px;    
	transition: background-color 0.3s ease;  
	width: 100px;
	 
}

.custom-file-label2 {
        display: flex;
        padding: 10px 10px 10px 30px;
        color: #fff;
        background-color: #7367f0;
        border-radius: 5px;
        cursor: pointer;
        font-family: Arial, sans-serif;
        font-size: 16px;
        transition: background-color 0.3s ease;
        width: 100px;

}


.custom-file-label:hover {    
	background-color: #ddd;
	color: #000;  
}

.custom-file-label2:hover {
        background-color: #ddd;
        color: #000;
}


.file-name {    
	margin-left: 10px;    
	font-size: 16px;    
	color: #656565;  
	padding: 8px 0px 0px 0;
}
.go-input {    
	width: 60px;    
	height: 20px;
	padding: 0 0px 0px 4px;    
	font-size: 12px;    
	color: #656565;    
	border: 1px solid #ccc;    
	border-radius: 2px;
	border: 1px solid #368BC1;
}

.practice-stats-info-left {
    padding: 1rem 0rem 1rem 0rem;
    display: flex;
    align-items: center;
    max-width: 100%;
/*    color: #656565;*/
    font-size: 12px;
/*    background-color: rgba(255, 255, 255, 0.5);*/
    z-index: 2;

}


.practice-stats-info-right {
    padding: 1rem 0rem 1rem 0rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    max-width: 100%;
    font-size: 12px;
/*    background-color: rgba(255, 255, 255, 0.5);*/
    z-index: 2;
}

.practice-stats {
    display: flex;
    align-items: center;
    padding: 0rem 1.5rem 0rem 1.5rem;
    border-top: 1px solid #ddd;
    justify-content: space-between;
    align-items: center;
    border-bottom-left-radius: 2px;
    border-bottom-right-radius: 2px;
    font-size: 10px;
}

/*.background {
    position: absolute;
    top: 0;
    left: 0;
    background-color: lightblue;
    z-index: 1;
    transition: width 2s ease;
    height: 45px;
    width: 0%;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    z-index: 1;
}*/

.login2 {
    display: grid;
    grid-template-columns: auto auto auto;
    gap: 10px;
    padding:  0;
}
.login-row {
    padding: 0px 0px 0px 0px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-content: center;
/*    width: 100%;*/
}
.form-group5 {
    padding: 1rem 0rem 1rem 0rem;
    display: flex;
    justify-content: center;
    font-size: 20px;
    border-top: 1px solid #ddd;
    border-bottom-left-radius: 2px;
    border-bottom-right-radius: 2px;
    background: #fff;
    color: #656565;
}

.form-group10 {
    padding: 1rem 0rem 1rem 0rem;
    display: flex;
    justify-content: center;
    font-size: 20px;
/*    border-top: 1px solid #ddd;*/
    border-bottom-left-radius: 2px;
    border-bottom-right-radius: 2px;
    background: #fff;
    color: #656565;
}

.add-text2 {
        border: 1px solid #368BC1;
        border-radius: 2px;
        display: flex;
        size: 40px;
        height: 25px;
        padding: 0px 10px 0 10px;
        background-color: #fff;
        width: 200px;
}
.login-label {
    color: #7367f0;
    padding: 6px 10px 0 0px;
    width: 300px;
    display: flex;
    justify-content: flex-end;
}
.login-wrapper {
    padding: 0px 0 0 0;
    max-width: 700px;
}
.login-wrapper-bottom {
    padding: 0px 0 20px 0;
}
.checkbox {
    border: 1px solid #7367f0;
}
.left-side {
    display: flex;
    justify-content: flex-start;
    width: 330px;
}

.right-side {
    display: flex;
    justify-content: flex-end;
    width: 100px;
    padding: 0 20px 0 0;
}


.card-wrapper-users {
    display: grid;
    grid-template-columns: 1fr;
    /*
    width: 102.4%;
    margin: 0 auto;
    border-radius: 2px;
    box-shadow: 2px 0 14px rgba(0, 0, 0, 0.03);
    padding: 0rem 0rem 0 0;*/
}

.card-header-users {
/*    border-bottom: 1px solid #ddd;
    padding: 10px 10px 10px 10px;
    width: 100%;
    display: flex;
    align-items: center;
    border-top-left-radius: 2px;
    border-top-right-radius: 2px;
    background-color: #368BC1;
    color: #fff; */
    grid-column: 1 / -1;
    background-color: #368BC1;
    color: white; 
    font-weight: bold;
    text-align: center;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 2px;
    width: 98%;
}



.user-list-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr); /* 10 columns */
    grid-auto-rows: auto; /* Automatically adjust row height */
    gap: 5px; /* Space between grid items */
    width: 100%;
/*    max-width: 1200px;*/
    margin: auto;
    background-color: #fff;
    padding: 10px;
}

.user-list-table-head {
    background-color: #368BC1;
    color: white;
    padding: 5px 5px 5px 5px ;
    justify-content: center;
    display: flex;
    align-content: bottom;
    border-bottom: 2px solid #368BC1;
    border-radius: 5px;
    text-align: center;
}

.user-list-row {
    display: contents; /* Ensures child divs align properly in grid */
}

.user-list-cell {
    background-color: white;
    padding: 5px;
    text-align: center;
    border-bottom: 1px solid #ddd;
    color: #656565;
    display: flex;
    justify-content: center;
    align-content: center;
}

.user-list-row-left {
    display: flex;
    justify-content: flex-start;
    border-bottom: 1px solid #ddd;
    padding: 5px 5px;
    word-wrap: break-word;
    flex-wrap: wrap;
}



.user-list-row button {
    margin-top: 0px;
/*    padding: 0 0 0px 0px;*/
    cursor: pointer;
    background-color: #368BC1;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.8rem;
    width: 80px;
}
.user-list-row button:hover {
    background-color: #0056b3;
}


.user-list-table-row {
    display: flex;
    justify-content: center;
    width: 225px;
    border-bottom: 1px solid #e5e4e2;
    padding: 5px 0px 5px 00px;
}

.user-list-table-row-left {
    display: flex;
    justify-content: left;
    width: 225px;
    border-bottom: 1px solid #e5e4e2;
    padding: 5px 0px 5px 5px;
}


 .user-toggle-switch {      
    display: flex;      
    position: relative;            
    width: 35px;            
    height: 20px;            
    background-color: #ccc;            
    border-radius: 15px;            
    cursor: pointer;            
    transition: background-color 0.3s;        
    border-bottom: 1px solid #ddd;
}
        
/* The circle inside the switch */        
.user-toggle-switch::before {            
    content: '';            
    position: absolute;            
    width: 18px;            
    height: 18px;            
    background-color: white;            
    border-radius: 50%;            
    top: 1px;            
    left: 1px;            
    transition: transform 0.3s;        
}
/* When the switch is on */        
.user-toggle-switch.on {            
    background-color: #4caf50;        
}        
.user-toggle-switch.on::before {            
    transform: translateX(15px);        
}
.user-list-row .del-btn {
    background-color: #ff4d4d;
    color: white;
    border: none;
/*    padding: 5px 10px;*/
    cursor: pointer;
    border-radius: 3px;
    font-size: 0.8rem;
    width: 80px;
}
.user-list-row .del-btn:hover {
    background-color: #e60000; /* Darker red on hover */
}

.save {
    display: flex;
    width: 220px;
    justify-content: flex-end;
    padding: 0px 0px 0px 5px;
}


.saved-table {
    display: grid;
    grid-template-columns: 0.5fr 3fr 7.5fr 0.5fr;
    gap: 10px;
    margin: 20px;
}

.saved-table-header, .saved-table-row {
    display: contents;
}

.saved-table-header div {
    font-weight: bold;
    text-align: center;
    border-bottom: 1px solid #ccc;
    padding: 0px 0px 15px 0px;
    color: #656565;
    
}

.saved-table-row {
    padding: 0px;
    border-bottom: 1px solid #ccc;
}

.saved-table-row div {
    padding: 0px 5px 10px 10px ;
    border-bottom: 1px solid #ccc;
    color: #656565;
    display: flex;
    align-content: center;
    flex-wrap: wrap;
}
    

.saved-table-row a {
    text-decoration: none;
    color: #656565;
}

.saved-table-row a:hover {
    text-decoration: none;
    color: #368BC1;
}



.saved-table-hidden {
    display: none;
}

.saved-table-remove-btn {
    padding: 5px 5px 5px 5px;
    background-color: #e74c3c;
    color: white;
    font-size: 10px;
    border: none;
    cursor: pointer;
    border-radius: 3px;
}
.saved-table-remove-btn:hover {
    background-color: #c0392b;
}
.saved-table-sort-icon {
    cursor: pointer;
    margin-left: 5px;
}

.saved-table-header select {
    margin-left: 10px;
}
.exp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 50px;
}
.exp-row {
    padding: 0px;
}

.progress-bar-container {
    width: 100%;
    background-color: #f3f3f3;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
    margin-top: 20px;
}

.progress-bar {
    height: 20px;
    line-height: 20px;
    text-align: center;
    font-size: 0.9em;
    transition: width 0.3s ease;
    white-space: nowrap; /* Prevent text from breaking */
}

.progress-bar[style*="background-color: green"] {
    background-color: #4caf50;
}

.progress-bar[style*="background-color: red"] {
    background-color: #f44336;
}

.progress-bar[style*="background-color: orange"] {
    background-color: #ff9800;
}

.progress-bar[style*="background-color: lightorange"] {
    background-color: #ffcc80;
}

.progress-bar[style*="background-color: yellow"] {
    background-color: #ffeb3b;
}

.progress-bar[style*="background-color: transparent"] {
    background-color: #f3f3f3; /* Matches container background */
    color: black !important; /* Ensure black text for no data */
}
.last-question-container {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.last-question-container span {
    font-size: 1rem;
    font-weight: 600;
    margin-right: 10px;
    color: #7367f0;
}

.last-question-container button {
    padding: 0.5rem 1rem;
    background-color: #4caf50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.3s;
}

.last-question-container button:hover {
    background-color: #45a049;
}


.toggle-wrapper {
    display: inline-block;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 45px;
    height: 18px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 14px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 1px;
    bottom: 1px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #28c76f;
}

input:checked + .slider:before {
    transform: translateX(27px);
}

.explanation {
/*    position: absolut;
    display: flex;
    justify-content: left;
    right: 0;
    top: 0;
    width: 30%;*/
    background-color: #f9f9f9;
/*    padding: 10px;
    border-left: 2px solid #28c76f;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);*/
}

.explanation-grid {  
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0px;
    margin: 0px;
}
.explanation-row {
    padding: 0px;
/*    border-bottom: 1px solid #ccc;*/
}
.explanation:empty{
    display: none;
}

.explanation-grid:not(:has(.explanation:not(:empty))) {
    grid-template-columns: 1fr;
}

#question-navigation {
    padding: 0px 0px 0px 0px;
    display: flex;
    justify-content: center;
    border-bottom: 1px solid #ddd;
    width: 100%;
    flex-wrap: wrap;
    
}

#question-navigation button {        
    margin: 5px;        
    padding: 2px;        
    border: 1px solid #ddd;        
    border-radius: 5px;        
    cursor: pointer;    
    width: 25px;
    size: 10px;
}

#question-navigation button:hover {        
    background-color: #368BC1;    
    color: #FFF;
}


#result-container {
    font-family: Arial, sans-serif;
    margin: 20px;
}
.question-result {
    margin-bottom: 20px;
}
.question-result h3 {
    margin-bottom: 10px;
}
.question-result div {
    margin-left: 20px;
}

.non-flashing {
    font-size: 1rem;
    font-weight: 600;
    color: #FFF;
    padding: 0 0px 0px 0px;
    text-align: center;
}

.flashing-div {
    font-size: 1rem;
/*    background-color: red;*/
    text-align: center;
    color: white;
    font-weight: bold;
    animation: flash 3s infinite; /* Flash every 1 second */
}

@keyframes flash {
    0% { color: #ff6600; }
    50% { color: #ff6600; }
    100% { color: #ff6600; }
}
.quiz-container {
    padding: 0px;
}

.new-quiz-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 5px;
    width: 100%;
    padding: 0 20px 0 0;
}

.new-quiz-row {
    display: flex;
}

.quiz-row-subject {
    display: flex;
    justify-content: left;
/*    widht: 215px;*/
    align-content: center;
    flex-wrap: wrap;
}

.quiz-row-timer {
    display: flex;
    justify-content: center;
    width: 100%;
}

.quiz-row-qnumber {
    display: flex;
    justify-content: right;
    width: 100%;
}

.quiz-answer-wrapper {
    display: block;
    background: #fff;
    border-top: 1px solid #ddd;
    padding: 10px 0px 10px 0px;
}

.quiz-finished {
    display: flex;
    justify-content: center;
    font-size: 20px;
    width: 100%;
    color: #656565;
    
}
.quiz-score {
    display: flex;
    justify-content: center;
    width: 100%;
    color: #656565;

}

.dash-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    font-size: 0.86rem;
    color: #2c3e50;
    width: 100%;
}

.dash-grid-row {
    display: flex;
}

.dash-grid-quiz {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    column-gap: 15px;
    padding: 16px 20px;
    border-bottom: 1px solid #e1e8ed;
    transition: background 0.2s ease;
    min-width: 500px;
}

.dash-grid-quiz:hover {
    background: #f8f9fa;
}

#table-head-2 .dash-grid-quiz {
    background: #f8f9fa;
    font-weight: 600;
}

#table-head-2 .dash-grid-quiz:hover {
    background: #f8f9fa;
}

.dash-grid-practice {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    column-gap: 15px;
    padding: 16px 20px;
    border-bottom: 1px solid #e1e8ed;
    transition: background 0.2s ease;
}

.dash-grid-practice:hover {
    background: #f8f9fa;
}

#table-head .dash-grid-practice {
    background: #f8f9fa;
    font-weight: 600;
}

#table-head .dash-grid-practice:hover {
    background: #f8f9fa;
}


/*.dash-grid-practice-row {
#    display: flex;
}*/

.dash-table-head {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-content: center;
    color: #2c3e50;
    font-size: 15px;
}

.dash-table-head-progress {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-content: center;
    color: #2c3e50;
}

.progress-container {
/*  display: flex;*/
  justify-content: center;
  align-items: center;
  position: relative;
  width: 50px;
  height: 60px;
}

.progress-container svg {
  transform: rotate(0deg);
}

.progress-container .progress-text {
  position: absolute;
  top: calc(40% + 8px);
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.7rem;
  font-weight: 600;
  color: #2c3e50;
}

.table-head-practice {
  border-bottom: 1px solid #ddd;
  display: flex;
  justify-content: center;
  width: 150px;
  border-bottom: 1px solid #ddd;
  flex-wrap: wrap;
  align-content: center;
}
.table-head-practice-progress {
  color: #2c3e50;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  align-content: center;
  font-weight: 600;
  font-size: 14px;
}

.table-head-practice-progress button {
    margin-top: 0px;
    cursor: pointer;
    background: #368BC1;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 8px 16px;
    width: auto;
    min-width: 80px;
    height: auto;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.table-head-practice-progress button:hover,
.table-head-practice-progress button:focus {
    background: #2c6a93;
    transform: scale(1.05);
    outline: none;
}

.table-head-practice-subject {
  display: flex;
  justify-content: left;
  flex-wrap: wrap;
  align-content: center;
  color: #2c3e50;
  font-weight: 500;
  font-size: 15px;
}

.table-head-subject {
  display: flex;
  justify-content: center;
  color: #2c3e50;
  flex-wrap: wrap;
  align-content: center;
  font-weight: 600;
  font-size: 14px;
}

.table-head-subject-practice {
  display: flex;
  color: #2c3e50;
  justify-content: center;
  flex-wrap: wrap;
  font-weight: 600;
  font-size: 14px;
}


.table-head-questions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  align-content: center;
  word-wrap: break-word;
  overflow-wrap: break-word;
  color: #2c3e50;
  font-weight: 600;
  font-size: 14px;
}

.dash-title {
   padding: 1rem 1.5rem;
   border-top-left-radius: 8px;
   border-top-right-radius: 8px;
   text-align: left;
   font-size: 16px;
   display: flex;
   align-items: center;
   gap: 10px;
   font-weight: 600;
   background: #368BC1;
   color: white;
}

.dash-title .title-icon {
   width: 20px;
   height: 20px;
   flex-shrink: 0;
   align-items: center;
   box-shadow: 0 2px 8px rgba(54, 139, 193, 0.2);
}
.no-quizzes-message {
  display: flex;
  justify-content: center;
  text-align: center;
  color: #555;
  font-size: 1.2rem;
  margin-top: 20px;
  font-weight: bold;
}
.modal {
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(54, 139, 193, 0.15);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
.modal-content {
    background: white;
    border-radius: 12px;
    min-width: 50%;
    max-width: 85%;
    max-height: 80%;
    box-shadow: 0 8px 30px rgba(54, 139, 193, 0.15);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0px;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #368BC1;
    border-radius: 4px;
}

.close-btn {
    cursor: pointer;
    font-size: 28px;
    font-weight: bold;
    color: white;
    transition: all 0.2s ease;
    line-height: 1;
    padding: 0 8px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}


.quiz-result-grid {
    display: grid;
    grid-template-columns: 5% 32% 30% 30%;
    gap: 0px 10px;
    padding: 0px 16px;
    color: #4a5568;
    border-bottom: 1px solid #e2e8f0;
    transition: background 0.2s ease;
}

.quiz-result-grid:hover {
    background: #f7fafc;
}

.quiz-result-row-header {
    padding: 12px 8px;
    display: flex;
    justify-content: center;
    font-weight: 600;
    color: #2d3748;
    background: #f7fafc;
    font-size: 0.9rem;
}

.quiz-result-grid:has(.quiz-result-row-header) {
    border-bottom: 2px solid #e2e8f0;
    background: #f7fafc;
}

.quiz-result-grid:has(.quiz-result-row-header):hover {
    background: #f7fafc;
}

.quiz-result-row {
    padding: 14px 10px;
    display: flex;
    align-content: center;
    flex-wrap: wrap;
    color: #4a5568;
}

.quiz-result-row a {
    text-decoration: none;
    color: #4a5568;
    transition: color 0.2s ease;
}

.quiz-result-row a:hover {
    text-decoration: none;
    color: #368BC1;
    font-weight: 500;
}

.quiz-result-grid:last-child {
    border-bottom: none;
    margin-bottom: 16px;
}

.modal-header-title {
    position: sticky;
    top: 0;
    z-index: 12;
}

.quiz-info-section {
    position: sticky;
    top: 56px;
    z-index: 11;
}

.quiz-result-grid:has(.quiz-result-row-header) {
    position: sticky;
    top: 106px;
    z-index: 10;
}

#quizDetails {
    padding-bottom: 8px;
}

.dash-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(54, 139, 193, 0.08);
    transition: all 0.3s ease;
    overflow-x: auto;
    width: 100%;
}

/* Make subject progress and quiz cards same height with scrolling */
#dash-card,
#dash-card-2 {
    max-height: 620px;
    overflow-y: auto;
    padding-bottom: 16px;
}

/* Sticky titles for scrollable cards */
#dash-card .dash-title,
#dash-card-2 .dash-title {
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 0;
}

/* Sticky table headers */
#table-head,
#table-head-2 {
    position: sticky;
    top: 48px;
    z-index: 9;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Content containers with proper spacing */
#subjects-container,
#quiz-subjects-container {
    padding-top: 8px;
}

/* Focus areas card - no scrolling needed */
.continue-learning-container .dash-card,
#focus-areas-container .dash-card {
    overflow: visible;
}

.dash-card:hover {
    box-shadow: 0 8px 30px rgba(54, 139, 193, 0.15);
    transform: translateY(-2px);
}

/* Scrollbar styling for scrollable cards */
#dash-card::-webkit-scrollbar,
#dash-card-2::-webkit-scrollbar {
    width: 10px;
    background: transparent;
}

#dash-card::-webkit-scrollbar-track,
#dash-card-2::-webkit-scrollbar-track {
    background: transparent;
    margin: 62px 0 20px 0;
}

#dash-card::-webkit-scrollbar-track-piece,
#dash-card-2::-webkit-scrollbar-track-piece {
    background: transparent;
}

#dash-card::-webkit-scrollbar-thumb,
#dash-card-2::-webkit-scrollbar-thumb {
    background: #368BC1;
    border-radius: 3px;
}

#dash-card::-webkit-scrollbar-thumb:hover,
#dash-card-2::-webkit-scrollbar-thumb:hover {
    background: #2c6a93;
}

/* Completely remove scrollbar buttons */
#dash-card::-webkit-scrollbar-button,
#dash-card-2::-webkit-scrollbar-button {
    width: 0;
    height: 0;
    display: none;
}

#dash-card::-webkit-scrollbar-button:start:decrement,
#dash-card::-webkit-scrollbar-button:end:increment,
#dash-card-2::-webkit-scrollbar-button:start:decrement,
#dash-card-2::-webkit-scrollbar-button:end:increment {
    display: none;
    width: 0;
    height: 0;
    background: transparent;
}

/* Firefox scrollbar */
#dash-card,
#dash-card-2 {
    scrollbar-color: #368BC1 transparent;
    scrollbar-width: auto;
}

/* For other browsers (Edge, Safari) */
#dash-card,
#dash-card-2 {
    -ms-overflow-style: -ms-autohiding-scrollbar;
}

/* Overall Stats Container */
.overall-stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
    max-width: 100%;
}

.stat-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(54, 139, 193, 0.08);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    box-shadow: 0 8px 30px rgba(54, 139, 193, 0.15);
    transform: translateY(-2px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: #368BC1;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon svg {
    width: 36px;
    height: 36px;
}

.stat-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #368BC1;
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

/* Gradient Progress Bar */
.gradient-progress-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.gradient-progress-fill {
    height: 100%;
    width: 0%;
    background: #368BC1;
    border-radius: 4px;
    transition: width 1s ease-out;
    position: relative;
}

/* Continue Learning Section */
.continue-learning-container {
    margin-bottom: 20px;
    width: 100%;
}

.continue-learning-container .dash-card {
    width: 100%;
    max-width: 100%;
}

.continue-content {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.continue-subject {
    font-size: 1.1rem;
    color: #2c3e50;
    font-weight: 600;
}

.continue-btn {
    background: #368BC1;
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.continue-btn:hover,
.continue-btn:focus {
    background: #2c6a93;
    transform: translateX(4px);
    outline: none;
}

/* Combined Subject Grid */
.dash-grid-combined {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    column-gap: 15px;
    padding: 16px 20px;
    border-bottom: 1px solid #e1e8ed;
    transition: background 0.2s ease;
    align-items: center;
    min-width: 600px;
}

.dash-grid-combined:hover {
    background: #f8f9fa;
}

#table-head .dash-grid-combined {
    background: #f8f9fa;
    font-weight: 600;
}

#table-head .dash-grid-combined:hover {
    background: #f8f9fa;
}

.table-head-subject-combined,
.table-head-progress-col,
.table-head-accuracy-col,
.table-head-stats-col,
.table-head-trend-col {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.86rem;
}

.table-head-subject-combined {
    justify-content: flex-start;
}

.accuracy-cell {
    display: flex;
    gap: 8px;
    align-items: center;
}

.grade-stars {
    font-size: 1rem;
    color: #368BC1;
}

.accuracy-percent {
    font-weight: 600;
    color: #2c3e50;
}

.trend-cell {
    display: flex;
    align-items: center;
    justify-content: center;
}

.trend-cell svg {
    display: block;
}


/* Focus Areas */
.focus-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid #e1e8ed;
    transition: background 0.2s ease;
}

.focus-item:last-child {
    border-bottom: none;
}

.focus-item:hover {
    background: #f8f9fa;
}

.focus-icon {
    width: 32px;
    height: 32px;
    background: #fb7185;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.focus-icon svg {
    width: 20px;
    height: 20px;
}

.focus-progress-container {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: 12px;
}

.focus-name {
    font-weight: 600;
    color: #4b5563;
    font-size: 0.95rem;
    width: 180px;
    flex-shrink: 0;
}

.focus-progress-bar {
    position: relative;
    flex: 1;
    height: 18px;
    background: #fecdd3;
    border-radius: 4px;
    overflow: hidden;
}

.focus-progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: #fb7185;
    border-radius: 4px;
    transition: width 1s ease-out;
}

.focus-accuracy {
    color: #fb7185;
    font-size: 1.125rem;
    font-weight: 700;
    min-width: 65px;
    text-align: center;
    flex-shrink: 0;
    margin-right: 12px;
}

.focus-practice-btn,
.details-btn {
    background: #368BC1;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    border: none;
    cursor: pointer;
}

.focus-practice-btn:hover,
.focus-practice-btn:focus,
.details-btn:hover,
.details-btn:focus {
    background: #2c6a93;
    transform: scale(1.05);
    outline: none;
}

.custom-select {
  appearance: none; /* Removes default styling */
  -webkit-appearance: none; /* For Safari */
  -moz-appearance: none; /* For Firefox */
  
  background-color: #f0f0f0; /* Background color */
  border: 1px solid #ccc; /* Border style */
  padding: 0px 0px 0px 5px; /* Inner spacing */
  font-size: 16px; /* Text size */
  color: #333; /* Text color */
/*  border-radius: 5px; */ /* Rounded corners */
  max-width: 50%; /* Width of the box */
  cursor: pointer;
  background-image: url('data:image/svg+xml;base64,PHN2ZyBmaWxsPSIjNjY2IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMCIgaGVpZ2h0PSI2Ij48cGF0aCBkPSJNNSA1LjM1NGwtNC00LjAwNHYtLjAwNGwuNjUyLjY1MiAzLjM1MyAzLjM1MyAzLjM1NC0zLjM1My42NTItLjY1MmgtLjAwNGwuMDA0LjAwNGwtNCA0LjAwNHoiLz48L3N2Zz4=');
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px 6px;
}


.form-container {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #f9f9f9;
}
.submit-button {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 80%;
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.submit-button:hover {
     background-color: #0056b3;
}


.signup-select {
        border-radius: 2px;
        display: flex;
        height: 25px;
        padding: 0px;
        background-color: #fff;
        border: 1px solid #368BC1;
        color: #797979;
        font-size: 14px;
        width: 200px;

}

.login-form2 input[type="checkbox"] {
    width: auto;
    appearance: none;
    -webkit-appearance: none;
    height: 14px;
    width: 14px;
    border: 2px solid #007bff;
    border-radius: 1px;
    cursor: pointer;
    position: relative;
    display: flex;
    vertical-align: middle;
    align-items: center;
    justify-content: center;
}
.login-form2 input[type="checkbox"]:checked {
    background-color: #368BC1;
    border-color: #368BC1;
}
.login-form2 input[type="checkbox"]::after {
    content: '\2714';
    color: white;
    font-size: 12px;
    position: absolute;
    padding: 0px 1px 1px 0px;
/*    top: 0px;
    left: 1px;
    bottom: 10px; */
}
.password-error {
    display: flex; /* Ensures the error appears on a new line */
    margin-top: 10px; /* Space between the country input and the error */
    font-size: 14px; /* Optional: Adjust font size */
    justify-content: center;
    
}
.card-wrapper10 a {
    text-decoration: none;
    font-weight: bold;
    color: #368BC1;
}

.w-\[100px\] {
    width: 100px;
}

.h-\[40px\] {
    height: 40px;
}

.forgot-pass-txt {
   padding: 20px 0 20px 10px;
   color: #656565;
   display: flex;
   flex-wrap: wrap;
   justify-content: center;
}

.forgot-pass-form {
  padding: 0px 0 20px 10px;
  color: #656565;
   display: flex;
   flex-wrap: wrap;
   justify-content: center;
}
.forgot-pass-form input {
   width: 250px;
   height: 30px;
   border: 1px solid #368BC1;
   border-radius: 2px;
   padding: 0px 0px 0px 10px;
}

.pass-error { 
  color: red; 
  text-align: center; 
  padding: 0 10px 0 10px;
}

.pass-success { 
  color: green; 
  text-align: center; 
  padding: 0 10px 0 10px;
}


/* Ensure the left menu is always visible on large screens */
.left {
    display: block;
    width: 300px;
    position: fixed;
    left: 0;
    top: 65px;
    background: white;
    z-index: 1000;
    height: calc(100vh - 65px);
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 4px 20px rgba(54, 139, 193, 0.08);
    padding: 8px 0;
}

/* Hide hamburger menu by default */
.hamburger {
    display: none;
    cursor: pointer;
    font-size: 24px;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    background: none;
    border: none;
    color: white;
    position: relative;
    z-index: 1100;
    align-items: center;
    justify-content: center;
}

/* Show hamburger menu only on small screens */

#subjects-container {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    max-height: 620px;
}

@media screen and (min-width: 1001px) {
    #dashboard {
        display: none !important; /* Hide when screen is greater than 1000px */
    }
}

/* Tablet breakpoint */
@media screen and (max-width: 1200px) {
    .progress-quiz-grid {
        gap: 16px;
    }

    .dash-grid-combined {
        grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
        font-size: 0.85rem;
    }

    .focus-progress-container {
        min-width: 250px;
    }

    .stat-card {
        padding: 20px;
    }
}

/* Medium tablet breakpoint */
@media screen and (max-width: 900px) {
    .overall-stats-container {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .overall-stats-container .stat-card:last-child {
        grid-column: 1 / -1;
    }

    .dash-grid-combined {
        font-size: 0.8rem;
    }

    .focus-item {
        flex-wrap: wrap;
    }

    .focus-progress-container {
        flex: 1;
        min-width: 250px;
    }
}

/* Mobile breakpoint */
@media screen and (max-width: 1000px) {


    #table-head,
    #subjects-container,
    #table-head-2,
    #quiz-subjects-container,
    #table-head-3,
    #performance-container,
    #table-head-4,
    #quiz-performance-container {
        display: block ; /* Hide initially */
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out, opacity 0.3s ease-in-out;
    }
    
    #table-head.show,
    #subjects-container.show,
    #table-head-2.show,
    #quiz-subjects-container.show,
    #table-head-3.show,
    #performance-container.show,
    #table-head-4.show,
    #quiz-performance-container.show {
        opacity: 1;
        max-height: 1000px; /* Ensures expansion */
    }
    
    .dash-title {
      padding: 12px 16px;
      font-size: 15px;
      text-align: center;
      justify-content: center;
    }
    .home-container {
        display: flex;
        justify-content: center;
        padding: 0 0 0 0 !important;
    }
    
    .hamburger {
        display: flex !important; /* Force visibility */
        font-size: 30px;
        background-color: transparent;
        border: none;
        color: white;
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        align-items: center;
        justify-content: center;
    }

    /* Responsive styles for new dashboard components */
    .card-wrapper-home {
        padding: 20px 12px;
    }

    .overall-stats-container {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 16px;
    }

    .stat-card {
        padding: 16px;
        flex-direction: row;
    }

    .stat-icon {
        width: 50px;
        height: 50px;
    }

    .stat-icon svg {
        width: 30px;
        height: 30px;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .gradient-progress-bar {
        height: 6px;
    }

    .continue-content {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
        gap: 12px;
    }

    .continue-subject {
        font-size: 0.95rem;
    }

    .continue-btn {
        width: 100%;
        text-align: center;
        padding: 10px 20px;
    }

    .dash-title {
        font-size: 15px;
        padding: 10px 16px;
    }

    .dash-title .title-icon {
        width: 18px;
        height: 18px;
    }

    .dash-grid-combined {
        display: flex;
        flex-direction: column;
        gap: 6px;
        padding: 12px 16px;
        min-width: unset;
    }

    .dash-grid-combined > div {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 0.85rem;
    }

    .table-head-practice-subject {
        font-weight: 600;
        margin-bottom: 8px;
    }


    .accuracy-cell {
        gap: 6px;
    }

    .grade-stars {
        font-size: 0.9rem;
    }

    .dash-grid-quiz {
        grid-template-columns: 2fr 1.5fr 1fr 1fr;
        padding: 12px 16px;
        font-size: 0.85rem;
        min-width: unset;
    }

    .focus-item {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        padding: 16px;
    }

    .focus-icon {
        width: 32px;
        height: 32px;
        margin: 0;
    }

    .focus-icon svg {
        width: 20px;
        height: 20px;
    }

    .focus-progress-container {
        width: 100%;
        flex: 1;
        margin-right: 0;
    }

    .focus-name {
        font-size: 0.9rem;
        width: 150px;
    }

    .focus-progress-bar {
        height: 18px;
        flex: 1;
    }

    .focus-accuracy {
        font-size: 1.1rem;
        min-width: auto;
        margin-right: 0;
    }

    .focus-practice-btn {
        width: 100%;
        text-align: center;
        padding: 10px 16px;
    }

    /* Stack progress and quiz cards vertically on mobile */
    .progress-quiz-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    #dash-card,
    #dash-card-2 {
        max-height: none;
        padding-bottom: 0;
    }

    /* Adjust scrollbar for mobile */
    #dash-card::-webkit-scrollbar,
    #dash-card-2::-webkit-scrollbar {
        width: 8px;
    }

    .home-container {
        padding: 0;
        margin-bottom: 16px;
    }

    .left {
        display: block !important; /* Always block for smooth animation */
        width: 85% !important;
        max-width: 320px !important;
        position: fixed !important;
        top: 65px !important;
        left: 0 !important;
        bottom: 0 !important;
        background: white;
        z-index: 1100 !important;
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                    visibility 0.35s !important;
        overflow: hidden scroll !important;
        height: auto !important;
        max-height: none !important;
        transform: translateX(-100%) !important;
        visibility: hidden !important;
        box-shadow: 4px 0 25px rgba(0, 0, 0, 0.2) !important;
        padding: 8px 0 !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior-y: contain !important;
        touch-action: pan-y !important;
    }

    .left.active {
        transform: translateX(0) !important;
        visibility: visible !important;
    }

    /* Backdrop overlay for mobile menu */
    .menu-backdrop {
        position: fixed;
        top: 65px;
        left: 0;
        width: 100%;
        height: calc(100vh - 65px);
        background: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(3px);
        -webkit-backdrop-filter: blur(3px);
        z-index: 1050;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                    visibility 0.35s;
    }

    .menu-backdrop.active {
        opacity: 1;
        visibility: visible;
    }

    .content {
        padding: 60px 1rem 2rem;
    }

    .card-wrapper-home {
        padding: 20px 10px;
    }

    .card-header-home {
        padding: 20px 16px;
        margin-bottom: 16px;
    }

    .card-header-home-label {
        font-size: 24px;
    }

    .dash-card {
        max-height: 500px;
    }

    .dash-grid-practice,
    .dash-grid-quiz,
    .dash-grid-perf {
        padding: 12px 16px;
        font-size: 13px;
    }
    
    .top {
      display: grid;
      grid-template-columns: auto 1fr auto auto;
      grid-template-rows: 1fr;
      align-items: center;
      padding: 10px;
      gap: 0.25rem;
    }

    .top > * {
      grid-row: 1;
      align-self: center;
    }

    .top .hamburger {
      grid-column: 1;
      display: flex;
      width: 44px;
    }

    .top .logo {
      position: absolute;
      left: 47%;
      transform: translateX(-47%);
      margin: 0;
      margin-bottom: 0.5rem;
    }

    /* Tablet - center logo properly */
    @media (min-width: 768px) {
      .top .logo {
        left: 50%;
        transform: translateX(-50%);
      }
    }

    .top #demo-badge-container {
      display: none; /* Hide demo badge on mobile */
    }

    .top .notification-bell-container {
      grid-column: 3;
      margin: 0;
    }

    .top .feedback-top-btn {
      grid-column: 4;
      margin: 0;
      margin-right: 1rem;
    }

    .dash-grid {
      display: flex;
      flex-direction: column;
      gap: 16px;
      padding: 0;
    }

    #subjects-container {
      order: 1;
    }
    
    #quiz-subjects-container {
      order: 2;
    }
    
    .form-group9 {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 10px;
      padding: 10px 20px 10px 20px;
      border: none;
    }
    
    .form-group9 label, 
    .form-group9 select {
      width: 100%;
    }
    
    .card-header-submit {
      display: flex;
      justify-content: center;
      margin-top: 10px;
    }

    .select-saved-questions {
      background: #FFF; 
      max-width: 100%; 
      display: flex; 
      flex-wrap: wrap; 
      flex-direction: column;
      align-items: center
    }
    
    .saved-table-row div {
      flex-wrap: wrap;
      word-wrap: break-word;
    }
    
    .saved-table {
      display: grid;
      grid-template-columns: auto auto auto auto;
      gap: 3px;
      margin: 0px;
    }
    .saved-table-header div {
      font-weight: bold;
      text-align: center;
      border-bottom: 1px solid #ccc;
      padding: 0px 0px 15px 0px;
      color: #656565;
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      align-items: center;
      max-width: 100%;
      flex-direction: column;
    }

.custom-select {    
/*    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none; */
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    padding: 0px 0px 0px 5px;
    font-size: 16px;
    color: #333;
/*   max-width: 50%; */
    cursor: pointer;
/*    background-image: url('data:image/svg+xml;base64,PHN2ZyBmaWxsPSIjNjY2IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMCIgaGVpZ2h0PSI2Ij48cGF0aCBkPSJNNSA1LjM1NGwtNC00LjAwNHYtLjAwNGwuNjUyLjY1MiAzLjM1MyAzLjM1MyAzLjM1NC0zLjM1My42NTItLjY1MmgtLjAwNGwuMDA0LjAwNGwtNCA0LjAwNHoiLz48L3N2Zz4=');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px 6px; */
    display: flex;
 }   
.table-head-practice-subject {
      padding: 0px 0px 0 10px;
    }
.save {
      padding: 0px 5px 0 5px;
      }
      
.right-side {
    padding: 0px 5px 0 5px;
}

#dashboard {
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    padding: 20px 0; /* 20px padding top and bottom */
    font-size: 1.5rem; /* Adjust font size */
    font-weight: bold; /* Make it stand out */
    text-align: center; /* Ensure text is centered */
    background-color: #fff; /* Optional: Add a background color */
    color: #368BC1; /* Text color */
}
      
#ios-install-banner {
    position: fixed;
    bottom: 20px;
    left: 10%;
    width: 80%;
    background: white;
    padding: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
}
.impersonate-btn {
    padding: 5px 5px 5px 5px;
    background-color: #007bff;
    color: white;
    font-size: 10px;
    border: none;
    cursor: pointer;
    border-radius: 3px;
}

.dash-grid-perf {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    column-gap: 15px;
    padding: 16px 20px;
    border-bottom: 1px solid #e1e8ed;
    transition: background 0.2s ease;
}

.dash-grid-perf:hover {
    background: #f8f9fa;
}

#table-head-3 .dash-grid-perf,
#table-head-4 .dash-grid-perf {
    background: #f8f9fa;
    font-weight: 600;
}

#table-head-3 .dash-grid-perf:hover,
#table-head-4 .dash-grid-perf:hover {
    background: #f8f9fa;
}

} /* End of @media screen and (max-width: 1000px) */

/* ===== Modern Login Page Styles ===== */

.modern-login-container {
    min-height: 100vh;
    min-height: 100dvh; /* Dynamic viewport height for mobile browsers */
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f7fa 0%, #e8f4f8 100%);
    overflow-y: auto;
}

.modern-login-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(54, 139, 193, 0.1);
    padding: 48px 40px;
    width: 100%;
    max-width: 440px;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-logo-section {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo-section img {
    animation: fadeIn 0.6s ease-out;
    height: 169px;
    width: auto;
    max-width: 100%;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.login-welcome {
    text-align: center;
    margin-bottom: 36px;
}

.login-welcome h1 {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}

.login-welcome p {
    font-size: 15px;
    color: #7f8c8d;
    margin: 0;
    font-weight: 400;
}

.modern-login-form {
    width: 100%;
}

.modern-input-group {
    margin-bottom: 20px;
}

.modern-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.modern-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: 'Public Sans', sans-serif;
    color: #2c3e50;
    background: #f8f9fa;
}

.modern-input:focus {
    outline: none;
    border-color: #368BC1;
    background: white;
    box-shadow: 0 0 0 4px rgba(54, 139, 193, 0.1);
}

.modern-input::placeholder {
    color: #95a5a6;
}

.forgot-password-link {
    text-align: right;
    margin-bottom: 24px;
    margin-top: -8px;
}

.forgot-password-link a {
    font-size: 14px;
    color: #368BC1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.forgot-password-link a:hover {
    color: #2c6e99;
    text-decoration: underline;
}

.modern-login-button {
    width: 100%;
    padding: 16px;
    background: #368BC1;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(54, 139, 193, 0.3);
}

.modern-login-button:hover {
    background: #2c6e99;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(54, 139, 193, 0.4);
}

.modern-login-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(54, 139, 193, 0.3);
}

.modern-install-button {
    width: 100%;
    padding: 14px;
    background: white;
    color: #368BC1;
    border: 2px solid #368BC1;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 12px;
}

.modern-install-button:hover {
    background: #f0f7ff;
    transform: translateY(-1px);
}

.login-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 28px 0;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e1e8ed;
}

.login-divider span {
    padding: 0 16px;
    color: #95a5a6;
    font-size: 14px;
    font-weight: 500;
}

.signup-link {
    text-align: center;
    font-size: 15px;
    color: #7f8c8d;
    margin-top: 0;
    padding: 1rem;
}

.signup-link a {
    color: #368BC1;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.signup-link a:hover {
    color: #2c6e99;
    text-decoration: underline;
}

/* Responsive Design */
@media screen and (max-width: 500px) {
    .modern-login-container {
        padding: 12px;
        align-items: flex-start;
        padding-top: 20px;
    }

    .modern-login-card {
        padding: 24px 20px;
        margin: auto 0;
    }

    .login-logo-section {
        margin-bottom: 20px;
    }

    .login-logo-section img {
        height: 100px !important; /* Smaller logo on mobile */
        max-height: 100px;
    }

    .login-welcome {
        margin-bottom: 24px;
    }

    .login-welcome h1 {
        font-size: 22px;
        margin-bottom: 6px;
    }

    .login-welcome p {
        font-size: 14px;
    }

    .modern-input-group {
        margin-bottom: 18px;
    }

    .modern-input {
        padding: 12px 14px;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .modern-login-button,
    .modern-install-button {
        padding: 14px;
        font-size: 15px;
    }

    .login-divider {
        margin: 20px 0;
    }

    .forgot-password-link {
        margin-bottom: 18px;
    }

    /* Modal responsive styles */
    .modern-modal-content {
        width: 95%;
        max-height: 90vh;
        overflow-y: auto;
    }

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

    .modern-modal-header h2 {
        font-size: 20px;
    }

    .modern-modal-body {
        padding: 20px;
    }

    .modal-description {
        font-size: 14px;
        margin-bottom: 20px;
    }

    /* iOS install banner responsive */
    #ios-install-banner {
        padding: 12px !important;
        font-size: 13px !important;
        margin-top: 16px !important;
    }
}

/* Extra small devices */
@media screen and (max-width: 380px) {
    .modern-login-container {
        padding: 10px;
        padding-top: 15px;
    }

    .modern-login-card {
        padding: 20px 16px;
    }

    .login-logo-section {
        margin-bottom: 16px;
    }

    .login-logo-section img {
        height: 80px !important;
    }

    .login-welcome {
        margin-bottom: 20px;
    }

    .login-welcome h1 {
        font-size: 20px;
    }

    .login-welcome p {
        font-size: 13px;
    }

    .modern-input-group {
        margin-bottom: 16px;
    }

    .modern-label {
        font-size: 13px;
    }
}

/* Modern Modal Styles */
.modern-modal-content {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 480px;
    width: 90%;
    animation: modalSlideUp 0.3s ease-out;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modern-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 32px 20px;
    border-bottom: 1px solid #e1e8ed;
}

.modern-modal-header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
}

.modern-close-btn {
    font-size: 28px;
    font-weight: 300;
    color: #95a5a6;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
    line-height: 1;
}

.modern-close-btn:hover {
    background: #f8f9fa;
    color: #2c3e50;
}

.modern-modal-body {
    padding: 28px 32px 32px;
}

.modal-description {
    color: #7f8c8d;
    font-size: 15px;
    margin: 0 0 24px 0;
    line-height: 1.6;
}

.modal-message {
    margin-top: 20px;
    text-align: center;
}

.modal-message p {
    margin: 0;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
}

.modal-message p:not(:empty) {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.modal-message p.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.modal-message p.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Small mobile breakpoint */
@media screen and (max-width: 640px) {
    .stat-value {
        font-size: 1.25rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .stat-icon {
        width: 44px;
        height: 44px;
    }

    .stat-icon svg {
        width: 26px;
        height: 26px;
    }

    .dash-grid-quiz {
        grid-template-columns: 1.5fr 1fr 0.8fr 0.8fr;
        font-size: 0.75rem;
        padding: 10px 12px;
    }

    .dash-grid-combined {
        padding: 10px 12px;
        min-width: unset;
    }

    .focus-progress-bar {
        height: 28px;
        padding: 0 10px;
    }

    .focus-name {
        font-size: 0.8rem;
    }

    .focus-accuracy {
        font-size: 1rem;
    }

    .focus-icon {
        width: 48px;
        height: 48px;
    }

    .focus-icon svg {
        width: 28px;
        height: 28px;
    }

    .card-wrapper-home {
        padding: 16px 10px;
    }

    .continue-subject {
        font-size: 0.9rem;
    }

    .details-btn,
    .focus-practice-btn,
    .continue-btn {
        font-size: 0.85rem;
        padding: 8px 14px;
    }

    /* Modal responsive styles */
    .modal-content {
        min-width: 90%;
        max-width: 95%;
        max-height: 85%;
        border-radius: 8px;
    }

    .modal-header-title {
        font-size: 16px !important;
        padding: 12px 16px !important;
        border-radius: 8px 8px 0 0 !important;
    }

    .quiz-info-section {
        top: 48px !important;
    }

    .quiz-result-grid:has(.quiz-result-row-header) {
        top: 92px !important;
    }

    .quiz-result-grid {
        grid-template-columns: 8% 30% 30% 30%;
        gap: 0px 6px;
        padding: 0px 8px;
        font-size: 0.75rem;
    }

    .quiz-result-row-header {
        padding: 10px 4px;
        font-size: 0.75rem;
    }

    .quiz-result-row {
        padding: 10px 6px;
        font-size: 0.75rem;
    }

    .close-btn {
        font-size: 22px !important;
        width: 32px !important;
        height: 32px !important;
        padding: 0 6px !important;
    }

    /* Mobile Optimization (≤640px) */

    .content {
        padding: 70px 0 0;
    }
}

/* Extra small mobile breakpoint */
@media screen and (max-width: 400px) {
    .stat-card {
        padding: 12px;
        gap: 12px;
    }

    .stat-value {
        font-size: 1.1rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    .dash-grid-quiz {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .dash-grid-quiz > div {
        display: flex;
        justify-content: space-between;
    }

    .table-head-subject::before {
        content: "Subject: ";
        font-weight: 600;
    }

    .focus-progress-bar {
        height: 26px;
        padding: 0 8px;
    }

    .focus-name {
        font-size: 0.75rem;
    }
}

/**
 * Modal Mobile Fullscreen Styles
 *
 * Ensures ALL modals are fullscreen on mobile devices (< 768px)
 * This file overrides various modal implementations to be consistent
 *
 * Include this file AFTER all other CSS files to ensure overrides work
 */

/* ============================================================================
   MOBILE FULLSCREEN MODALS (< 768px)
   All modals should be fullscreen on mobile devices
   ============================================================================ */

@media (max-width: 768px) {

    /* ==========================================================================
       GENERIC MODAL OVERLAYS
       ========================================================================== */

    .modal-overlay,
    .modal,
    .user-modal-overlay,
    .quiz-dialog-backdrop,
    .annex-modal-overlay,
    .mock-popup-overlay,
    .break-prompt-overlay,
    .mock-leave-warning-backdrop,
    .feedback-modal-backdrop {
        padding: 0 !important;
        margin: 0 !important;
        align-items: stretch !important;
        justify-content: stretch !important;
    }

    /* ==========================================================================
       GENERIC MODAL CONTAINERS
       Only apply fullscreen styles when modals are ACTIVE
       ========================================================================== */

    .modal.active .modal-content,
    .user-modal.active,
    .user-modal.active .user-modal-content,
    .quiz-dialog.active,
    .annex-modal.active,
    .mock-popup.active,
    .break-prompt.active,
    .mock-leave-warning.active,
    .feedback-modal.active {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        max-height: 100% !important;
        min-height: 100% !important;
        border-radius: 0 !important;
        margin: 0 !important;
        transform: none !important;
        display: flex !important;
        flex-direction: column !important;
    }

    /* ==========================================================================
       PROFILE PAGE MODALS
       ========================================================================== */

    /* Profile modal (delete account, etc) */
    .profile-container .modal.active .modal-content,
    #delete-modal .modal-content {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        max-height: 100% !important;
        border-radius: 0 !important;
        margin: 0 !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .profile-container .modal-header,
    #delete-modal .modal-header {
        flex-shrink: 0;
        position: sticky;
        top: 0;
        background: white;
        z-index: 10;
    }

    .profile-container .modal-body,
    #delete-modal .modal-body {
        flex: 1 1 auto;
        overflow-y: auto;
        min-height: 0;
    }

    .profile-container .modal-footer,
    #delete-modal .modal-footer {
        flex-shrink: 0;
        position: sticky;
        bottom: 0;
        background: white;
        border-top: 1px solid #dee2e6;
    }

    /* ==========================================================================
       PRACTICE PAGE MODALS
       ========================================================================== */

    /* Practice progress reset modal */
    .practice-app-wrapper .modal-overlay.show .modal-content,
    #progress-reset-modal .modal-content {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        max-height: 100% !important;
        border-radius: 0 !important;
        margin: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
    }

    /* Annex PDF modal */
    .annex-modal-overlay .annex-modal {
        border-radius: 0 !important;
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important;
    }

    .annex-modal-header {
        flex-shrink: 0;
    }

    .annex-modal-body {
        flex: 1 1 auto;
        height: calc(100% - 80px) !important;
    }

    /* ==========================================================================
       QUIZ PAGE MODALS
       ========================================================================== */

    /* Quiz confirmation dialog */
    .quiz-dialog-backdrop .quiz-dialog {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        max-height: 100% !important;
        border-radius: 0 !important;
        margin: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
    }

    .quiz-dialog__header {
        flex-shrink: 0;
        padding: 1.5rem !important;
    }

    .quiz-dialog__body {
        flex: 1 1 auto;
        overflow-y: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 2rem !important;
    }

    .quiz-dialog__footer {
        flex-shrink: 0;
        padding: 1.5rem !important;
        flex-direction: row !important;
    }

    .quiz-dialog__footer .btn {
        flex: 1;
        min-width: 0 !important;
    }

    /* ==========================================================================
       MOCK EXAM MODALS
       ========================================================================== */

    /* Mock popup (attention popup, subject selector) */
    .mock-popup-overlay .mock-popup,
    .mock-popup {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        max-height: 100% !important;
        min-height: 100% !important;
        border-radius: 0 !important;
        margin: 0 !important;
    }

    /* Break prompt between subjects */
    .break-prompt-overlay .break-prompt {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        max-height: 100% !important;
        border-radius: 0 !important;
        margin: 0 !important;
    }

    /* Leave exam warning */
    .mock-leave-warning-backdrop .mock-leave-warning {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        max-height: 100% !important;
        border-radius: 0 !important;
        margin: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
    }

    /* ==========================================================================
       USERS PAGE MODALS (Admin)
       ========================================================================== */

    /* User modals are already handled in users-v2.css at 1024px breakpoint */
    /* Adding explicit 768px styles for consistency - only when ACTIVE */

    .user-modal-overlay[style*="display: flex"] .user-modal,
    .user-modal-overlay[style*="display: flex"] .user-modal-content,
    #view-user-modal.active .user-modal-content,
    #edit-user-modal.active .user-modal-content,
    #subscription-modal.active .user-modal-content,
    #delete-user-modal.active .user-modal-content,
    #reset-password-modal.active .user-modal-content,
    #user-progress-modal.active .user-modal-content,
    #quizzes-modal[style*="display: flex"] .user-modal,
    #mock-exams-modal[style*="display: flex"] .user-modal,
    #mock-exam-details-modal.active .user-modal-content {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        max-height: 100% !important;
        border-radius: 0 !important;
        margin: 0 !important;
        display: flex !important;
        flex-direction: column !important;
    }

    /* ==========================================================================
       FEEDBACK MODAL
       ========================================================================== */

    .feedback-modal-backdrop .feedback-modal {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        max-height: 100% !important;
        border-radius: 0 !important;
        margin: 0 !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .feedback-modal__header {
        flex-shrink: 0;
    }

    .feedback-modal__body {
        flex: 1 1 auto;
        overflow-y: auto;
    }

    .feedback-modal__footer {
        flex-shrink: 0;
    }

    /* ==========================================================================
       SAVED QUESTIONS PAGE MODALS
       ========================================================================== */

    /* Any modals on saved questions page */
    .saved-questions-page .modal-content {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        max-height: 100% !important;
        border-radius: 0 !important;
    }

    /* ==========================================================================
       MODAL HEADER/BODY/FOOTER COMMON STYLES
       ========================================================================== */

    /* Headers - sticky at top */
    .modal-header,
    .user-modal-header,
    .quiz-dialog__header,
    .mock-popup__header,
    .break-prompt__header,
    .feedback-modal__header {
        flex-shrink: 0;
        position: sticky;
        top: 0;
        background: white;
        z-index: 10;
        border-bottom: 1px solid #dee2e6;
    }

    /* Bodies - scrollable */
    .modal-body,
    .user-modal-body,
    .quiz-dialog__body,
    .mock-popup__content,
    .break-prompt__content,
    .feedback-modal__body {
        flex: 1 1 auto;
        overflow-y: auto;
        min-height: 0;
        -webkit-overflow-scrolling: touch;
    }

    /* Footers - sticky at bottom */
    .modal-footer,
    .user-modal-footer,
    .quiz-dialog__footer,
    .mock-popup__footer,
    .break-prompt__footer,
    .feedback-modal__footer {
        flex-shrink: 0;
        position: sticky;
        bottom: 0;
        background: white;
        z-index: 10;
        border-top: 1px solid #dee2e6;
    }

    /* ==========================================================================
       BUTTON TOUCH TARGETS
       ========================================================================== */

    /* Ensure all modal buttons have proper touch targets */
    .modal-footer .btn,
    .modal-actions .btn,
    .user-modal-footer .btn,
    .quiz-dialog__footer .btn,
    .mock-popup__footer .btn,
    .break-prompt__footer .btn,
    .feedback-modal__footer .btn {
        min-height: 48px;
        padding: 0.875rem 1.5rem;
    }

    /* Close buttons */
    .modal-close,
    .user-modal-close,
    .annex-modal-close,
    .mock-popup__close,
    .feedback-modal__close {
        min-width: 44px;
        min-height: 44px;
    }
}

/* ============================================================================
   SMALL MOBILE DEVICES (< 480px)
   Additional adjustments for very small screens
   ============================================================================ */

@media (max-width: 480px) {

    /* Reduce padding on very small screens */
    .modal-header,
    .user-modal-header,
    .quiz-dialog__header,
    .mock-popup__header,
    .break-prompt__header {
        padding: 1rem !important;
    }

    .modal-body,
    .user-modal-body,
    .quiz-dialog__body,
    .mock-popup__content,
    .break-prompt__content {
        padding: 1rem !important;
    }

    .modal-footer,
    .user-modal-footer,
    .quiz-dialog__footer,
    .mock-popup__footer,
    .break-prompt__footer {
        padding: 1rem !important;
    }

    /* Stack buttons vertically on very small screens */
    .modal-footer,
    .modal-actions,
    .quiz-dialog__footer {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }

    .modal-footer .btn,
    .modal-actions .btn,
    .quiz-dialog__footer .btn {
        width: 100% !important;
    }

    /* Smaller titles */
    .modal-header h2,
    .modal-title,
    .user-modal-header h2,
    .quiz-dialog__header {
        font-size: 1.1rem !important;
    }
}

/* ============================================================================
   DARK MODE STYLES
   ============================================================================ */

/* Dark mode - forced dark */
html.dark-mode body {
    background-color: #13161b !important;
    color: #f3f4f6 !important;
}

/* Dark mode - auto (follows system) */
@media (prefers-color-scheme: dark) {
    html.dark-mode-auto body {
        background-color: #13161b !important;
        color: #f3f4f6 !important;
    }
}

/* --- Header/Top Bar --- */
html.dark-mode .top {
    background: #1a1d23 !important;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.4) !important;
}

@media (prefers-color-scheme: dark) {
    html.dark-mode-auto .top {
        background: #1a1d23 !important;
        box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.4) !important;
    }
}

/* --- Sidebar/Left Menu --- */
html.dark-mode .left {
    background: #1a1d23 !important;
    border-right-color: #363c47 !important;
}

html.dark-mode .left a {
    color: #d1d5db !important;
}

/* Menu icons - gray by default */
html.dark-mode .left a .menu-icon,
html.dark-mode .left .has-submenu .menu-icon {
    color: #6b7280 !important;
}

/* Hover state - blue text and icon */
html.dark-mode .left a:hover {
    background: rgba(74, 158, 212, 0.1) !important;
    color: #4a9ed4 !important;
}

html.dark-mode .left a:hover .menu-icon {
    color: #4a9ed4 !important;
}

/* Active state - blue text and icon */
html.dark-mode .menu ul li.selected > a,
html.dark-mode .menu ul li a.active,
html.dark-mode .left a.active {
    background: rgba(74, 158, 212, 0.15) !important;
    color: #4a9ed4 !important;
}

html.dark-mode .left a.active .menu-icon {
    color: #4a9ed4 !important;
}

html.dark-mode .submenu {
    background: #22262e !important;
}

html.dark-mode .submenu a {
    color: #9ca3af !important;
}

html.dark-mode .submenu a:hover {
    color: #f3f4f6 !important;
    background: #2a2f38 !important;
}

/* Menu items with submenus - blue text, gray icon */
html.dark-mode .left .has-submenu {
    color: #4a9ed4 !important;
}

html.dark-mode .left .has-submenu .menu-icon {
    color: #6b7280 !important;
}

/* Hover state for submenu triggers */
html.dark-mode .left .has-submenu:hover {
    background-color: rgba(74, 158, 212, 0.1) !important;
}

html.dark-mode .left .has-submenu:hover .menu-icon {
    color: #4a9ed4 !important;
}

/* Open/Active state for submenu triggers */
html.dark-mode .left .has-submenu.open,
html.dark-mode .left .has-submenu.active {
    background-color: rgba(74, 158, 212, 0.15) !important;
}

html.dark-mode .left .has-submenu.open .menu-icon,
html.dark-mode .left .has-submenu.active .menu-icon {
    color: #4a9ed4 !important;
}

/* Chevron arrow color in dark mode - always blue for submenu triggers */
html.dark-mode .left .has-submenu:after {
    border-top-color: #4a9ed4 !important;
}

/* Logout link - always red */
html.dark-mode .left a[href="/logout"] {
    color: #f87171 !important;
}

html.dark-mode .left a[href="/logout"] .menu-icon {
    color: #f87171 !important;
}

html.dark-mode .left a[href="/logout"]:hover {
    background: rgba(239, 68, 68, 0.1) !important;
    color: #ef4444 !important;
}

html.dark-mode .left a[href="/logout"]:hover .menu-icon {
    color: #ef4444 !important;
}

@media (prefers-color-scheme: dark) {
    html.dark-mode-auto .left {
        background: #1a1d23 !important;
        border-right-color: #363c47 !important;
    }

    html.dark-mode-auto .left a {
        color: #d1d5db !important;
    }

    /* Menu icons - gray by default */
    html.dark-mode-auto .left a .menu-icon,
    html.dark-mode-auto .left .has-submenu .menu-icon {
        color: #6b7280 !important;
    }

    /* Hover state - blue text and icon */
    html.dark-mode-auto .left a:hover {
        background: rgba(74, 158, 212, 0.1) !important;
        color: #4a9ed4 !important;
    }

    html.dark-mode-auto .left a:hover .menu-icon {
        color: #4a9ed4 !important;
    }

    /* Active state - blue text and icon */
    html.dark-mode-auto .menu ul li.selected > a,
    html.dark-mode-auto .menu ul li a.active,
    html.dark-mode-auto .left a.active {
        background: rgba(74, 158, 212, 0.15) !important;
        color: #4a9ed4 !important;
    }

    html.dark-mode-auto .left a.active .menu-icon {
        color: #4a9ed4 !important;
    }

    html.dark-mode-auto .submenu {
        background: #22262e !important;
    }

    html.dark-mode-auto .submenu a {
        color: #9ca3af !important;
    }

    html.dark-mode-auto .submenu a:hover {
        color: #f3f4f6 !important;
        background: #2a2f38 !important;
    }

    /* Menu items with submenus - blue text, gray icon */
    html.dark-mode-auto .left .has-submenu {
        color: #4a9ed4 !important;
    }

    html.dark-mode-auto .left .has-submenu .menu-icon {
        color: #6b7280 !important;
    }

    /* Hover state for submenu triggers */
    html.dark-mode-auto .left .has-submenu:hover {
        background-color: rgba(74, 158, 212, 0.1) !important;
    }

    html.dark-mode-auto .left .has-submenu:hover .menu-icon {
        color: #4a9ed4 !important;
    }

    /* Open/Active state for submenu triggers */
    html.dark-mode-auto .left .has-submenu.open,
    html.dark-mode-auto .left .has-submenu.active {
        background-color: rgba(74, 158, 212, 0.15) !important;
    }

    html.dark-mode-auto .left .has-submenu.open .menu-icon,
    html.dark-mode-auto .left .has-submenu.active .menu-icon {
        color: #4a9ed4 !important;
    }

    /* Chevron arrow color in dark mode - always blue for submenu triggers */
    html.dark-mode-auto .left .has-submenu:after {
        border-top-color: #4a9ed4 !important;
    }

    /* Logout link - always red */
    html.dark-mode-auto .left a[href="/logout"] {
        color: #f87171 !important;
    }

    html.dark-mode-auto .left a[href="/logout"] .menu-icon {
        color: #f87171 !important;
    }

    html.dark-mode-auto .left a[href="/logout"]:hover {
        background: rgba(239, 68, 68, 0.1) !important;
        color: #ef4444 !important;
    }

    html.dark-mode-auto .left a[href="/logout"]:hover .menu-icon {
        color: #ef4444 !important;
    }
}

/* --- Content Area --- */
html.dark-mode .content {
    background: #13161b !important;
}

@media (prefers-color-scheme: dark) {
    html.dark-mode-auto .content {
        background: #13161b !important;
    }
}

/* --- Cards & Panels --- */
html.dark-mode .card,
html.dark-mode .panel,
html.dark-mode .box,
html.dark-mode .data-table,
html.dark-mode .stat-card {
    background: #1a1d23 !important;
    border-color: #363c47 !important;
    color: #f3f4f6 !important;
}

@media (prefers-color-scheme: dark) {
    html.dark-mode-auto .card,
    html.dark-mode-auto .panel,
    html.dark-mode-auto .box,
    html.dark-mode-auto .data-table,
    html.dark-mode-auto .stat-card {
        background: #1a1d23 !important;
        border-color: #363c47 !important;
        color: #f3f4f6 !important;
    }
}

/* --- Tables --- */
html.dark-mode table {
    background: #1a1d23 !important;
    color: #f3f4f6 !important;
}

html.dark-mode th {
    background: #13161b !important;
    color: #9ca3af !important;
    border-color: #363c47 !important;
}

html.dark-mode td {
    border-color: #363c47 !important;
    color: #f3f4f6 !important;
}

html.dark-mode tr:hover {
    background: rgba(255, 255, 255, 0.03) !important;
}

@media (prefers-color-scheme: dark) {
    html.dark-mode-auto table {
        background: #1a1d23 !important;
        color: #f3f4f6 !important;
    }

    html.dark-mode-auto th {
        background: #13161b !important;
        color: #9ca3af !important;
        border-color: #363c47 !important;
    }

    html.dark-mode-auto td {
        border-color: #363c47 !important;
        color: #f3f4f6 !important;
    }

    html.dark-mode-auto tr:hover {
        background: rgba(255, 255, 255, 0.03) !important;
    }
}

/* --- Form Inputs --- */
html.dark-mode input[type="text"],
html.dark-mode input[type="email"],
html.dark-mode input[type="password"],
html.dark-mode input[type="number"],
html.dark-mode input[type="search"],
html.dark-mode textarea,
html.dark-mode select {
    background: #1a1d23 !important;
    border-color: #363c47 !important;
    color: #f3f4f6 !important;
}

html.dark-mode input::placeholder,
html.dark-mode textarea::placeholder {
    color: #9ca3af !important;
}

html.dark-mode input:focus,
html.dark-mode textarea:focus,
html.dark-mode select:focus {
    border-color: #4a9ed4 !important;
    outline-color: #4a9ed4 !important;
}

@media (prefers-color-scheme: dark) {
    html.dark-mode-auto input[type="text"],
    html.dark-mode-auto input[type="email"],
    html.dark-mode-auto input[type="password"],
    html.dark-mode-auto input[type="number"],
    html.dark-mode-auto input[type="search"],
    html.dark-mode-auto textarea,
    html.dark-mode-auto select {
        background: #1a1d23 !important;
        border-color: #363c47 !important;
        color: #f3f4f6 !important;
    }

    html.dark-mode-auto input::placeholder,
    html.dark-mode-auto textarea::placeholder {
        color: #9ca3af !important;
    }

    html.dark-mode-auto input:focus,
    html.dark-mode-auto textarea:focus,
    html.dark-mode-auto select:focus {
        border-color: #4a9ed4 !important;
        outline-color: #4a9ed4 !important;
    }
}

/* --- Modals --- */
html.dark-mode .modal-overlay {
    background: rgba(0, 0, 0, 0.7) !important;
}

html.dark-mode .modal,
html.dark-mode .modal-content,
html.dark-mode .user-modal {
    background: #1a1d23 !important;
    color: #f3f4f6 !important;
}

html.dark-mode .modal-header,
html.dark-mode .user-modal-header {
    border-bottom-color: #363c47 !important;
}

html.dark-mode .modal-footer {
    border-top-color: #363c47 !important;
}

@media (prefers-color-scheme: dark) {
    html.dark-mode-auto .modal-overlay {
        background: rgba(0, 0, 0, 0.7) !important;
    }

    html.dark-mode-auto .modal,
    html.dark-mode-auto .modal-content,
    html.dark-mode-auto .user-modal {
        background: #1a1d23 !important;
        color: #f3f4f6 !important;
    }

    html.dark-mode-auto .modal-header,
    html.dark-mode-auto .user-modal-header {
        border-bottom-color: #363c47 !important;
    }

    html.dark-mode-auto .modal-footer {
        border-top-color: #363c47 !important;
    }
}

/* --- Text Colors --- */
html.dark-mode h1,
html.dark-mode h2,
html.dark-mode h3,
html.dark-mode h4,
html.dark-mode h5,
html.dark-mode h6 {
    color: #f3f4f6 !important;
}

html.dark-mode p,
html.dark-mode span:not(.badge),
html.dark-mode label {
    color: #f3f4f6 !important;
}

html.dark-mode .text-muted,
html.dark-mode .text-secondary {
    color: #9ca3af !important;
}

@media (prefers-color-scheme: dark) {
    html.dark-mode-auto h1,
    html.dark-mode-auto h2,
    html.dark-mode-auto h3,
    html.dark-mode-auto h4,
    html.dark-mode-auto h5,
    html.dark-mode-auto h6 {
        color: #f3f4f6 !important;
    }

    html.dark-mode-auto p,
    html.dark-mode-auto span:not(.badge),
    html.dark-mode-auto label {
        color: #f3f4f6 !important;
    }

    html.dark-mode-auto .text-muted,
    html.dark-mode-auto .text-secondary {
        color: #9ca3af !important;
    }
}

/* --- Links --- */
html.dark-mode a:not(.btn):not(.menu-item):not(.demo-upgrade-btn) {
    color: #4a9ed4 !important;
}

html.dark-mode a:not(.btn):not(.menu-item):not(.demo-upgrade-btn):hover {
    color: #6bb3e0 !important;
}

@media (prefers-color-scheme: dark) {
    html.dark-mode-auto a:not(.btn):not(.menu-item):not(.demo-upgrade-btn) {
        color: #4a9ed4 !important;
    }

    html.dark-mode-auto a:not(.btn):not(.menu-item):not(.demo-upgrade-btn):hover {
        color: #6bb3e0 !important;
    }
}

/* --- Borders & Dividers --- */
html.dark-mode hr {
    border-color: #363c47 !important;
}

html.dark-mode .divider,
html.dark-mode .separator {
    background-color: #363c47 !important;
}

@media (prefers-color-scheme: dark) {
    html.dark-mode-auto hr {
        border-color: #363c47 !important;
    }

    html.dark-mode-auto .divider,
    html.dark-mode-auto .separator {
        background-color: #363c47 !important;
    }
}

/* --- Scrollbar (WebKit browsers) --- */
html.dark-mode ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

html.dark-mode ::-webkit-scrollbar-track {
    background: #13161b;
}

html.dark-mode ::-webkit-scrollbar-thumb {
    background: #363c47;
    border-radius: 4px;
}

html.dark-mode ::-webkit-scrollbar-thumb:hover {
    background: #4a5568;
}

@media (prefers-color-scheme: dark) {
    html.dark-mode-auto ::-webkit-scrollbar {
        width: 8px;
        height: 8px;
    }

    html.dark-mode-auto ::-webkit-scrollbar-track {
        background: #13161b;
    }

    html.dark-mode-auto ::-webkit-scrollbar-thumb {
        background: #363c47;
        border-radius: 4px;
    }

    html.dark-mode-auto ::-webkit-scrollbar-thumb:hover {
        background: #4a5568;
    }
}
