:root {
	--blue: #0542db;
	--light-blue: #B6DBF6;
	--dark-blue: #0b5ed7;
	--grey: #f2f2f2;
}


.printable {
    display: none;
  }
  @media print {
   .no-print, .navbar, .footer {
       display: none;
    }
    .printable {
       display: block;
    }

    .pagebreak { page-break-after: always; }
}

.dashboard-select{
    background-color: #0542DB;
    color: #FFFFFF;
    text-align: center;
    font-weight: 800;
}

.float-right{
    float: right;
}

#studentTable_wrapper th:before,#studentTable_wrapper th:after{
    opacity: 0 !important;
}

.scanned td:nth-child(even) {
    background: #94edc0 !important;
}

.scanned td:nth-child(odd) {
    background: #26de81 !important;
}

.ongoing td:nth-child(even) {
    background: #eee6c9 !important;
}

.ongoing td:nth-child(odd) {
    background: #feeeae !important;
}


.complete td:nth-child(even) {
    background: #eed0c9 !important;
}

.complete td:nth-child(odd) {
    background: #febeae !important;
}

.btn-small{
    font-size:12px;
    padding: 1px 10px;
}

.select-option-dropdown .dropdown-menu{
    width:100% !important;
}

.nav-settings a:after{
    display:none;
}

.nav-settings a i.bi{
    font-size: 24px;
}

.nav-settings a.nav-link{
    padding:0px;
}

.nav-settings .dropdown-menu{
    right:0 !important;
    left:unset !important;
}

.text-yl{
    color:#ff9100;
}

a.nav-link.nav-custom{
    margin: 12px 20px 0px 20px;
}

@media (max-width: 768px) {

    a.nav-link.nav-custom{
        margin: 12px 0px 0px 0px;
    }
}
.campus-item, .campus-btn-item, .dataTables_info{
    font-family: "Open Sans", sans-serif !important;
    font-weight: 600;
}


.upload-section .image-container{
    width: 90%;
    margin: 0 auto 30px auto;
}
.upload-section .image-container img{
    display: block;
    position: relative;
    max-width: 100%;
    max-height: 400px;
    margin: auto;
}
.upload-section figcaption{
    margin: 20px 0 30px 0;
    text-align: center;
    color: #2a292a;
}
.upload-section input[type="file"]{
    display: none;
}
.upload-section label{
    display: block;
    position: relative;
    background-color: #025bee;
    color: #ffffff;
    font-size: 18px;
    text-align: center;
    width: 300px;
    padding: 18px 0;
    border-radius: 5px;
    margin: auto;
    cursor: pointer;
}

.teachers-dashboard, .staff-dashboard{
    min-height: 80vh;
}

#studentTable td{
    padding:5px 30px !important;
}

/* Add a loading overlay to cover the teachers-dashboard container */
.container.dashboard.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7); /* semi-transparent white background */
    z-index: 999; /* place the overlay on top of the dashboard container */
}

/* Add a loading spinner */
.container.dashboard.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 4px solid #ccc;
    border-top: 4px solid #333;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite; /* add a simple rotation animation */
}

/* Animation for the loading spinner */
@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.img-container {
	max-width: 400px;
	width: 100%;
	background: #fff;
	padding: 20px;
}
.img-area {
	position: relative;
	width: 100%;
	height: 200px;
	background: var(--grey);
	margin-bottom: 10px;
	border-radius: 0px;
	overflow: hidden;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
    cursor: pointer;
    transition: transform .5s;
}
.img-area:hover {
    transform: scale(1.1);
  }
.img-area .icon {
	font-size: 100px;
}
.img-area h3 {
	font-size: 20px;
	font-weight: 500;
	margin-bottom: 6px;
}
.img-area p {
	color: #999;
}
.img-area p span {
	font-weight: 600;
}
.img-area img {
	position: absolute;
	top: 0;
	left: 10px;
	width: 200px;
	height: 100%;
	object-fit: cover;
	object-position: center;
	z-index: 100;
}
.img-area::before {
	content: attr(data-img);
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, .5);
	color: #fff;
	font-weight: 500;
	text-align: center;
	display: flex;
	justify-content: center;
	align-items: center;
	pointer-events: none;
	opacity: 0;
	transition: all .3s ease;
	z-index: 200;
}
.img-area.active:hover::before {
	opacity: 1;
}
.select-image {
	display: block;
	width: 100%;
	padding: 8px 0;
	border-radius: 5px;
	background: var(--blue);
	color: #fff;
	font-weight: 500;
	font-size: 16px;
	border: none;
	cursor: pointer;
	transition: all .3s ease;
}
.select-image:hover {
	background: var(--dark-blue);
}

.header-sm-logo{
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border:2px solid #DDD
}

.header-no-logo{
    display: inline-block;
    border-radius: 50%;
    color: #FFF;
    background-color: #0b5ed7;
    padding: 8px 14px;
    font-size: 14px;
}

.custom-dropdown-header{
    min-width: 400px;
}

.header-dropdown-logo .header-no-logo{
    margin-top: 6px !important;
}

.custom-paginate{
    font-family: "Open Sans", sans-serif;
}

.custom-select-dashboard{
    font-family: "Open Sans", sans-serif;
}

.progress-completed{
    font-family: "Open Sans", sans-serif;
}

.custom-spinner-border{
    --bs-spinner-width: 1rem;
    --bs-spinner-height: 1rem;
}

.form-select{
    font-family: "Open Sans", sans-serif;
}


.btn-file {
    position: relative;
    overflow: hidden;
}

.btn-file input[type=file] {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 100%;
    min-height: 100%;
    font-size: 100px;
    text-align: right;
    filter: alpha(opacity=0);
    opacity: 0;
    outline: none;
    background: white;
    cursor: inherit;
    display: block;
}

.school-img {
    width: 200px;
    height: 200px;
    position: relative;
    overflow: hidden;
    object-position: center;
}

.image-cropper {
    text-align: center;
    margin-top: 20px;
}

.progress {
    position: relative;
    height: 25px;
}

.progress>.progress-type {
    position: absolute;
    left: 0px;
    font-weight: 800;
    padding: 3px 30px 2px 10px;
    color: rgb(255, 255, 255);
    background-color: rgba(25, 25, 25, 0.2);
}

.progress>.progress-completed {
    position: absolute;
    right: 0px;
    font-weight: 800;
    padding: 3px 10px 2px;
}

/* Target even rows and alternate columns */
#groupStudentsTable td:nth-child(even) {
    background-color: #d3d3d3;
    /* Lighter shade than #DDD */
    font-weight: bold;
}

/* Target odd rows and alternate columns */
#groupStudentsTable td:nth-child(odd) {
    background-color: #ebebeb !important;
    /* Same as the first column background */
    font-weight: bold;
}

#campus-IUD {
    min-width: 160px;
}

.dataTable tr:hover td,
.dataTable tr.selected td {
    border-top: 2px solid #87BAFF !important;
}

.error {
    color: #dc3545 !important;
}

@media print {
    @page {
        size: landscape
    }

    .modal-backdrop {
        display: none;
    }
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    display: none;
}

.loading-overlay.active {
    display: flex;
}


.main-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    display: none;
}

.main-loading.active {
    display: flex;
}

.main-content{
    min-height: 94vh;
}
