/*:root {
    --primary-color: #3F51B5;
    --primary-dark: #3F51B5;
    --primary-light: #007fff1f;
    #--bg-light: #f8f9fa;
    --bg-light: #007fff17;
    --text-dark: #212529;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    --header-height: 65px;
}*/

/*:root {
    --primary-color: #920205;
    --primary-dark: #920205;
    --primary-light: #ffcdd254;
    #--bg-light: #f8f9fa;
    --bg-light: #ffcdd254;
    --text-dark: #212529;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    --header-height: 65px;
}*/

:root {
    --primary-color: #009688;
    --primary-dark: #2196F3;
    --primary-light: #00968829;
    --bg-light: #0096880f;
    --text-dark: #212529;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    --header-height: 65px;
}



body {
    background-color: var(--bg-light);
    font-family: 'Inter', sans-serif;
    #padding-top: var(--header-height) !important;
    -webkit-font-smoothing: antialiased;
}

body.user-body {
    padding-top: var(--header-height) !important;
}

body.auth-body {
    padding-top: 15px;
}

/* Header/Navbar */
.navbar-app {
    background-color: var(--primary-color);
    color: white;
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-app .navbar-brand {
    color: white;
    font-weight: 600;
    font-size: 1.2rem;
}

.navbar-app .btn-link {
    color: white;
    text-decoration: none;
}

/* Sidebar (Offcanvas) */
.offcanvas {
    width: 280px !important;
}

.sidebar-header {
    background-color: var(--primary-color);
    color: white;
    #background-color: white;
    background-color: var(--primary-light);
    color: var(--primary-color);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.app-logo {
    width: 60px;
    height: 60px;
    background: white;
    color: var(--primary-color);
    background: var(--primary-color);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 24px;
    margin-bottom: 10px;
}

.offcanvas .offcanvas-body .sidebar-menu a.active {
    color: #fff !important;
    font-weight: bold;
}

.offcanvas .offcanvas-body .sidebar-menu a.active i {
    color: #fff !important;
    font-weight: bold;
}

.offcanvas .offcanvas-body .sidebar-menu a.active:hover {
    background-color: var(--primary-light);
    color: var(--primary-color) !important;
}

.offcanvas .offcanvas-body .sidebar-menu a.active:hover i {
    background-color: var(--primary-light);
    color: var(--primary-color) !important;
}

.list-group-item.active {
    background-color: unset;
    border-color: unset;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.sidebar-menu .list-group-item {
    border: none;
    padding: 12px 20px;
    font-weight: 500;
    color: #444;
    display: flex;
    align-items: center;
    gap: 15px;
}

.sidebar-menu .list-group-item:hover {
    background-color: var(--primary-light);
    color: var(--primary-color) !important;
}

.sidebar-menu .list-group-item:hover i {
    background-color: var(--primary-light);
    color: var(--primary-color) !important;
}

.sidebar-menu i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

/* Dashboard Cards */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 5px 5px;
}

.dashboard-grid a i {
    color: var(--primary-color);
}

.dash-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: var(--card-shadow);
    text-decoration: none;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    position: relative;
    height: 140px;
}

.dash-card:active {
    transform: scale(0.98);
}

.dash-card-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.dash-card-title {
    font-weight: 600;
    font-size: 0.95rem;
}

.badge-soon {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #dc3545;
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Year/Subject Selection */
.section-header {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    margin: 15px;
    text-align: center;
    font-weight: 600;
}

.subject-item {
    background: white;
    margin: 0 15px 10px 15px;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
    text-decoration: none;
    color: var(--text-dark);
}

.subject-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 15px;
    font-size: 1.2rem;
}

.bg-orange {
    background-color: #fd7e14;
}

.bg-purple {
    background-color: #6f42c1;
}

.bg-green {
    background-color: #198754;
}

.subject-text {
    flex-grow: 1;
    font-weight: 600;
}

/* Topic List */
.topic-list .list-group-item {
    border-left: none;
    border-right: none;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topic-number {
    font-weight: normal;
    margin-right: 5px;
}

/* Quiz Interface */
.quiz-container {
    padding: 15px;
    padding-bottom: 80px;
    /* Space for fixed footer */
}

.timer-pill {
    background: white;
    border: 1px solid #ffc107;
    color: #d63384;
    padding: 8px 24px;
    border-radius: 50px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.question-text {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 25px;
    line-height: 1.5;
}

/* Quiz Option Styles Refined */
.option-card {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    background: white;
    transition: all 0.2s ease;
    position: relative;
    min-height: 70px;
}

.option-circle {
    width: 40px;
    height: 40px;
    background: #212529;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.option-text {
    flex-grow: 1;
    font-weight: 500;
    color: #212529;
    padding-right: 30px;
    font-size: 1rem;
    line-height: 1.3;
}

/* Selected State */
.option-card.selected {
    border-color: var(--primary-color);
    background-color: #e7f1ff;
}

.option-card.selected .option-circle {
    background-color: var(--primary-color);
}

/* Correct State */
.option-card.correct {
    border-color: #198754;
    background-color: #ffffff;
}

.option-card.correct .option-circle {
    background-color: #198754;
}

/* Incorrect State */
.option-card.incorrect {
    border-color: #dc3545;
    background-color: #ffffff;
}

.option-card.incorrect .option-circle {
    border-color: #dc3545;
    /* Maybe red border for circle? */
    background-color: #212529;
    /* Keep black as per typical design or red? Image not super clear but C circle looks black. */
}

.option-status-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
}

.quiz-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 15px;
    display: flex;
    gap: 15px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1020;
}



.stat-card {
    border: none;
    border-radius: 16px;
    padding: 12px;
    background: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: var(--transition);
}

.card-header {
    background-color: var(--primary-color) !important;
    color: #fff;
}

.stat-card h4 {
    color: #3f51b5 !important;
}

.stat-card i {
    font-size: 25px;
}

/* Auth Pages Styling */
.auth-container {
    min-height: calc(100vh - var(--header-height));
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    background-color: white;
}

.auth-logo {
    width: 100px;
    height: 100px;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: bold;
    margin: 0 auto 30px auto;
    box-shadow: 0 10px 20px rgba(13, 110, 253, 0.2);
}

.auth-form .form-control {
    border-radius: 12px;
    padding: 12px 15px;
    border-color: #e9ecef;
    background-color: #f8f9fa;
}

.auth-form .btn-auth {
    border-radius: 12px;
    padding: 12px;
    font-weight: 600;
    margin-top: 10px;
}

/* Question Palette Styling */
.palette-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    border: 1px solid #dee2e6;
    background: white;
    color: #444;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.palette-btn:hover {
    background-color: #f8f9fa;
    color: inherit;
}

.palette-btn.answered {
    background-color: #198754;
    color: white;
    border-color: #198754;
}

.palette-btn.not-answered {
    background-color: #dc3545;
    color: white;
    border-color: #dc3545;
}

.palette-btn.review {
    background-color: #ffc107;
    color: white;
    border-color: #ffc107;
}

.palette-btn.current {
    border-color: #dc3545;
    color: #dc3545;
    border-width: 2px;
}

.palette-legend {
    display: flex;
    justify-content: space-around;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.legend-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
    gap: 5px;
}

.legend-circle {
    width: 25px;
    height: 25px;
    border-radius: 50%;
}

.bg-answered {
    background-color: #198754;
}

.bg-not-ans {
    background-color: #dc3545;
}

.bg-review {
    background-color: #ffc107;
}

.palette-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-bottom: 30px;
    padding: 0 10px;
}

.btn-submit-exam {
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 15px;
    width: 100%;
    font-weight: 600;
    font-size: 18px;
    margin-top: 10px;
}

.modal-full-mobile {
    margin: 0;
    height: 100%;
}

.modal-full-mobile .modal-content {
    height: 100%;
    border-radius: 0;
}

.section-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #333;
}

.btn-primary {
	background: var(--primary-color);
}

.auth-container .form-label, .auth-container .text-primary {
	color: var(--primary-color) !important;
	font-weight: bold !important;
}

.auth-container .form-check-input {
	border: 1px solid var(--primary-color);
}

.auth-form .form-control, .auth-form .bg-light{
	border: 1px solid var(--primary-color) !important;
}

.auth-form .bg-light{
	background: #ccd4fe7d !important;
	padding: 10px 15px;
}

.auth-form i.bi {
	color: var(--primary-color);
}





.btn-sm {
    #font-size: 12px;
}





/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* ===== Chrome, Edge, Safari ===== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0,0,0,0.35);
}

/* ===== Firefox ===== */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.2) transparent;
}