@import url('https://fonts.googleapis.com/css?family=Mulish:200,300,400,500,600,700,800,900|Raleway:100,200,300,400,500,600,700,800,900&display=swap');

:root {
    --dark-body: #4d4c5a;
    --dark-main: #141529;
    --dark-second: #79788c;
    --dark-hover: #323048;
    --dark-text: #f8fbff;
    --dark-primary: #f2ff00;
    --dark-disabled: #484242;

    --light-body: #f3f8fe;
    --light-main: #fdfdfd;
    --light-second: #c3c2c8;
    --light-hover: #abbfe2;
    --light-text: #151426;
    --light-primary: #ff8000;
    --light-disabled: #c0a7a7;


    --blue: #0000ff;
    --white: #fff;
    --red: #ff0000;

    --shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;

    --font-family: cursive;
    --bs-font-sans-serif: "Mulish", sans-serif;
    --bs-font-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.dark {
    --bg-body: var(--dark-body);
    --bg-main: var(--dark-main);
    --bg-second: var(--dark-second);
    --bg-primary: var(--dark-primary);
    --bg-disabled: var(--dark-disabled);
    --color-hover: var(--dark-hover);
    --color-txt: var(--dark-text);
}

.light {
    --bg-body: var(--light-body);
    --bg-main: var(--light-main);
    --bg-second: var(--light-second);
    --bg-primary: var(--light-primary);
    --bg-disabled: var(--light-disabled);
    --color-hover: var(--light-hover);
    --color-txt: var(--light-text);
}

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

@media (min-width: 1100px) {
    .nav-container > div {
        padding: 20px;
    }
}

.nav-container > div {
    height: max-content;
    width: max-content;
    background-color: var(--bg-main);
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    /* transform: scale(1.25); */
}

#timetable-form {
    visibility: hidden;
}

#view-task {
    visibility: hidden;
}

#patient-list,
#booking-form,
#service-list,
#service-form,
#config-form
{
    visibility: hidden;
}


.light #calendar,
.light #timetable-form,
.light #view-task {
    box-shadow: var(--shadow);
}

.nav-container {
    display: flex;
    place-items: center;
}

@media(max-width: 1200px) {
    .nav-container {
        flex-direction: column;
    }
}

@media(min-width: 1100px) {
    .nav-container > div {
        margin: 10px;
    }
}

.calendar-header {
    display: grid;
    grid-template-columns: 1fr 1fr;

    justify-content: space-between;
    align-items: center;
    font-size: 25px;
    font-weight: 600;
    color: var(--color-txt);
    padding: 10px;
    padding-bottom: 5px;
}

.year-month {
    display: block;
    justify-content: space-between;
    align-items: center;
    font-size: 25px;
    font-weight: 600;
    color: var(--color-txt);
    padding: 10px;
}

@media(max-width: 1100px) {
    .year-month, .calendar-header {
        font-size: 18px;
        padding: 5px;
    }
}

.calendar-body {
    padding: 10px;
}

.week-day {
    color: var(--bg-second);
    font-weight: 600;
    height: 20px;
}

.time-day {
    border: solid var(--bg-second);
    min-height: 200px;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 5px;
}

.time-day > div {
    border-bottom: solid var(--bg-second);
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0px;
    font-weight: 500;
    font-style: oblique;
    cursor: pointer;
}

.group-task-l {
    background-color:goldenrod;
}

.group-task {
    background-color:chartreuse;
}

.time-day > div:hover,
.group-task-l:hover,
.group-task:hover {
    background-color: var(--bg-primary);
}

.time-day > div > span {
    padding: 5px;
    font-weight: 600;
}

.day-number {
    height: 30px;
    font-weight: 600;
    cursor: pointer;
}

.day-number:hover {
    color: var(--color-hover);
    background-color: var(--bg-primary);
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(100px, 1fr));
    gap: 0px;
    color: var(--color-txt);
    padding-left: 5px;
}

.calendar-days > div:not(.time-day ) {
    width: minmax(50px,auto);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0px;
    position: relative;
    /* animation: to-top 1s forwards; */
    /* border-radius: 50%; */
}

.calendar-days div.curr-date:not(.day-number:hover) {
    color: var(--bg-primary);
}

.calendar-days div.curr-date span {
    display: none;
}

.week-picker {
    display: flex;
    align-items: center;
}

.week-change {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin: 0 10px;
    cursor: pointer;
}

.week-change:hover {
    background-color: var(--color-hover);
}

@media(max-width: 1100px) {
    .week-change {
        margin: 0 2px;
    }
}

/***********************************************
********* Booking Form CSS *********************
************************************************/
.form-item {
    display: flex;
    flex-direction: column;
    align-items: left;
    width: 100%;
    padding: 10px;
}

.form-item label {
    padding-top: 10px;
    font-size: medium;
    font-weight: bold;
}

.form-item #service-group-type {
    align-items: center;
}

.form-item:not(#service-group-type) label{
    padding-bottom: 5px;
}

#activity-buttons {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
}

#activity-buttons div {
    padding: 10px;
}

.field-error {
    color: var(--red)
}

.task {
    padding: 10px;
    display: flex;
    flex-direction: column;
}

.row-section {
    display: flex;
    flex-direction: row;
}

@media(max-width: 1200px) {
    .row-section {
        flex-direction: column;
    }
}

.booking-section {
    height: max-content;
    max-width: max-content;
    /*background-color: var(--bg-main);*/
    border-radius: 1rem;
    border-color: var(--bg-primary);
    padding: 0px;
    border-style: solid;
    border-radius: 0.5rem 0.5rem 0.5rem 0.5rem;
    margin-top: 10px;
    margin-left: 10px;
    /* transform: scale(1.25); */
}

.booking-item {
    background-color: var(--bg-main);
    width: auto;
    border-radius: 0 0 1rem 1rem;
    color: var(--color-txt);
    box-shadow: 0 1px 0 var(--bg-main);
    height: auto;
}

.booking-result-display {
    display: flex;
    flex-direction: column;
    height: 50px;
    align-items: center;
    justify-content: left;
    padding: 5px;
}

.booking-header {
    padding: 10px;
    display: flex;
    position: sticky;
    justify-content: left;
    align-items: center;
    flex-direction: row;
    font-size: larger;
    font-weight: 600;
    background-color: var(--bg-primary);
    border-radius: 0.25rem 0.25rem 0rem 0rem;
}

.booking-header-pointed {
    cursor: pointer;
}


.booking-active {
    color: var(--white);
    background-color: var(--bg-primary);
    border-color: var(--bg-primary);
}

.booking-disabled {
    color: var(--white);
    background-color: var(--bg-disabled);
}

.booking-scheduled {
    color: var(--bg-primary);
    background-color: var(--bg-main);
    cursor: pointer;
}

.booking-cnt {
    border-radius: 50%;
    height: 1.1em;
    width: 1.1em;
    font-size: 30px;
    text-align: center;
    font-weight: 600;
    margin-inline: 10px;
}

.booking-title {
    font-size: 30px;
    font-weight: 600;
}

.booking-cnt-active {
    color: var(--bg-primary);
    background-color: var(--white);
}

.booking-cnt-disabled {
    color: var(--bg-disabled);
    background-color: var(--white);
}

.booking-cnt-scheduled {
    color: var(--white);
    background-color: var(--bg-primary);
    cursor: pointer;
}


.day-number-booking {
    height: 30px;
    font-weight: 600;
}

.form-item-row,
.form-item-responsive {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    flex-direction: row;
    margin: 5px;
}

.form-item-row {
    height: 50px;
}

@media(max-width: 1200px) {
    .form-item-responsive {
        flex-direction: column;
    }
}

@media(max-width: 1200px) {
    .display-optional {
        display: none;
    }
}

th {
    background-color: #04AA6D;
    color: white;
}

th, td {
    border: 1px solid;
    border-radius: 0.25rem;
    padding: 0px 10px;
    text-align: left;
    height: 70px;
    max-width: 64rem;
}

.tr-highlight {
    color: #f5f5f8;
    background-color: #ee2117;
    font-weight: 700;
}

.service-image-preview{
    padding-top: 5px;
    padding-bottom: 5px;
    height: 100%;
}

.form-field {
    display: inline-block;
    padding: 2px 5px 2px 5px;
    font-weight: 400;
    font-size: medium;
    line-height: 1.5;
    border: 1px solid;
    border-radius: 0.25rem;
    height: auto;
}

.text-inline {
    padding: 10px 10px;
    border-radius: 0.25rem;
    border: 1px solid;
}

.header-container {
    width: 100%;
    padding-right: var(--bs-gutter-x, 15px);
    padding-left: var(--bs-gutter-x, 15px);
    margin-right: auto;
    margin-left: auto;
}

.table-scroll {
    max-height: 10vh;
    overflow-y: auto;
}

.table-textarea {
    max-height: 30vh;
}

.green-bg {
    background-color: green;
    color: white;
    padding: 5px;
    border-radius: 5px;
}

.red-bg {
    background-color: red;
    color: white;
    padding: 5px;
    border-radius: 5px;
}

@keyframes to-top {
    0% {
        transform: translateY(100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}
