@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Orbitron:wght@400..900&display=swap');

@view-transition {
    navigation: auto;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: "Montserrat", sans-serif;
}

:root {
    --bg-color: #f2f2f2;
    --text-color: #161F30;
    --text-light-color: #f2f2f2;
    --gray: #3D3D3D;
    --accent-color: #84B026;
    --secondary-accent-color: #217373;
    --tertiary-color: #173540;
}

/* **************HEADER and NAV section */


header {
    background-color: var(--secondary-accent-color);
    display: flex;
    gap: 20px;
    height: 60px;
    align-items: center;
    overflow: hidden;
}

.logo_top {
    width: 80px;
    margin: 0 20px;
}


header nav ul li {
    list-style: none;
    margin-left: 40px;
    height: 100%;
}

header nav ul {
    display: flex;
    /* justify-content: space-around; */
    justify-content: flex-end;
    align-items: center;
    height: 100%;
}

header h1 {
    padding-left: 20px;
    color: var(--text-light-color);
}

header nav {
    flex: 1;
    padding-right: 20px;
    height: 100%;
}

header nav ul li a {
    color: var(--text-light-color);
    text-decoration: none;
    text-transform: uppercase;
    position: relative;
    height: 100%;
    display: inline-block;
    line-height: 63px;
    font-size: clamp(10px, 1vw, 16px);
}

#top_nav a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: var(--text-light-color);
    border-radius: 5px;
    left: 0;
    bottom: 12px;
    transform: scaleX(0);
    transition: transform 0.5s;
    transform-origin: right;
}

#top_nav a:hover::after {
    transform-origin: left;
    transform: scaleX(1);
}

#top_nav a.active_nav_link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: var(--text-light-color);
    border-radius: 5px;
    left: 0;
    bottom: 12px;
    transform: scaleX(1);
}

#top_nav a.active_nav_link {
    font-weight: bold;
}

.icon_name {
    font-weight: 900;
    font-size: 30px;
    background-color: var(--accent-color);
    border-radius: 50%;
    padding: 8px;
    color: var(--secondary-accent-color);
    cursor: pointer;
    transition: 0.5s;
    /* text-shadow: 0 0 2px var(--text-light-color); */
    display: inline-block;
    margin-top: 4px;
}

.icon_name:hover {
    color: var(--text-light-color);
}


/* *****************FOOTER section************************ */

footer {
    background-color: var(--gray);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    /* height: 45px; */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.logo_footer {
    width: 80px;
    margin-right: 10px;
}

footer p {
    text-align: center;
    line-height: 45px;
    color: var(--text-light-color);
}

footer ul {
    position: absolute;
    bottom: 0;
    right: 20px;
    display: flex;
    width: 100px;
    justify-content: space-between;
}

footer ul li a {
    font-size: 23px;
    /* text-decoration: none; */
}

footer ul li {
    list-style: none;
}

main {
    padding: 20px 20px 70px 20px;
    color: var(--text-color);
}

main h1 {
    text-align: center;
    font-family: 'Montserrat';
}

#scroll_up {
    position: fixed;
    bottom: 3px;
    right: 10px;
    display: none;
    /* Hidden by default */
    background-color: transparent;
    color: var(--text-light-color);
    border: none;
    cursor: pointer;
    font-size: 30px;
}

#scroll_up:hover {
    color: var(--accent-color);
}

.remove-scrolling {
    height: 100%;
    overflow: hidden;
}

/* ****************** Messages **************************** */

.success,
.error,
.warning {
    /* position: absolute; */
    position: fixed;
    /* top: 10%; */
    color: var(--text-light-color);
    font-size: 30px;
    padding: 20px;
    border-radius: 10px;
    /* margin: 0 auto; */
    z-index: 1000;
}

.success {
    background-color: green;
}

.error {
    background-color: red;
}

.warning {
    background-color: orange;
}

.msg_cont {
    display: flex;
    justify-content: center;
    width: 100%;
    overflow-x: hidden;
    position: fixed;
    height: 100%;
    z-index: 152;
    pointer-events: none;
    transition: 0.5s;
}

.msg_cont p a{
    pointer-events: all;
}

.msg_container {
    position: relative;
}

.msg_container input,
.msg_container select {
    padding: 3px;
    font-size: 1rem;
    text-align: center;
    width: 100%;
}


.error_border {
    border-color: red;
    outline-color: red;
}

#year_select {
    display: block;
    margin: 20px auto;
    padding: 5px;
    font-size: 2rem;
    border-radius: 10px;
    font-weight: 300;
    font-family: "Orbitron";
}

#year_select option{
    font-family: "Orbitron";
    font-size: 1.25rem;
    text-align: center;
}

/* **************** LOGIN FORM / REGISTER FORM *********************** */

#blanket {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, .5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 150;
}

.wrapper {
    position: relative;
    width: 400px;
    height: 440px;
    background-color: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    /* display: flex; */
    /* justify-content: center; */
    align-items: center;
    overflow: hidden;
}

div.wrapper.big {
    width: auto;
    height: auto;
    max-height: 100vh;
    overflow-y: auto;
    scrollbar-width: none;
}

#frame {
    display: flex;
    width: 1200px;
    align-items: center;
    justify-content: space-between;
    transition: 0.4s;
    transform: translateX(-400px);
}

#close_popup,
#close_popup1 {
    position: absolute;
    top: 0;
    right: 0;
    display: block;
    width: 45px;
    height: 45px;
    background-color: var(--tertiary-color);
    color: var(--text-light-color);
    line-height: 45px;
    text-align: center;
    font-size: 1.8em;
    border-radius: 0 20px;
    cursor: pointer;
    z-index: 10;
    transition: 0.5s;
}

/* #close_popup:hover {
    transform: rotate(180deg);
} */

.form-box {
    width: 400px;
    padding: 40px;
}


.form-box form {
    width: 320px;
}

.form-box h2 {
    text-align: center;
    font-size: 2em;
    color: var(--tertiary-color);
}

.input-box {
    position: relative;
    width: 100%;
    height: 50px;
    border-bottom: 2px solid var(--tertiary-color);
    margin: 30px 0;
}

.register .input-box:first-child {
    margin-top: 10px;
}

.input-box input {
    width: 100%;
    height: 100%;
    background-color: transparent;
    border: none;
    outline: none;
    font-size: 1em;
    color: var(--tertiary-color);
    font-weight: 600;
    padding: 0 35px 0 5px;
}

.input-box label {
    position: absolute;
    top: 50%;
    left: 5px;
    font-size: 1em;
    color: var(--tertiary-color);
    font-weight: 500;
    pointer-events: none;
    transition: 0.5s;
    transform: translateY(-50%);
}

.input-box .icon {
    position: absolute;
    right: 4px;
    font-size: 1.2em;
    color: var(--tertiary-color);
    line-height: 57px;
}

.input-box input:focus~label,
.input-box input:valid~label,
#disabled_label {
    /* .input-box input:focus~label{   */
    top: -5px;
}

.remember-forgot {
    display: flex;
    display: flex;
    color: var(--tertiary-color);
    font-size: 0.9em;
    font-weight: 500;
    justify-content: space-between;
    margin: -15px 0 15px 0;
}

.remember-forgot label input {
    accent-color: var(--tertiary-color);
    margin-right: 3px;
}

.remember-forgot a {
    color: var(--tertiary-color);
    text-decoration: none;
}

.remember-forgot a:hover {
    text-decoration: underline;
}

.btn {
    width: 100%;
    height: 45px;
    background-color: var(--tertiary-color);
    color: var(--text-light-color);
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
    border: none;
    outline: none;
    border-radius: 6px;
}

.btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.login-register {
    font-size: 0.9em;
    color: var(--tertiary-color);
    text-align: center;
    font-weight: 500;
    margin: 25px 0 10px 0;
}

.login-register p a {
    color: var(--tertiary-color);
    text-decoration: none;
    font-weight: 600;
}

.login-register p a:hover {
    text-decoration: underline;
}

#course_code,
#location {
    text-transform: uppercase;
}

#from,
#to {
    position: relative;
}

#team_name {
    text-transform: uppercase;
}

.input-loading {
    background: url('../images/load.gif') no-repeat right center;
    background-size: 20px 20px;
    /* Adjust based on your GIF size */
    padding-right: 25px;
    /* Adjust padding to prevent text overlap */
}

.saved-message {
    position: absolute;
    /* margin-top: -30px; */
    /* left: 10px; */
    color: green;
    font-size: 12px;
    z-index: 10;
    right: 20px;
    top: 5px;
    font-weight: bold;
}

#restore_form {
    display: flex;
    justify-content: center;
    width: 100%;
}

input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px white inset;
    -webkit-text-fill-color: #000;
}



.fc-daygrid-event-dot {
    display: none !important;
}

.fc-daygrid-dot-event {
/* .event_box{ */
    display: block !important;
    padding: 3px;
    background-color: aqua;
}

.event_box.co_teacher{
    background-color: lightgreen;
}

.event_box.clash, .event_clash{
    background-color: tomato;
}

.event_box{
    cursor: default;
}


.event_clash.co_teacher{
    background: linear-gradient(to bottom, tomato, lightgreen);
}

.fc-daygrid-dot-event .fc-event-title,
.fc-v-event .fc-event-title {
    white-space: pre-wrap !important;
}

.fc-daygrid-day-number {
    font-weight: 900;
    color: blue;
}

.fc-event:hover {
    background: rgba(0, 0, 0, 0.2);
    /* cursor: pointer; */
}

/* *************************** schedule form ********************************** */

#emp_level {
    flex: 10;
}

#recurrence_box {
    display: none;
}

.input-box1 {
    display: flex;
    align-items: center;
    margin: 10px;
    gap: 5px;
    position: relative;
}

.input-box1 :nth-child(3),
.input-box1 :nth-child(2) {
    flex: 1;
    padding: 3px;
    font-size: 1rem;
    text-align: center;
}

.input-box2 {
    display: flex;
    padding: 10px 10px 0 10px;
    gap: 5px;
}

#contribution {
    width: 50px;
}

.form-box1 {
    padding: 20px;
}

.form-box2 {
    display: flex;
    align-items: center;
}

.form-box1 h2 {
    text-align: center;
}

.form-box1.hidden {
    display: none;
}

.form-box_h2 {
    padding: 15px 5px 0px 5px;
}

.form-box_h3 {
    padding: 10px 5px;
    font-size: 15px;
    line-height: 25px;
}

.holiday {
    background-color: yellow !important;
    color: black;
}

.holiday a {
    background-color: yellow !important;
    font-weight: bold !important;
}

.bi-sort-alpha-down,
.bi-sort-alpha-up,
.bi-funnel {
    cursor: pointer;
    border: 1px solid transparent;
    padding: 2px;
    margin: 2px 2px;
    border-radius: 5px;
    height: 23px;
    width: 23px;
}

.bi-sort-alpha-down:hover,
.bi-sort-alpha-up:hover,
.bi-funnel:hover {
    border: 1px solid var(--tertiary-color);
}

.th_cell span {
    display: inline-block;
    margin: 0 3px;
}

.select_all {
    line-height: 7px;
}

legend {
    margin-left: 20px;
    padding: 0 3px;
    color: var(--accent-color);
}

.active_search {
    color: var(--bg-color);
    border: 1px solid var(--text-light-color);
}

.ui-autocomplete {
    max-height: 250px;
    /* Set the maximum height for the dropdown menu */
    overflow-y: auto;
    /* Enable vertical scrolling */
    overflow-x: hidden;
    /* Disable horizontal scrolling */
}



/* **************************custom checkboxes ****************** */

.container {
    display: block;
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    cursor: pointer;
    /* font-size: 22px; */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    width: 300px;
    /* display: flex;
    align-items: center; */
}

/* Hide the browser's default checkbox */
.container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Create a custom checkbox */
.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #eee;
    /* margin: auto 0; */
}

.checkmark1 {
    position: absolute;
    top: 0;
    left: 0;
    height: 15px;
    width: 15px;
    background-color: #eee;
    border: 2px solid var(--secondary-accent-color);
    border-radius: 2px;
}

.checkmark1.full::after {
    content: "";
    position: absolute;
    left: 0px;
    top: 0px;
    width: 11px;
    height: 11px;
    background-color: var(--secondary-accent-color);
}

.checkmark1.half::after {
    content: "";
    position: absolute;
    left: 2px;
    top: 2px;
    width: 7px;
    height: 7px;
    background-color: var(--secondary-accent-color);
}

/* On mouse-over, add a grey background color */
.container:hover input~.checkmark {
    background-color: #ccc;
}

/* When the checkbox is checked, add a blue background */
.container input:checked~.checkmark {
    background-color: var(--secondary-accent-color);
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

/* Show the checkmark when checked */
.container input:checked~.checkmark:after {
    display: block;
}

/* Style the checkmark/indicator */
.container .checkmark:after {
    left: 7px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

#legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    border: 1px solid var(--gray);
    padding: 20px;
    border-radius: 20px;
    margin: 30px 0;
}

.column1 {
    width: 100%;
}

input#unit_code{
    text-transform: uppercase;
}

/* **************************filter box********************** */
.filter_box {
    position: absolute;
    bottom: 0;
    right: 0;
    display: none;
    width: 100%;
    min-width: 150px;
    /* max-height: 300px;
    overflow-y: auto; */
    transform: translateY(100%);
    padding-bottom: 50px;
    background-color: transparent;
    /* transition: transform 0.5s ease; */
    max-height: 450px;
    overflow-y: auto;
}

.vizible_filter_box {
    padding: 5px;
    background-color: #aff3d9;
    border-radius: 5px;
    border: 2px solid var(--secondary-accent-color);
}


.filter_box.first_column {
    bottom: 0;
    left: 0;
    z-index: 1;
}

.filter_box_buttons {
    display: flex;
    gap: 3px;
}

.filter_box_buttons .btn {
    padding: 3px;
    height: auto;
}

.filter_box .container {
    width: 100%;
    font-size: 9.5px;
    /* margin: 5px; */
    padding: 5px;
    border-bottom: 1px solid lightgray;
    text-align: left;
    padding-left: 20px;
}

.filter_box .container:hover {
    background-color: #e6f2f9;
}

.filter_box .checkmark {
    width: 15px;
    height: 15px;
    margin-top: 2px;
}

.filter_box .checkmark:after {
    top: 1px;
    left: 4px;
    width: 5px;
    height: 7px;
}

.filter_box .container input:checked~.checkmark {
    background-color: var(--secondary-accent-color);
}

label:has(input[type="checkbox"]:disabled) {
    background-color: #e0e0e0;
    /* Change checkmark background */
    cursor: default;
    /* Change cursor */
    opacity: 0.4;
}




/* *************************holiday table ************************* */

#holiday_table {
    margin: 20px auto;
}

#holiday_table input {
    padding: 3px;
    font-size: 1rem;
    text-align: center;
}

.tbl_btn#add {
    width: 100%;
}

/* ************************* course schedule table ******************************** */

.table_cont {
    width: 100%;
    overflow-x: auto;
}

.courses_table, .cluster_tbl {
    width: 100%;
    border-collapse: collapse;
    margin-top: 50px;
}
.cluster_tbl {
    margin-top: 0;
}

.cluster_cont .tbl_btn1{
    font-size: 25px;
}

.cluster_cont .uncluster_it{
    width: 100%;
}

.courses_table thead th, .cluster_tbl thead th {
    color: var(--tertiary-color);
    background-color: var(--accent-color);
    border: 1px solid var(--text-light-color);
    /* padding: 8px; */
    position: relative;
}

div.th_cell {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 2px;
}

.courses_table thead, .cluster_tbl thead{
    position: sticky;
    top: -1px;
}

.courses_table tbody tr:nth-child(even) td,
.cluster_tbl tbody tr:nth-child(even) td {
    background-color: #f2f2f2;
}

.courses_table td, .cluster_tbl td {
    padding: 4px 3px;
}

.courses_table tbody tr, .cluster_tbl tbody tr {
    transition: 0.3s;
    cursor: pointer;
}

body main .courses_table tbody tr:hover,
.courses_table tbody tr:nth-child(even):hover td {
    background-color: #afbc94;
    /* color: var(--text-light-color); */
}


.centre_cell {
    text-align: center;
}

.tbl_btn,
.tbl_btn1,
.tbl_btn3 {
    width: 80px;
    height: 35px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    border: 3px solid transparent;
    outline: none;
    border-radius: 6px;
    background-color: transparent;
    color: var(--text-light-color);
    text-shadow: 0 0 2px var(--text-color);
}

.tbl_btn2 {
    height: 35px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    outline: none;
    border-radius: 6px;
    /* background-color: transparent; */
    color: var(--text-light-color);
    text-shadow: 0 0 2px var(--text-color);
    flex: 1;
}

a.tbl_btn2 {
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f1efef;
}

.tbl_btn1,
.tbl_btn3 {
    width: 100%;
    font-size: 40px;
    height: auto;
    padding: 10px;
    border: 3px solid transparent;
}

.tbl_btn:hover,
.tbl_btn1:hover,
.tbl_btn2:hover {
    color: red;
    border: 3px solid red;
    text-shadow: 0 0 3px red;
}

.tbl_btn3 {
    box-shadow: 0 0 2px var(--text-color);
}


#main_table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

#main_table th {
    border: 1px solid var(--text-color);
}

#no_data_msg {
    margin: 20px;
    text-align: center;
    font-size: 30px;
    color: red;
}


.calculation {
    width: 100%;
}

.calculation td {
    text-align: center;
}

.calculation td,
.calculation th {
    border: 1px solid white;
}

.calculation td:first-child {
    text-align: left;
}

.calculation td input {
    text-align: center;
    width: 50px;
    padding: 3px;
}

#balance {
    font-size: 25px;
    text-align: center;
    margin: 20px;
    font-weight: bold;
}

.positive_balance {
    color: green;
}

.negative_balance {
    color: red;
}

.stepped{
    padding-left: 15px;
}

.cell_error{
    background-color: red;
    color: white;
}

#personal_timetable{
    font-size: 30px;
    width: auto;
    margin-bottom: 0;
}

#personal_timetable .checkmark::after{
    left: 5px;
    top: 1px;
}

.calculation .student_num, .calculation .per_nose{
    width: 100%;
}

/* *************cluster table ***************************** */

.cluster_cont {
    border: 3px solid #84B026;
    border-radius: 10px;
    padding: 15px;
    margin: 30px 0;
}

.cluster_cont h3{
    text-transform: uppercase;
    text-align: center;
    padding: 0 0 10px 0;
}

/* ******************** main page ***************************** */
body .ui-menu-item {
    font-size: 14px;
}

.middle_menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

#font_size {
    font-size: 17px;
    padding: 10px;
    border-radius: 6px;
}


.search_div {
    display: flex;
    justify-content: center;
    font-size: 30px;
    margin: 30px 0;
    /* align-items: center; */
}

#search, #search_lecturer {
    outline: none;
    border-radius: 6px 0 0 6px;
    border: 1px solid var(--text-color);
    width: 25%;
    padding: 5px;
    font-size: 25px;
    width: 100%;
}


#search_icon {
    /* border: 1px solid var(--text-color);
    border-radius: 0 6px 6px 0; */
    padding: 5px;
    cursor: pointer;
    transition: .5s;
    display: block;
}

#search_icon:hover {
    transform: scale(1.25);
    color: var(--accent-color);
}

#search_icon_box {
    border: 1px solid var(--text-color);
    border-radius: 0 6px 6px 0;
}


#units_error {
    width: 100%;
    text-align: center;
    font-size: 30px;
    color: red;
    margin-bottom: 50px;
}

.fc-header-toolbar.fc-toolbar.fc-toolbar-ltr{
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: white;
}

.fc-daygrid-day.fc-day-today .fc-daygrid-dot-event, .todayy{
    background-color: tomato;
}

.ui-front{
    z-index: 151 !important;
}

.ui-menu.ui-widget.ui-widget-content.ui-autocomplete.ui-front{
    overflow: hidden;
}

#page_num_cont{
    margin-top: 40px;
    display: flex;
    text-align: center;
    justify-content: center;
    height: 36px;
}

.move_page{
    font-size: 30px;
    font-weight: 100;
    opacity: 0.4;
}

#move_right, #move_left{
    font-weight: bold;
    opacity: 1;
    cursor: pointer;
}

#move_right:hover, #move_left:hover{
    color: var(--secondary-accent-color);
}

#move_centre{
    line-height: 36px;
    /* display: inline-block; */
    margin: 0 15px;
}

#viability_schedule_tmp{
    display: none;
}