@import url('https://fonts.googleapis.com/css2?family=Just+Another+Hand&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');


body {
    padding         : 0;
    overflow-x      : hidden;
    background-color: #b5b5b5;
    background      : radial-gradient(circle, rgba(181, 181, 181, 1) 57%, rgb(255 255 255) 100%);

    background     : url("https://swallowtherapy.com/wp-content/uploads/2016/11/light-grey-abstract-background-hd-pictures-wallpapers-amagico-grey-background-wallpaper-bedroom-for-walls-homebase-designs-living-room-uk-5.jpg");
    background-size: cover;
}

form {
    max-width: 400px;
    margin   : 0 auto;
}


header {
    display        : flex;
    justify-content: space-between;
    align-items    : center;
    padding        : 0 50px;
    height         : 10vh;
}

header h1 {
    font-weight   : bolder;
    display       : flex;
    flex-direction: column;
}

header h1 small {
    font-size     : 16px;
    letter-spacing: 4px;
    width         : 100%;
}

.toast-container {
    position: fixed;
    bottom  : 20px;
    right   : 20px;
    z-index : 1050;
}

input,
select,
button {
    width     : 100%;
    padding   : 8px;
    margin-top: 5px;
}

button {
    background-color: #4CAF50;
    color           : white;
    border          : none;
    cursor          : pointer;
}



.day-container {
    display              : grid;
    grid-template-columns: repeat(8, 1fr);
    /* 4 saat yan yana */
    gap                  : 0;
    max-width            : 100%;
    margin               : 0;
    height               : 90vh;

}

.time-slot {
    padding         : 15px;
    border          : 1px solid #fff;
    text-align      : center;
    cursor          : pointer;
    background-color: #f9f9f9;
    position        : relative;
    /* Temizle butonu için pozisyon */
    display         : flex;
    align-items     : center;
    justify-content : center;
    flex-direction  : column;

    /* From https://css.glass */
    background             : rgba(255, 255, 255, 0.2);
    border-radius          : 16px;
    box-shadow             : 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter        : blur(5px);
    -webkit-backdrop-filter: blur(5px);
    user-select            : none;
    border                 : 1px solid rgba(255, 255, 255, 0.3);
}

.time-slot.active {
    background-color: #ffcccc;
    /* Rezerve edilmiş saatler için renk */
    cursor          : not-allowed;
    /* Rezerve edilmiş saatler tıklanamaz */

}

.time-slot.editable {
    background-color: #ccffcc;
    transition      : .2s ease-in-out;
    width           : 100%;
    top             : 0;
    z-index         : 9999;
    /*    
    position        : fixed;
    height          : 99vh;
    */
}

.time-slot.editable .reservation-info {
    width: 100%;
}


.time-slot .btn-success {
    background-image: linear-gradient(to right, #1D976C 0%, #93F9B9 51%, #1D976C 100%);
    padding         : 15px 45px;
    text-align      : center;
    text-transform  : uppercase;
    transition      : 0.5s;
    background-size : 200% auto;
    color           : white;
    box-shadow      : 0 0 20px #eee;
    border-radius   : 10px;
    display         : block;
    color           : #0d4733;
    font-weight     : bold;
    border          : none !important;
    display: flex;
    justify-content: center;
}

.time-slot .btn-success:hover {
    background-position: right center;
    /* change the direction of the change here */
    color              : #fff;
    text-decoration    : none;
}

.time-slot.editable .time {
    font-size : 25px !important;
    transition: .2s ease-in-out;
}

.time-slot.editable input {
    background             : rgb(255, 255, 255);
    border-radius          : 16px;
    box-shadow             : 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter        : blur(5px);
    -webkit-backdrop-filter: blur(5px);
    font-size              : 16px;
    font-weight            : bold;
    border                 : 1px solid rgba(255, 255, 255, 0.3);
    width                  : 100%;
}

/* Yükleyici stilini tanımlıyoruz */
#loader {
    position        : fixed;
    top             : 0;
    left            : 0;
    width           : 100%;
    height          : 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display         : flex;
    justify-content : center;
    align-items     : center;
    z-index         : 1000;

    display: none;
}

/* Spinner (dönme efekti) */
.spinner {
    border       : 8px solid #f3f3f3;
    /* Light gray */
    border-top   : 8px solid #3498db;
    /* Mavi renk */
    border-radius: 50%;
    width        : 50px;
    height       : 50px;
    animation    : spin 2s linear infinite;
}

/* Dönme animasyonu */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.right_top_buttons {
    position       : fixed;
    bottom         : -10px;
    right          : 0;
    width          : fit-content;
    text-align     : center;
    margin         : 0;
    display        : flex;
    align-items    : center;
    z-index        : 9999999999999999999;
    justify-content: center;
    width          : 100%;

    margin         : auto;
    right          : 40%;
    left           : 40%;
    width          : 10%;
    justify-content: center;
    align-items    : center;
}

.right_top_buttons .btn {
    border-radius     : 50%;
    margin            : 15px;
    -webkit-box-shadow: 0 17px 19px -13px #d2cfcf;
    box-shadow        : 0 17px 19px -13px #000000;
    width             : 50px;
    height            : 50px;
}

.right_top_buttons .btn:nth-child(2) {
    transform: scale(1.5);
    margin   : 0;
    background-color: black;
    background-color: black !important;
    background-image: none;
}

.right_top_buttons .btn-light {
    background-image: linear-gradient(to right, #f46b45 0%, #eea849 51%, #f46b45 100%);
    text-align      : center;
    text-transform  : uppercase;
    transition      : 0.5s;
    background-size : 200% auto;
    color           : white;
    box-shadow      : 0 0 20px #eee;
    border-radius   : 50%;
    display         : block;
}

.right_top_buttons .btn-light:hover {
    background-position: right center;
    /* change the direction of the change here */
    color              : #fff;
    text-decoration    : none;
}

.right_top_buttons .btn-light:active {
    background: red;
    transform: scale(1.3);
}

.btn {
    margin       : 0;
    border-radius: 0;
}

.edit-input {
    text-align: center;
}

#nextReservationInfo {
    text-align     : center;
    display        : flex;
    top            : 0;
    width          : 100%;
    justify-content: center;
    align-items    : center;
    height         : 50px;
    background     : #f0f0f0;
    font-weight    : bold;
}

.edit-input {
    width     : 80%;
    margin-top: 5px;
    background: transparent;
    border    : none;
    outline   : 0;
}

.reservation-info {
    font-size  : 18px;
    margin-top : 15px;
    color      : #555;
    font-weight: bold;
    font-family: Arial, Helvetica, sans-serif;

}

.slider-container {
    display        : flex;
    align-items    : center;
    justify-content: space-between;
    position       : fixed;
    height         : 100vh;
    width          : 100%;
    top            : 0;
    z-index        : 2;
}

.slider-arrow-right {
    display        : flex;
    align-items    : center;
    justify-content: space-between;
    position       : fixed;
    height         : 100vh;
    width          : 100%;
    top            : 0;
    z-index        : 2;
    right          : 5px;
    width          : 50px;
}

.slider-arrow-right .slider-arrow {
    background               : #fff;
    box-shadow               : 0 4px 30px rgba(0, 0, 0, 0.1);
    padding                  : 25px;
    border-top-left-radius   : 50px;
    border-bottom-left-radius: 50px;
}

.slider-arrow-left {
    display        : flex;
    align-items    : center;
    justify-content: space-between;
    position       : fixed;
    height         : 100vh;
    width          : 100%;
    top            : 0;
    z-index        : 2;
    left           : -15px;
    width          : 50px;
}

.slider-arrow-left .slider-arrow {
    background                : #fff;
    box-shadow                : 0 4px 30px rgba(0, 0, 0, 0.1);
    padding                   : 25px;
    border-top-right-radius   : 50px;
    border-bottom-right-radius: 50px;
}


.slider-arrow {
    font-size  : 24px;
    cursor     : pointer;
    padding    : 10px;
    user-select: none;
}

h1 {
    text-align: center;
}

.date-info {
    display                : flex;
    align-items            : center;
    justify-content        : center;
    font-size              : 20px;
    font-family            : "Montserrat", sans-serif;
    background             : rgba(255, 255, 255, 0.2);
    border-radius          : 4px;
    box-shadow             : 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter        : blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border                 : 1px solid rgba(255, 255, 255, 0.3);
    border-top             : 8px solid #ed4949;
    padding-right          : 15px;
    padding-left           : 5px;
    cursor                 : pointer;
}

.date-info .left {
    width       : 20%;
    font-size   : 25px;
    margin-right: 5px;
}

.date-info .right {
    width: 80%;
}

#currentDate {
    font-weight: bold;
    width      : max-content;
    font-size  : 18px;
}

#currentDay {
    color      : #555;
    margin-top : -10px;
    font-size  : 15px;
    font-weight: bold;
}

.edit-input {
    width     : 80%;
    margin-top: 5px;
}

.clear-button {
    position        : absolute;
    bottom          : 0px;
    right           : 0;
    background-color: #ff444417;
    color           : #ff4444;
    border          : none;
    border-radius   : 50%;
    width           : 20px;
    font-weight     : bold;
    height          : 50px;
    cursor          : pointer;
    font-size       : 12px;
    padding         : 0 !important;
    width           : 100%;
    border-radius   : 0;
    left            : 0;
}


.time-slot.active .clear-button {
    display: block;
    /* Rezerve edilmiş saatlerde göster */
}

.modal-dialog {
    width: fit-content;
}

.flatpickr-input[readonly] {
    display: none;
}


.time-slot {
    padding         : 10px;
    margin          : 5px;
    background-color: #f0f3f7;
    border-radius   : 8px;
    text-align      : center;
    cursor          : pointer;
    transition      : background-color 0.3s ease;
    position        : relative;

    /* From https://css.glass */
    background             : rgba(255, 255, 255, 0.2);
    border-radius          : 16px;
    box-shadow             : 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter        : blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border                 : 1px solid rgba(255, 255, 255, 0.3);
}

.time-slot:hover {
    background-color: #e0e6ef;
}

.time-slot.reserved {
    background-color: #ffcccc;
}



.confirm-button {
    display : none;
    /* Başlangıçta gizli */
    position: absolute;
    bottom  : 5px;
    left    : 2%;
    width   : 96%;

}

.time-slot:hover .confirm-button {
    display: flex;
    /* time-slot üzerine gelindiğinde göster */
}

.reservation-info {
    display   : block;
    /* Her zaman görünür */
    margin-top: 5px;
}

.time-slot.active .info {
    display: none;
}

.time-slot .info {
    font-size  : 12px;
    font-weight: bold;
    color      : #1D976C;
}

.time-slot .time {
    display    : flex;
    font-size  : 20px;
    align-items: center;
    font-weight: bolder;
    position   : absolute;
    top        : 10px;
    right      : 10px;

    background             : rgba(255, 255, 255, 0.2);
    border-radius          : 16px;
    box-shadow             : 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter        : blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border                 : 1px solid rgba(255, 255, 255, 0.3);
    padding                : 5px 15px;
}

.time-slot .time i {
    margin-right: 5px;
    font-size   : 16px;
}

.confirm-button i {
    margin-right: 3px;
}

.time-slot.editable.confirm-button {
    display: flex !important;
}



.search-container {
    display       : flex;
    align-items   : center;
    z-index       : 999;
    flex-direction: column;
    width         : 40%;
}

#searchInput {
    padding      : 8px;
    border-radius: 4px;
    border-radius: 50px;
    margin-bottom: 5px;
    padding-left : 15px;
    height       : 53px;
    border-radius: 0;
    border       : none;

}

.search-content:focus {
    outline   : 0;
    border    : none;
    box-shadow: none;
}

.search-content {
    padding           : 8px;
    border            : 1px solid #ccc;
    border-radius     : 4px;
    border-radius     : 50px;
    margin-bottom     : 5px;
    padding-left      : 15px;
    transition        : .2s ease-in-out;
    -webkit-box-shadow: 0 17px 19px -13px #d2cfcf;
    box-shadow        : 0 17px 19px -13px #d2cfcf;
    height            : 55px;
    border-radius     : 5px;
    width             : 30%;
    position          : fixed;
    top               : -50px;
    padding-left      : 0;
    background        : #fff;
}

.search-content .btn-search {
    width      : 70px;
    font-size  : 12px;
    display    : flex;
    align-items: center;
}

.search-content .btn-search i {
    margin-right: 5px;
}

.search-content.show {
    display   : flex;
    transition: .2s ease-in-out;
    top       : 20px;
}

#searchButton {
    padding         : 8px 12px;
    background-color: #007bff;
    color           : white;
    border          : none;
    border-radius   : 4px;
    cursor          : pointer;
}

#searchResults {
    background-color: #f5f5f5;
    border          : 1px solid #ddd;
    margin-top      : 10px;
    padding         : 10px;
    display         : none;
    /* Initially hidden */
    position        : fixed;
    top             : 8vh;
    left            : 0;
    width           : 100%;
    z-index         : 10;

    background             : rgba(255, 255, 255, 0.521);
    border-radius          : 16px;
    box-shadow             : 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter        : blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border                 : 1px solid rgba(255, 255, 255, 0.3);
    top                    : 0;
    height                 : 100vh;
    padding-top            : 100px;

}

#searchResults ul {
    list-style: none;
    padding   : 0;
    max-height: 80vh;
    overflow-y: scroll;
}

#searchResults li {
    padding        : 5px 0;
    border-bottom  : 1px solid #eee;
    justify-content: space-between;
    display        : flex;
    font-weight    : bold;
    padding        : 0 50px;
    text-transform : uppercase;
    align-items    : center;
}

#searchResults li i {
    margin-right: 5px;
}

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

.search-result-item button {
    width          : fit-content;
    margin-top     : 0;
    display        : flex;
    align-items    : center;
    justify-content: center;
    padding        : 0;
    width          : 40px;
    height         : 40px;
    border-radius  : 50%;
}

.search-result-item button i {
    margin: 0 !important;

}

.search-result-item .name {
    width: 50%;
}

.search-result-item .d-flex {
    align-items: center;
}




.search-container {
    position   : relative;
    /* Add this to position the clear button */
    display    : flex;
    align-items: center;
    position   : relative;
}

.search-content {
    display    : none;
    align-items: center;
}

.clear-button-search {
    position   : absolute;
    right      : 10px;
    /* Adjust as needed */
    top        : 50%;
    transform  : translateY(-50%);
    background : none;
    border     : none;
    cursor     : pointer;
    padding    : 0;
    font-size  : 16px;
    /* Adjust icon size */
    color      : #999;
    /* Adjust icon color */
    display    : flex;
    align-items: center;
    width      : fit-content;
}

#clearSearchButton {
    top            : 22px;
    height         : 30px;
    width          : 80px;
    display        : flex;
    align-items    : center;
    justify-content: center;
    background     : #e7e7e7;
    border-radius  : 2px;
    right          : 80px;
    font-size      : 12px;
}

#clearSearchButton i {
    margin-left: 5px;
}


.clear-button {
    display: none !important;
}

.time-slot.active .clear-button {
    display        : flex !important;
    justify-content: center;
    align-items    : center;
}

.clear-button i {
    margin-right: 5px;
}

/* Add the follow code on this file */

.login-container {
    display        : flex;
    justify-content: center;
    align-items    : center;
    height         : 100vh;
    background     : linear-gradient(to right, #6a11cb, #2575fc);
    background     : linear-gradient(to right, #252129, #000000);
    /* Gradient background */
    border         : black;


    --gradient-color-1: #a960ee;
    --gradient-color-2: #ff333d;
    --gradient-color-3: #90e0ff;
    --gradient-color-4: #ffcb57;
    z-index           : 0;
}

.login-container form {
    background          : #ffffff;
    padding             : 40px 30px;
    border-radius       : 15px;
    box-shadow          : 0 10px 20px rgba(0, 0, 0, 0.1);
    max-width           : 450px;
    width               : 100%;
    transition          : transform 0.3s ease, box-shadow 0.3s ease;
    position            : relative;
    z-index             : 999;
    /*  background-color: rgba(21, 24, 35, 0.7); */
    box-shadow          : inset 2px 2px 10px rgba(0, 0, 0, 0.3);

}

.login-container form::after {
    position       : absolute;
    top            : 0;
    left           : 0;
    right          : 0;
    z-index        : -91;
    height         : 100%;
    width          : 100%;
    margin         : 0 auto;
    filter         : blur(40px);
    background     : linear-gradient(90deg, #0fffc1, #7e0fff);
    background-size: 200% 200%;
    animation      : animateGlow 10s ease infinite;
}


@keyframes animateGlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.login-container form:hover {
    transform : translateY(-5px);
    /* Subtle hover effect */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.login-container h2 {
    text-align    : center;
    margin-bottom : 25px;
    color         : #333;
    font-weight   : 500;
    font-size     : 1.8rem;
    letter-spacing: 1px;
}

.login-container .btn {
    background       : linear-gradient(to right, #6a11cb, #2575fc);
    font-weight      : bold;
    background       : linear-gradient(to right, #252129, #000000);
    height           : 60px;
    border           : none;
    color            : rgba(255, 255, 255, 0.9);
    border-radius    : 50px;
    background       : linear-gradient(-45deg, #ffa63d, #ff3d77, #338aff, #3cf0c5);
    background-size  : 600%;
    -webkit-animation: anime 16s linear infinite;
    animation        : anime 16s linear infinite;
}


@-webkit-keyframes anime {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes anime {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}



.login-container .form-control {
    height       : 60px;
    border-radius: 50px;
    padding-left : 40px;

}

.login-container .form-control::placeholder {
    font-size: 14px;
}


.login-container label {
    font-size  : 12px;
    font-weight: bold;
    margin-left: 15px;
    height     : 30px;
    display    : flex;
    align-items: center;
}

input {
    width        : 100%;
    padding      : 12px 15px;
    margin-bottom: 20px;
    border       : 2px solid #ddd;
    border-radius: 10px;
    font-size    : 1rem;
    transition   : border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus {
    border-color: #2575fc;
    box-shadow  : 0 0 8px rgba(37, 117, 252, 0.5);
}

button {
    width           : 100%;
    padding         : 12px 15px;
    border          : none;
    background-color: #2575fc;
    color           : #fff;
    border-radius   : 10px;
    font-size       : 1.1rem;
    cursor          : pointer;
    transition      : background-color 0.3s ease;
}



footer {
    text-align: center;
    margin-top: 20px;
}



footer a {
    color          : #2575fc;
    text-decoration: none;
    font-size      : 0.9rem;
    transition     : color 0.3s ease;
}

footer a:hover {
    color: #6a11cb;
}


.alert-danger {
    background : #c91527;
    color      : #fff;
    text-align : center;
    font-weight: bold;
}


.modal-body {
    justify-content: center;
    display        : flex;
}

.modal.show .modal-dialog {
    transform  : none;
    margin     : auto;
    height     : 100vh;
    display    : flex;
    align-items: center;
}



.menu-container {
    display : flex;
    height  : 100vh;
    position: relative;
    position: fixed;
    top     : 0;
    z-index : 9999;
}

.menu-container {
    transform : translateX(-250px);
    transition: transform 0.3s ease;
}

.menu-open {
    transform : translateX(250px);
    transition: transform 0.3s ease;
}

.menu {
    width           : 250px;
    background-color: #333;
    color           : white;
    position        : fixed;
    left            : -250px;
    height          : 100%;
    transition      : transform 0.3s ease;

    border-radius          : 8px;
    text-align             : center;
    cursor                 : pointer;
    position               : relative;
    background             : rgba(255, 255, 255, 0.87);
    border-radius          : 16px;
    box-shadow             : 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter        : blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border                 : 1px solid rgba(255, 255, 255, 0.3);
}

.menu ul {
    list-style: none;
    padding   : 0;
    margin    : 0;
}

.menu ul li {
    padding   : 15px;
    text-align: left;
}

.menu ul li a {
    color          : #000;
    text-decoration: none;
    font-weight    : bold;
}



#top-status {
    position: absolute;
    z-index: 9999;
 /*  display: flex; */
 display: none;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 15px;
}


@media screen and (max-width:1368px) {
    .day-container {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media screen and (max-width:1180px) {
    .time-slot .time {
        font-size: 18px;
    }

    .time-slot.editable .reservation-info {
        width: 110%;
    }

    .reservation-info {
        width    : 100%;
        font-size: 12px;
    }
}


@media screen and (max-width:1024px) {
    .day-container {
        grid-template-columns: repeat(6, 1fr);
    }

    .time-slot.editable .reservation-info {
        width: 110%;
    }

    .time-slot.confirm-button {
        display: flex !important;
    }

    #nextReservationInfo {
        font-size: 12px;
    }

    .search-content.show {
        display   : flex;
        transition: .2s ease-in-out;
        top       : 20px;
        width     : 70%;
        z-index   : 99999;
        background: #fff;
    }
}





@media screen and (max-width:450px) {

    .content {

        position: fixed;

    }

    .login-container form {
        padding: 30px 20px;
        width  : 85%;
    }

    .date-info {
        margin-top: 0;
        position  : fixed;
        top       : 5px;
        right     : 5px;
        z-index   : 99999;
    }

    .time-slot.editable {
        margin           : 0;
        padding          : 0;
        /*        height : 100vh;
*/
    }

    .time-slot.editable .reservation-info {
        width: 100%;
    }

    .time-slot:hover .confirm-button {
        display: flex;
        width  : -webkit-fill-available;
    }

    header {
        height         : auto;
        flex-wrap      : wrap;
        padding        : 10px;
        justify-content: start;
    }

    header h1 small {

        font-size: 8px;
    }

    .search-container {
        width  : 100%;
        z-index: 99;
    }

    #searchResults ul {
        padding-top: 50px;
    }

    .day-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .time-slot.confirm-button {
        display: flex !important;
    }

    .time-slot {
        min-height: 250px;
    }

    .search-result-item {
        flex-wrap: wrap;
    }

    #searchResults li {
        padding: 0 !important;
    }

    .search-content.show {
        display   : flex;
        transition: .2s ease-in-out;
        top       : 50px;
        width     : 100%;
        background: #fff;
        z-index   : 999;
    }
}

@media screen and (max-width:390px) {
    body {
        overflow-x: hidden;
    }

    .time-slot {
        min-height: 140px;
    }


    .time-slot.editable {
        margin: 0;
    }

    .dayContainer,
    .flatpickr-calendar.inline {
        min-width: 100%;
        width    : 100%;
        max-width: 100%;
    }

    .flatpickr-innerContainer {
        display        : flex;
        justify-content: center;
    }

    .modal.show .modal-dialog {
        transform: none;
        width    : 100%;
        padding  : 0;
        margin   : 0;
    }

}