:root {
    /* ~ --------------- Colors --------------- ~ */
    --primary-color: 0, 128, 128;
    --primary-color-hover: 6, 88, 88;
    --link-text-color: 108, 117, 125;
    --red-color: 242, 58, 60;
    --red-color-hover: 165, 37, 39;

    /* ~ --------------- Authentication --------------- ~ */
    --gradient-color-1: rgb(0, 128, 128);
    --gradient-color-2: rgb(0, 209, 209);
    --gradient-color-3: rgb(97, 239, 255);

    /* ~ --------------- Navbar --------------- ~ */
    --navbar-height: 55px;
    --navbar-backgrnd-color: 255, 255, 255;
    --navbar-border-color: 222, 226, 230;

    /* ~ --------------- Sidebar --------------- ~ */
    --sidebar-width: 200px;
    --sidebar-backgrnd-color: 255, 255, 255;

    /* ~ --------------- Body --------------- ~ */
    --body-padding: 20px;
    --body-backgrnd-color: #f8f9fa;

    /* ~ ---------------- Forms ---------------- ~ */
    --form-background-color: white;
    --label-color: gray;
    --input-color: black;
    --input-border-color: gray;
    --placeholder-color: gray;
    --error-color: #f23a3c;
    --submit-btn-color: #008080;
    --submit-btn-color-hover: #024d4d;
    --delete-btn-color: #f23a3c;
    --delete-btn-color-hover: #a52527;
    --update-btn-color: #ebaf0b;
    --update-btn-color-hover: #9e7606;
    --cancel-btn-color: #999999;
    --cancel-btn-color-hover: #7a7a7a;
}

@font-face {
    font-family: "Lato";
    src: url("../assets/fonts/Lato-Black.ttf") format("truetype");
    src: url("../assets/fonts/Lato-BlackItalic.ttf") format("truetype");
    src: url("../assets/fonts/Lato-Bold.ttf") format("truetype");
    src: url("../assets/fonts/Lato-BoldItalic.ttf") format("truetype");
    src: url("../assets/fonts/Lato-Italic.ttf") format("truetype");
    src: url("../assets/fonts/Lato-Light.ttf") format("truetype");
    src: url("../assets/fonts/Lato-LightItalic.ttf") format("truetype");
    src: url("../assets/fonts/Lato-Regular.ttf") format("truetype");
    src: url("../assets/fonts/Lato-Thin.ttf") format("truetype");
    src: url("../assets/fonts/Lato-ThinItalic.ttf") format("truetype");
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;

    font-family: "Lato-Black", sans-serif;
    /* overflow: hidden; */
}

html {
    font-size: 11px;
}

body {
    background-color: var(--body-backgrnd-color);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.main {
    width: 100%;
    height: calc(100vh - var(--navbar-height));

    margin-top: calc(var(--navbar-height));
    padding-top: var(--body-padding);
    padding-left: calc(var(--sidebar-width) + var(--body-padding));
    padding-right: var(--body-padding);
    padding-bottom: var(--body-padding);

    overflow: auto;
}

/* ~ ------------------------------- Forms ------------------------------- ~ */

.popup-holder {
    width: 100%;
    height: 100vh;

    display: none;

    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;

    overflow-y: scroll;

    background-color: rgba(0, 0, 0, 0.2);
}

.popup-holder.active {
    display: block;
}

form.custom-form {
    width: 100%;
    height: auto;

    display: flex;
    flex-direction: column;
    gap: 20px;

    position: relative;

    padding: 15px;
    margin-bottom: 20px;

    border-radius: 3px;

    background-color: var(--form-background-color);
}

form.custom-form.popup {
    width: 90%;
    height: auto;

    margin: 10px auto;

    -webkit-box-shadow: 0px 3px 5px 0px rgb(0, 0, 0, 0.5);
    -moz-box-shadow: 0px 3px 5px 0px rgba(0, 0, 0, 0.5);
    box-shadow: 0px 3px 5px 0px rgba(0, 0, 0, 0.5);
}

form.custom-form.popup .fa.fa-times {
    position: absolute;
    top: 15px;
    right: 15px;

    font-size: 1.4rem;
    color: rgb(var(--primary-color));

    transition-duration: 0.3s;
}

form.custom-form.popup .fa.fa-times:hover {
    cursor: pointer;
    color: rgb(var(--primary-color-hover));
}

.main .custom-container h1,
form.custom-form h1 {
    color: rgb(var(--primary-color));
    text-transform: capitalize;
}

form.custom-form .form-row {
    width: 100%;
    height: auto;

    display: flex;
    justify-content: start;
    gap: 20px;
    flex-wrap: wrap;
}

form.custom-form .form-row .input-holder {
    width: auto;
    height: auto;

    display: flex;
    flex-direction: column;
}

form.custom-form .form-row .input-holder.hidden {
    display: none;
}

form.custom-form .form-row.right {
    justify-content: end;
}

form.custom-form .form-row .input-holder label {
    text-transform: capitalize;
    color: var(--label-color);
}

form.custom-form .form-row .input-holder label.mandatory::after {
    content: " *";
    color: #f23a3c;
    font-weight: 600;
}

form.custom-form .form-row .input-holder input,
form.custom-form .form-row .input-holder select {
    width: 175px;
    min-width: 175px;
    height: 30px;

    border: 1px solid var(--input-border-color);
    border-radius: 3px;
    outline: none;

    color: var(--input-color);
}

form.custom-form .form-row .input-holder select {
    text-transform: capitalize;
}

form.custom-form .form-row .input-holder select:hover {
    cursor: pointer;
}

form.custom-form .form-row .input-holder input {
    padding-left: 5px;
}

form.custom-form .form-row .input-holder input.disabled {
    background-color: rgba(128, 128, 128, 0.2);
    pointer-events: none;
    text-transform: capitalize;
}

form.custom-form .form-row .input-holder input::placeholder {
    color: var(--placeholder-color);
    text-transform: capitalize;
}

form.custom-form .form-row .input-holder textarea {
    width: 300px;
    height: 175px;

    padding: 5px;

    resize: none;

    border: 1px solid var(--input-border-color);
    border-radius: 3px;
    outline: none;

    color: var(--input-color);
}

form.custom-form .form-row .input-holder textarea::-webkit-scrollbar {
    width: 3px;
    background-color: rgba(128, 128, 128, 0.4);
}

form.custom-form .form-row .input-holder textarea::-webkit-scrollbar-thumb {
    width: 3px;
    border-radius: 25px;
    background-color: gray;
}

form.custom-form .form-row .input-holder .error {
    border: 1px solid var(--error-color);
}

form.custom-form .form-row .input-holder .error-holder {
    width: fit-content;
    max-width: 100%;
    height: auto;

    display: none;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 3px;

    margin-top: 5px;

    border-radius: 3px;

    background-color: var(--error-color);
}

form.custom-form .form-row .input-holder .error-holder.active {
    display: flex;
}

form.custom-form .form-row .input-holder .error-holder i {
    font-size: 10px;
    color: white;
}

form.custom-form .form-row .input-holder .error-holder span {
    font-size: 10px;
    color: white;
}

form.custom-form .form-row .input-holder .error-holder span::first-letter {
    text-transform: capitalize;
}

form.custom-form .form-row .input-holder input[type="submit"] {
    text-transform: capitalize;
    border: none;
    color: white;
    transition-duration: 0.3s;
}
form.custom-form .form-row .input-holder input[type="submit"]:hover {
    cursor: pointer;
}

form.custom-form .form-row .input-holder input.submit-btn {
    background-color: var(--submit-btn-color);
}

form.custom-form .form-row .input-holder input.submit-btn:hover {
    background-color: var(--submit-btn-color-hover);
}

form.custom-form .form-row .input-holder input.delete-btn {
    background-color: var(--delete-btn-color);
}
form.custom-form .form-row .input-holder input.delete-btn:hover {
    background-color: var(--delete-btn-color-hover);
}

form.custom-form .form-row .input-holder input.edit-btn {
    background-color: var(--update-btn-color);
}
form.custom-form .form-row .input-holder input.edit-btn:hover {
    background-color: var(--update-btn-color-hover);
}

.delete-form-holder {
    width: 100%;
    height: 100vh;

    display: none;
    justify-content: center;
    align-items: center;

    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;

    background-color: rgba(0, 0, 0, 0.2);
}

.delete-form-holder.active {
    display: flex;
}

.delete-form-holder .form-holder {
    width: max-content;
    height: auto;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    padding: 20px;

    background-color: var(--form-background-color);

    -webkit-box-shadow: 0px 3px 5px 0px rgb(0, 0, 0, 0.5);
    -moz-box-shadow: 0px 3px 5px 0px rgba(0, 0, 0, 0.5);
    box-shadow: 0px 3px 5px 0px rgba(0, 0, 0, 0.5);
}

.delete-form-holder .form-holder span {
    text-align: center;
    font-size: 1.7rem;
}

.delete-form-holder .form-holder span::first-letter {
    text-transform: capitalize;
}

.delete-form-holder .form-holder .btns-holder {
    width: 100%;
    height: auto;

    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;

    font-size: 1.5rem;

    margin-top: 20px;
}

.delete-form-holder .form-holder .btns-holder button {
    width: 175px;
    min-width: 175px;
    height: 35px;
    text-transform: capitalize;
    border: none;
    color: white;
    transition-duration: 0.3s;
    border-radius: 3px;
    outline: none;
}
.delete-form-holder .form-holder .btns-holder button:hover {
    cursor: pointer;
}

.delete-form-holder .form-holder .btns-holder button.delete-btn {
    background-color: var(--delete-btn-color);
}
.delete-form-holder .form-holder .btns-holder button.delete-btn:hover {
    background-color: var(--delete-btn-color-hover);
}
.delete-form-holder .form-holder .btns-holder button.cancel-btn {
    background-color: var(--cancel-btn-color);
}
.delete-form-holder .form-holder .btns-holder button.cancel-btn:hover {
    background-color: var(--cancel-btn-color-hover);
}
/* ~ ---------------------------------- Loading ---------------------------------- ~ */

.loading-screen {
    width: 100%;
    height: 100%;

    display: none;
    justify-content: center;
    align-items: center;

    position: absolute;
    top: 0;
    left: 0;
    z-index: 4;

    background-color: rgba(128, 128, 128, 0.2);
}

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

.lds-ring {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}
.lds-ring div {
    box-sizing: border-box;
    display: block;
    position: absolute;
    width: 64px;
    height: 64px;
    margin: 8px;
    border: 8px solid #fff;
    border-radius: 50%;
    animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    border-color: #fff transparent transparent transparent;
}
.lds-ring div:nth-child(1) {
    animation-delay: -0.45s;
}
.lds-ring div:nth-child(2) {
    animation-delay: -0.3s;
}
.lds-ring div:nth-child(3) {
    animation-delay: -0.15s;
}
@keyframes lds-ring {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* ~ ------------------------------------------- Datatables --------------------------------------- ~ */
.datatable-holder {
    width: 100%;
    height: auto;

    padding: 15px;
    border-radius: 3px;

    background-color: var(--form-background-color);
}

table {
    table-layout: fixed; /* Set table layout to fixed */
    min-width: max-content !important;
    width: 100% !important; /* Set the table's width to 100% of its container */
}

table th,
table td {
    min-width: max-content; /* Set the minimum width of both table headers and cells to max-content */
    padding: 8px; /* Add padding to the cells for spacing */
    white-space: wrap; /* Prevent text from wrapping to the next line */
}

/* For WebKit browsers */
.dataTables_scrollBody::-webkit-scrollbar {
    width: 5px; /* Adjust the width as needed */
    height: 8px; /* Adjust the width as needed */
}

.dataTables_scrollBody::-webkit-scrollbar-thumb {
    background-color: rgba(var(--primary-color)); /* Scroll track color */
}

.dataTables_scrollBody::-webkit-scrollbar-track {
    background-color: #f0f0f0; /* Scroll track color */
}

.page-item.active .page-link {
    background-color: rgb(var(--primary-color));
}

.page-item .page-link {
    color: rgb(var(--primary-color));
}

.submit-btn-datatable {
    color: white;
    background-color: var(--submit-btn-color);
}

.submit-btn-datatable:hover {
    color: white;
    background-color: var(--submit-btn-color-hover);
}

.view-btn-datatable {
    color: white;
    background-color: rgb(9, 101, 162);
}

.view-btn-datatable:hover {
    color: white;
    background-color: rgb(32, 57, 159);
}

.grade-btn-datatable {
    color: white;
    background-color: rgb(0, 118, 45);
}

.grade-btn-datatable:hover {
    color: white;
    background-color: rgb(0, 90, 12);
}

.delete-btn-datatable {
    color: white;
    background-color: var(--delete-btn-color);
}
.delete-btn-datatable:hover {
    color: white;
    background-color: var(--delete-btn-color-hover);
}

.edit-btn-datatable {
    color: white;
    background-color: var(--update-btn-color);
}
.edit-btn-datatable:hover {
    color: white;
    background-color: var(--update-btn-color-hover);
}

.status {
    width: fit-content;
    height: auto;
    padding: 3px 5px;

    border-radius: 2px;
    color: white;

    text-transform: capitalize;
}

.status.approved {
    background-color: rgb(0, 128, 128, 0.6);
}
.status.pending {
    background-color: rgb(235, 175, 10, 0.6);
}
.status.rejected {
    background-color: rgb(242, 58, 62, 0.6);
}

/* ~ --------------------- Responsive --------------------- ~  */

@media screen and (max-width: 520px) {
    .delete-form-holder .form-holder {
        width: 90%;
    }
}

@media screen and (max-width: 460px) {
    .delete-form-holder .form-holder .btns-holder {
        margin-top: 30px;
        gap: 10px;
    }
}

@media screen and (max-width: 450px) {
    form.custom-form .form-row .input-holder,
    form.custom-form .form-row .input-holder textarea,
    form.custom-form .form-row .input-holder input,
    form.custom-form .form-row .input-holder select {
        width: 100%;
    }
}
