/*---------------------------------------------------- Color------------------------- ------------*/


/* Dark mode overrides */
body.dark {
    --white: #0c0c0c;
    --white-two: #3c3c3c;
    --white-three: #8c8c8c;
    --primary-bg: #04C4C4;
    --black-one: #fff;
    --black-two: #cfcfcf;
    --black-three: #FCFBF9;
    --link-color: #ffe95c;

}

:root {

    --white: #fff;
    --white-two: #FCFBF9;
    --white-three: #cfcfcf;
    --primary-bg: #017E7E;
    --black-one: #0c0c0c;
    --black-two: #3c3c3c;
    --black-three: #8c8c8c;
    --link-color: #ff9d00;
}

/*---------------------------------------------------- Text Selection------------------------- ------------*/
::-moz-selection {
    /* Code for Firefox */
    background-color: var(--primary-color);
    color: var(--white);
}

::selection {
    background-color: var(--primary-color);
    color: var(--white);
}

/*---------------------------------------------------- Universal selector ------------------------- ------------*/

/* For Chrome, Safari and Edge */
::-webkit-scrollbar {
    display: none;
}

/* For Firefox */
html {
    scrollbar-width: none;
    /* hides scrollbar */
    -ms-overflow-style: none;
    /* IE and Edge */
    scroll-behavior: smooth;
}


* {
    padding: 0;
    margin: 0;
    font-family: "Noto Sans", sans-serif;

}

/* ✅ Disable text selection */
body {
    -webkit-user-select: none;
    /* Chrome, Safari */
    -moz-user-select: none;
    /* Firefox */
    -ms-user-select: none;
    /* IE/Edge */
    user-select: none;
    /* Standard */
    background-color: var(--white);
    color: var(--black-one);
}

.conSection {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container {
    width: 90vw;
}

h2 {
    font-size: 22px;
    font-weight: bold;

}

h2.title {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-bg);
    transition: all 0.3s ease-in-out;
}

p {
    font-size: 14px;
}



.navbar {
    position: fixed;
    left: 0;
    bottom: -1px;
    z-index: 999;
    width: 100%;
    border-top: 1px solid var(--white-three);
    background: var(--white);


}

/* Style the tab */
.navbar .tab {
    overflow: hidden;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
}

/* Style the buttons inside the tab */
.navbar .tab button {
    background-color: inherit;
    float: left;
    border: none;
    outline: none;
    cursor: pointer;
    color: var(--black-three);
    transition: 0.3s;
    font-size: 11px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 72px;
    padding: 4px 0 8px;
    text-transform: capitalize;
    border-radius: 0;
}

.navbar .tab button i {
    font-size: 22px;
    color: var(--black-three);
}



/* Create an active/current tablink class */
.navbar .tab button.active {
    color: var(--primary-bg);
    font-weight: 600;
    border-top: 3px solid var(--primary-bg);
}

.navbar .tab button.active i {
    color: var(--primary-bg);
}






/* Style the tab content */
.screens {
    display: none;
    width: 100%;
}

header {
    padding: 10px 0 6px;

}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo img {
    height: 56px;
    border: 1px solid var(--black-three);
    border-radius: 16px;
    overflow: hidden;
}

.logo h1 {
    font-size: 23px;
    color: var(--black-one);

}

.logo p {
    color: var(--black-two);
    font-size: 11px;
}

.homeCon {
    margin: 0 0 80px;
    min-height: 100vh;
}

.screenCon {
    margin: 20px 0 80px;
    min-height: 100vh;
}

.heading {

    margin: 16px 0 24px;
}

.heading h2 {
    margin-bottom: 10px;
    color: var(--primary-bg);
}

.heading h4 {
    color: var(--link-color);
}

/* Sticky class */
.stickyHeading {
    transition: all 0.3s ease-in-out;
}

.stickyHeading.sticky {
    margin: 0;
    position: fixed;
    top: 0px;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 999;
    background: var(--white);
    padding: 8px 0;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
}

.stickyHeading.sticky p {
    display: none;
}

.stickyHeading.sticky h2 {
    font-size: 20px;
    color: var(--primary-bg);
    margin-bottom: 0;
}

.heading .profileBtn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background-color: var(--primary-bg);
    border-radius: 100px;
}

.heading .profileBtn i {

    color: var(--white);
}

.card {
    padding: 10px 24px 24px;
    border-radius: 10px;
    margin: 16px 0;
    border: 1px solid var(--white-three);
    position: relative;
}

.grid2 .card {
    padding: 8px 12px 12px;
    border-radius: 5px;
}

.bgIcon {
    position: absolute;
    right: 16px;
    bottom: 30px;
    font-size: 52px;
    opacity: 0.5;

}

.bgIconSmall {

    position: absolute;
    right: 8px;
    bottom: 20px;
    font-size: 32px;

    opacity: 0.5;
}

.card h4 {
    margin: 16px 0 10px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
}

.card h2 {
    font-size: 30px;
}

.card p {
    margin: 8px 0;
    padding-left: 5px;
}

.primaryCard {
    background-color: #04c4c410;
    border-color: var(--primary-bg);
}

.primaryCard .bgIcon {
    color: var(--primary-bg);
}

.secondaryCard {
    background-color: #ff9d0011;
    border-color: var(--link-color);
}

.secondaryCard .bgIcon {
    color: var(--link-color);
}


.successCard {
    background-color: #daffdd;
    color: #000;
    border-color: #58db5a;
}

.successCard .bgIconSmall {
    color: #58db5a;
}

.dangerCard {
    background-color: #ffdada;
    color: #000;
    border-color: #db5858;
}

.dangerCard .bgIconSmall {
    color: #db5858;
}



.grid2 .card {
    margin: 0;
}

.grid2 .card h2 {
    font-size: 24px;
}

.card.cardLink {
    padding: 32px 20px 28px;
    border-radius: 8px;
}

.card.cardLink h3 {
    display: flex;
    align-items: end;
    gap: 20px;
    justify-content: space-between;
    font-weight: 300;
    font-size: 12px;
}

.callsCon {
    margin-top: 10px;
}

.item {
    display: flex;
    width: 100%;
    gap: 10px;
    align-items: center;
    margin: 10px 0;
    cursor: pointer;
}

.item .itemIcon {
    width: 54px;
    height: 54px;
    padding: 8px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2px;
    text-align: center;
    background-color: var(--primary-bg);
    color: var(--white);
}



.item .itemIcon i {
    color: var(--white);
    font-size: 36px;
}

.student.item {
    gap: 14px;
}

.student.item .itemIcon {
    border-radius: 100px;
    background-color: var(--black-two);
    width: 32px;
    height: 32px;
}

.student.item .itemIcon i {
    font-size: 16px;
}

.item .itemRight {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: calc(100% - 80px);
    border-bottom: 1px solid var(--white-three);
    padding: 6px 0 10px;
}

.student.item .itemRight {
    width: calc(100% - 40px);
    padding: 8px 0 10px;

}

.attendance.item .itemRight {
    width: 100%;
}

.markattendance {
    display: flex;
    gap: 18px;
    align-items: center;
}

.attendanceOption input {
    display: none;
}

.attendanceOption i {
    font-size: 22px;
    color: #adb5bd !important;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.2s;
}

.attendanceOption i:hover {
    transform: scale(1.1);
}

/* Selected states */
.attendanceOption input:checked+i.present {
    color: #198754 !important;
    /* modern green */
}

.attendanceOption input:checked+i.absent {
    color: #dc3545 !important;
    /* modern red */
}


.item:last-child {
    margin-bottom: 0;
}

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


.item .itemRight h5 {
    font-size: 18px;
    margin-bottom: 5px;
    font-weight: 500;
}

.item .itemRight p {
    font-size: 12px;
    padding-left: 0;
}

.item .itemRight i {
    color: var(--primary-bg);
}

.textSuccess {
    color: rgb(30, 130, 50);
}

.textDanger {
    color: rgb(255, 0, 60);
}

.callDetailsScreen {
    background-color: var(--white);
    position: fixed;
    right: 0;
    top: 0;
    z-index: 99999;
    height: 100vh;
    width: 0;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

.callDetailsScreen.active {
    width: 100vw;
    overflow: auto;
}

.callDetailsHead {
    width: 100%;
    background-color: var(--primary-bg);
    color: var(--white);
    padding: 32px 0 24px;
    text-align: center;
    position: relative;
    margin-bottom: 12px;


}

.studentDetailsScreen .callDetailsHead {
    background-color: var(--black-two);
}

.callDetailsHead .closeBtn {
    position: relative;
    left: 0;
    top: 0;
    width: 32px;
    height: 32px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white-three);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--primary-bg);
    cursor: pointer;

}

.studentDetailsScreen .callDetailsHead .closeBtn {
    color: var(--black-two);
}

.callDetailsHead h5 {
    font-size: 36px;
    font-weight: 200;
}

.callDetailsHead h6 {
    font-size: 17px;
    font-weight: 500;
}

.callDetailsCon {
    margin-bottom: 82px;
}

.studentDetailsCon p {
    margin-bottom: 10px;
    border-bottom: 1px solid var(--black-three);
    padding-bottom: 10px;
}

.studentDetailsCon a {
    display: block;
    color: var(--primary-bg);
    margin-bottom: 10px;
    border-bottom: 1px solid var(--black-three);
    padding-bottom: 10px;
    text-decoration: none;
}

.callDetailsScreen .patientInfo {
    margin: 20px 0;
}

.callDetailsScreen .patientInfo p {
    margin: 8px 0;
}

.grid2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 10px 0;
}

button {
    border: none;
    padding: 18px 10px;
    border-radius: 6px;
    background-color: var(--primary-bg);
    color: var(--white);
    font-weight: 500;
    width: 100%;
    cursor: pointer;
    font-size: 16px;
    text-transform: uppercase;
}

.btnSuccess {
    background-color: rgb(30, 130, 50);
}

.btnWarning {
    background-color: var(--link-color);
}

.btnDark {
    background-color: var(--black-two);
    color: var(--white);
}

input {
    background-color: var(--white-two);
    color: var(--black-two);
    padding: 16px;
    border-radius: 10px;
    border: none;
    width: calc(100% - 36px);
    font-size: 16px;
    border: 1px solid var(--white-three);
}

input:focus {
    outline: none;
    border: 1px solid var(--primary-bg);
}

select {
    background-color: var(--white-two);
    color: var(--black-two);
    padding: 16px;
    border-radius: 10px;
    width: 100%;
    font-size: 16px;
    border: 1px solid var(--white-three);
}

select:focus {
    outline: none;
    border: 1px solid var(--primary-bg);
}

.filterSec {
    margin: 20px 0;
}


.myModal {
    width: 100vw;
    height: 0;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: fixed;
    bottom: 0;
    left: 0;
    height: 0;
    overflow: hidden;
    z-index: 999999;
    transition: all 0.2s ease-in-out;
}



.myModalCon {
    position: absolute;
    width: 100%;
    height: fit-content;
    background-color: var(--white);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    left: 0;
    bottom: 0;
    padding: 48px 0 32px;
    transition: all 0.2s ease-in-out;
    box-shadow: rgba(14, 30, 37, 0.12) 0px 2px 4px 0px, rgba(14, 30, 37, 0.32) 0px 2px 16px 0px;
}

.addStudentModal .myModalCon {
    padding-bottom: 0;
}

.addStudentModal .myModalCon form {

    overflow: auto;
    height: 70vh;
}



.addGroupModal.activemodal {
    height: 100vh;
}

.addStudentModal.activeRefer {
    height: 100vh;
}



.myModalCon .crossBtn {
    position: absolute;
    right: 32px;
    top: 32px;
    cursor: pointer;
}

.myModalCon h2 {
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--white-three);
}

.myModalCon input,
.myModalCon select {
    margin: 5px 0;
}

.myModalCon label {
    display: block;
    padding-top: 16px;
}

.myModalCon button {
    margin-top: 8px;
}

.myModalCon textarea {
    background-color: var(--white-two);
    color: var(--black-two);
    padding: 10px 16px;
    border-radius: 10px;
    border: none;
    width: calc(100% - 32px);
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    margin: 12px 0 16px;
    font-size: 16px;
    border: 1px solid var(--white-two);
}

.myModalCon textarea:focus {
    outline: none;
    border: 1px solid var(--primary-bg);
}

.card.notificationCard {
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    box-shadow: rgba(17, 17, 26, 0.05) 0px 1px 0px, rgba(17, 17, 26, 0.1) 0px 0px 8px;
}

.notificationCard h6 {
    font-weight: 600;
    color: var(--link-color);
}

.notificationCard h5 {
    font-weight: 400;
    margin-top: 6px;
}

.notificationCard i {
    color: rgb(255, 0, 60);
    cursor: pointer;
}

.profileCard {
    padding: 24px 20px;
}

.profileCard p {
    padding-left: 0;
    border-bottom: 1px solid var(--black-three);
    padding-bottom: 10px;

}

.profileCard a {
    color: var(--primary-bg);
    cursor: pointer;
    border-bottom: 1px solid var(--black-three);
    padding-bottom: 10px;
    display: block;
}

.profileCard input {
    margin: 6px 0 0;
}

.profileCard h3 {
    margin-bottom: 16px;
}

.profileCard form button {
    margin-top: 16px;
}

button.logoutBtn {
    width: fit-content;
    background-color: rgb(255, 0, 60);
    padding: 8px 14px;
    margin-top: 16px;
    font-size: 14px;

}

.loginSec {
    height: 100vh;
    justify-content: center;
    overflow: hidden;

}

.loginSec .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.loginSec .logo {
    margin-bottom: 48px;
}



.loginSec form {
    width: 90%;
    padding-bottom: 24px;
}

.loginSec form input {
    margin-bottom: 16px;
    width: calc(100% - 60px);
    padding-left: 40px;
}

.inputGroup {
    position: relative;
}

.inputGroup i {
    position: absolute;
    top: 20px;
    left: 12px;
    color: #888;
    font-size: 16px;
}

.loginSec form button {
    margin-top: 20px;

}

.loadingSec {
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999999;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.loadingSec img {
    height: 100px;
    padding-bottom: 100px;
}

/* From Uiverse.io by mrhyddenn */
.spinner {
    font-size: 28px;
    position: relative;
    display: inline-block;
    width: 1em;
    height: 1em;
    padding-top: 100px;
}

.spinner.center {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
}

.spinner .spinner-blade {
    position: absolute;
    left: 0.4629em;
    bottom: 0;
    width: 0.074em;
    height: 0.2777em;
    border-radius: 0.0555em;
    background-color: transparent;
    -webkit-transform-origin: center -0.2222em;
    -ms-transform-origin: center -0.2222em;
    transform-origin: center -0.2222em;
    animation: spinner-fade9234 1s infinite linear;
}

.spinner .spinner-blade:nth-child(1) {
    -webkit-animation-delay: 0s;
    animation-delay: 0s;
    -webkit-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    transform: rotate(0deg);
}

.spinner .spinner-blade:nth-child(2) {
    -webkit-animation-delay: 0.083s;
    animation-delay: 0.083s;
    -webkit-transform: rotate(30deg);
    -ms-transform: rotate(30deg);
    transform: rotate(30deg);
}

.spinner .spinner-blade:nth-child(3) {
    -webkit-animation-delay: 0.166s;
    animation-delay: 0.166s;
    -webkit-transform: rotate(60deg);
    -ms-transform: rotate(60deg);
    transform: rotate(60deg);
}

.spinner .spinner-blade:nth-child(4) {
    -webkit-animation-delay: 0.249s;
    animation-delay: 0.249s;
    -webkit-transform: rotate(90deg);
    -ms-transform: rotate(90deg);
    transform: rotate(90deg);
}

.spinner .spinner-blade:nth-child(5) {
    -webkit-animation-delay: 0.332s;
    animation-delay: 0.332s;
    -webkit-transform: rotate(120deg);
    -ms-transform: rotate(120deg);
    transform: rotate(120deg);
}

.spinner .spinner-blade:nth-child(6) {
    -webkit-animation-delay: 0.415s;
    animation-delay: 0.415s;
    -webkit-transform: rotate(150deg);
    -ms-transform: rotate(150deg);
    transform: rotate(150deg);
}

.spinner .spinner-blade:nth-child(7) {
    -webkit-animation-delay: 0.498s;
    animation-delay: 0.498s;
    -webkit-transform: rotate(180deg);
    -ms-transform: rotate(180deg);
    transform: rotate(180deg);
}

.spinner .spinner-blade:nth-child(8) {
    -webkit-animation-delay: 0.581s;
    animation-delay: 0.581s;
    -webkit-transform: rotate(210deg);
    -ms-transform: rotate(210deg);
    transform: rotate(210deg);
}

.spinner .spinner-blade:nth-child(9) {
    -webkit-animation-delay: 0.664s;
    animation-delay: 0.664s;
    -webkit-transform: rotate(240deg);
    -ms-transform: rotate(240deg);
    transform: rotate(240deg);
}

.spinner .spinner-blade:nth-child(10) {
    -webkit-animation-delay: 0.747s;
    animation-delay: 0.747s;
    -webkit-transform: rotate(270deg);
    -ms-transform: rotate(270deg);
    transform: rotate(270deg);
}

.spinner .spinner-blade:nth-child(11) {
    -webkit-animation-delay: 0.83s;
    animation-delay: 0.83s;
    -webkit-transform: rotate(300deg);
    -ms-transform: rotate(300deg);
    transform: rotate(300deg);
}

.spinner .spinner-blade:nth-child(12) {
    -webkit-animation-delay: 0.913s;
    animation-delay: 0.913s;
    -webkit-transform: rotate(330deg);
    -ms-transform: rotate(330deg);
    transform: rotate(330deg);
}

@keyframes spinner-fade9234 {
    0% {
        background-color: #69717d;
    }

    100% {
        background-color: transparent;
    }
}

.logoFlex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.toggleColor {
    cursor: pointer;
    color: var(--black-one);
}

.myflex {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
}

.myflex .toggleColor {
    margin-top: 8px;
}


/* view image modal */

.studentDetailsScreen {
    display: none;
}

.studentDetailsScreen.active {
    display: block;
}
