@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&family=Sankofa+Display&display=swap');
html,body,h1,h2,h3,h4,p,div,span,ul,li,a{
	direction: ltr;
}
body {
	padding-top: 70px;
    height: 100% 100vh; /* Full height of the viewport */
    color: #000;
	font-family: 'Roboto';
	font-size: 1rem;
    
}


body a {
	color: #003366;
	text-decoration: none;
}
body a:hover {
	text-decoration: underline;
	color:#ed1c24;
	background: rgba(0, 123, 255, 0.2);
}

form {
	width: 100%;
}

/* eframe */
.topbar-area {
    background-color: #003366; /* Deep Blue */
    height: 5rem; /* Match logo area height */
	filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}
.topbar-text {
    font-size: 1.2rem;
    color: #ffffff;
}
.topbar-area .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff;
}
.topbar-area .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.logo-bg {
    width: 229px;
	background-color: #abe2ff; /* same as sidebar blue */
    height: 5rem; /* match navbar height */
}
.logo-bg img {
    max-height: 100px;
}
/* eframe */

.navbar-brand {
    padding-top: 0;   /* reduce top padding */
    padding-bottom: 0; /* reduce bottom padding */
    height: auto;           /* let it shrink naturally */
    line-height: 1;         /* tighten text spacing */
}
.navbar-brand img {
    height: 70px;    /* or whatever height you want */
    width: auto;
}
/* ===== Sidebar Container ===== */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 230px;
    padding-top: 70px;
    overflow-y: auto;
    background: linear-gradient(180deg, #abe2ff 0%, #e6f7ff 100%);
    box-shadow: 4px 0 20px rgba(0,0,0,0.1);
    border-right: 2px solid #87ceeb;
    transition: transform 0.28s ease;
    z-index: 999;
}
.sidebar .nav-link {
    font-size: 1.2rem;
	display: flex;
    align-items: center;
    font-weight: 600;
    /*padding: 12px 18px;*/
    color: #000;
    border-radius: 6px;
    transition: all 0.3s ease;
}
.sidebar .nav-link:hover {
    background: rgba(0, 123, 255, 0.2);
    color: #0056b3 !important;
    width: 92%;
}
.sidebar .nav-link.active {
    background: rgba(0, 123, 255, 0.3);
    color: #003366 !important;
    font-weight: 700;
}

.sidebar-icon {
    width: 2rem;
    height: 2rem;
    margin-right: 0.5rem;
	margin-left: 1rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}
/* ===== Submenu Items ===== */
.sidebar .collapse-item {
    font-size: 1rem; /* Keep submenu smaller */
    font-weight: 500;
    padding: 10px 15px;
    display: block;
}

/* Submenu icons (if any) */
.sidebar .collapse-item i {
    font-size: 1.2rem;
    margin-right: 6px;
}

/* Hide sidebar on mobile (by shifting left) */
@media (max-width: 768px) {
    .sidebar {
        z-index: 1050;
		background: rgba(190, 239, 254, 1);
		transform: translateX(-100%);
        width: 250px; /* narrower on mobile */
    }
    .sidebar.active {
        transform: translateX(0); /* show sidebar */
    }
    .content {
        margin-left: 0 !important; /* remove gap on mobile */
    }
}

/* ===== Submenu Items ===== */
.sidebar .collapse-item {
    font-size: 1rem; /* Keep submenu smaller */
    font-weight: 500;
    padding: 10px 15px;
    display: block;
}

/* Submenu icons (if any) */
.sidebar .collapse-item i {
    font-size: 1.2rem;
    margin-right: 6px;
}

/* ===== Content Area ===== */
.content {
    margin-left: 16.6667%; /* Match sidebar width */
    padding: 20px;
}

/* ===== Navbar Toggler (3 dots) without button border ===== */
.navbar-toggler {
    border: none;
    background: none;
    padding: 0;
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: none;
}

.navbar-toggler i {
    font-size: 2rem;
}

.content {
    margin-left: 16.6667%; /* same width as sidebar */
}
/* Style for Bootstrap 5 Submenu */
.dropdown-submenu {
    position: relative;
}
.dropdown-submenu .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -1px;
    display: none;
    position: absolute;
}
.dropdown-submenu:hover > .dropdown-menu {
    display: block;
}

.lbl {
	font-weight: bold;
}
.textbox {
	border: 1px solid #1788c4;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}
.reversed-header {
    background-color: #4274af; /* dark gray */
    color: #ffffff;            /* white text */
    font-weight: bold;
    letter-spacing: 0.5px;
}

/* Full screen loading wrapper */
#loading {
	position: fixed;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	background-color: white;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999; /* Makes sure it's on top of other elements */
}
/* Image styling (optional) */
#loading img {
	width: 100px; /* You can adjust this based on your image */
	height: 100px;
}
/* Page content starts hidden */
#content {
	display: none;
}

.btn{
	border-radius:5px;
	padding:5px 15px;
}
.btn-light {
	color:#1788c4;
}
.btn-light a:hover {
	color:#1788c4;
	background-color:#1788c4;
}
.btn-default{
	background-color:#1788c4;
	color:#fff;
}
.btn-default:hover{
	color:#000;
	background-color:#eee;
	border:1px solid #1788c4;
}
.btn-secondary{
	background-color:#999;
	color:#fff;
}
.btn-secondary:hover{
	color:#000;
	background-color:#eee;
	border:1px solid #999;
}

.container{
	padding:5px;
}

img{
	
	border:0px;
}
	
	
.question_container {
	padding:4px;
	overflow-y:auto;
}

.option_container {
	padding:4px;
	overflow-y:auto;
}
.op {
	border-bottom:1px solid #eeeeee;
	padding:5px;
}
.question_div {
	display:none;
}
.footer_buttons {
	position:fixed;
	bottom:0px;
	background:#ffffff;
	width:100%;
	height:80px;
	padding:4px;
	border-top:1px solid #dddddd;
}
	
.qbtn {
	cursor:pointer;
	width:40px;
	height:30px;
	border-radius:0px;
	background-color:#212121;
	color:#ffffff;
	float:left;
	font-size:15px;
	padding:2px;
	text-align:center;
	margin:5px;
}
.save_answer_signal {
	float:right; 
	width:6px;
	height:6px;
	border-radius:2px;
	background-color:#666666;
	margin:2px;
}


.pagination {
	display: inline-block;
	padding-left: 0;
	margin: 10px 0;
	border-radius: 3px;
}
.pagination > li {
	display: inline;
}
.pagination > li > a,
.pagination > li > span {
	position: relative;
	float: left;
	padding: 6px 12px;
	line-height: 1.42857143;
	text-decoration: none;
	color: #373e4a;
	background-color: #fff;
	border: 1px solid #ddd;
	margin-left: -1px;
}
.pagination > li:first-child > a,
.pagination > li:first-child > span {
	margin-left: 0;
	border-bottom-left-radius: 3px;
	border-top-left-radius: 3px;
}
.pagination > li:last-child > a,
.pagination > li:last-child > span {
	border-bottom-right-radius: 3px;
	border-top-right-radius: 3px;
}
.pagination > li > a:hover,
.pagination > li > span:hover,
.pagination > li > a:focus,
.pagination > li > span:focus {
	z-index: 2;
	color: #818da2;
	background-color: #eeeeee;
	border-color: #ddd;
}
.pagination > .active > a,
.pagination > .active > span,
.pagination > .active > a:hover,
.pagination > .active > span:hover,
.pagination > .active > a:focus,
.pagination > .active > span:focus {
	z-index: 3;
	color: #fff;
	background-color: #373e4a;
	border-color: #949494;
	cursor: default;
}
.pagination > .disabled > span,
.pagination > .disabled > span:hover,
.pagination > .disabled > span:focus,
.pagination > .disabled > a,
.pagination > .disabled > a:hover,
.pagination > .disabled > a:focus {
	color: #999999;
	background-color: #fff;
	border-color: #ddd;
	cursor: not-allowed;
}
.pagination-lg > li > a,
.pagination-lg > li > span {
	padding: 10px 16px;
	font-size: 15px;
	line-height: 1.3333333;
}
.pagination-lg > li:first-child > a,
.pagination-lg > li:first-child > span {
	border-bottom-left-radius: 3px;
	border-top-left-radius: 3px;
}
.pagination-lg > li:last-child > a,
.pagination-lg > li:last-child > span {
	border-bottom-right-radius: 3px;
	border-top-right-radius: 3px;
}
.pagination-sm > li > a,
.pagination-sm > li > span {
	padding: 5px 10px;
	font-size: 11px;
	line-height: 1.5;
}
.pagination-sm > li:first-child > a,
.pagination-sm > li:first-child > span {
	border-bottom-left-radius: 2px;
	border-top-left-radius: 2px;
}
.pagination-sm > li:last-child > a,
.pagination-sm > li:last-child > span {
	border-bottom-right-radius: 2px;
	border-top-right-radius: 2px;
}

/* Footer Styles */
footer {
	position:relative;
    margin:0;
	padding:7px;
	background-color:#1788c4;
	color:#fff;
	text-align:center;
	font-weight:normal;
}
footer a {
	color:#fff;
	text-decoration:none;
}
footer a:hover {
	color:#ed1c24;
	text-decoration:underline;
}

.course-group {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.course-img {
    border: 1px solid #ccc;
    transition: transform 0.4s ease;
}

.course-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    border-radius: 8px;
    z-index: 1;
}

.course-group:hover .course-bg {
    opacity: 0.7;
    visibility: visible;
}

.course-group:hover .course-img {
    transform: scale(1.05);
}

/* Progress Stat Cards */
.progress-stat-card {
    padding: 1.25rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-left: 4px solid;
}

.progress-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.border-left-success {
    border-left-color: #28a745 !important;
}

.border-left-warning {
    border-left-color: #ffc107 !important;
}

.border-left-primary {
    border-left-color: #007bff !important;
}

.progress-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.progress-stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.progress-stat-label {
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Progress Section Styles */
.progress-section {
    padding-right: 1rem;
}

/* Completion Info Styles */
.completion-info {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 0.5rem;
    border: 1px solid #dee2e6;
}

.completion-text {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
}

.completion-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #28a745;
}

.completion-separator {
    font-size: 1.2rem;
    font-weight: 600;
    color: #6c757d;
    margin: 0 0.25rem;
}

.completion-total {
    font-size: 1.2rem;
    font-weight: 600;
    color: #495057;
}

.completion-label {
    display: block;
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
    margin-top: 0.25rem;
    text-transform: lowercase;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .completion-info {
        margin-top: 1rem;
        padding: 0.75rem;
    }
    
    .completion-text {
        font-size: 1rem;
    }
    
    .completion-number {
        font-size: 1.3rem;
    }
}