﻿.error-message-panel {
    color: red;
    margin-top: 10px;
    font-size: 15px;
    text-align: center;
    text-decoration: none;
    margin-bottom: 10px;
}

.input-field-panel {
    background-color: white;
    color: black;
    border: solid 2px black;
    border-radius: 5px;
    padding: 12px;
    font-size: 20px;
    width: 100%;
    text-align: left;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s;
    font-family: 'BarlowCondensed', sans-serif;
}

.modal-overlay-reservationCodeModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}


.modal-content-reservationCodeModal {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: auto;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-height: 500px;
    max-width: 500px;
    overflow-y: auto;
    overflow-x: hidden;
}

    .modal-content-reservationCodeModal h2 {
        font-size: 26px;
        font-weight: 600;
    }

    .modal-content-reservationCodeModal p {
        font-size: 18px;
        margin-top: 5px;
    }

.buttons-reservationCodeModal {
    display: flex;
    gap: 20px;
    justify-content: flex-end;
}

.buttonTransparent-panel {
    background-color: transparent;
    color: #E40E18;
    border: none;
    border-radius: 5px;
    padding: 12px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    border: solid 2px #E40E18;
    font-family: 'BarlowCondensed', sans-serif;
    margin-top: 10px;
}

    .buttonTransparent-panel:hover {
        background-color: black;
        color: white;
        border: solid 2px black;
    }

    .buttonTransparent-panel.space-width {
        max-width: 240px;
        width: 240px;
        min-width: 240px;
    }

.pageBooking-section {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

.appointment-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    width: 100%;
    box-sizing: border-box;
    margin-top: -20px;
}

    .appointment-section h1 {
        font-size: 42px;
        color: var(--primary-text-color);
    }

/* Seção personalizada para informações e reserva */
.custom-section {
    display: flex;
    gap: 20px;
    padding: 40px;
    box-sizing: border-box;
}



/* Bloco retangular para a mensagem de reserva */
.rectangle-40 {
    width: 40%;
    height: 100%;
    background-color: #F4F4F4;
    border-radius: 5px;
    padding: 0 30px 12px 30px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-content: center;
}

.rectangle-40-booking {
    width: 40%;
    height: 100%;
    background-color: #F4F4F4;
    border-radius: 5px;
    padding: 20px;
    display: flex;
    flex-direction: column;
}


/* Bloco retangular para informações do kartódromo */
.rectangle-60 {
    width: 60%;
}

/* Informações do kartódromo */
.kartodromo-infos {
    display: flex;
    align-items: center;
    max-height: 150px;
    background-color: #F4F4F4;
    border-radius: 5px;
    width: 100%;
    padding: 10px;
}


.kartodromo-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: auto;
}

.kartodromo-company-infos {
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 10px;
}

.kartodromo-company-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.kartodromo-company-logo {
    min-width: 100px;
    min-height: 100px;
    max-width: 100px;
    max-height: 100px;
    background-color: white;
    border-radius: 5px;
    align-items: center;
    justify-content: center;
    display: flex;
    overflow: hidden;
    padding: 10px;
}

.logo-kartodromo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.kartodromo-phone {
    font-size: 22px;
    margin: 5px;
}

.kartodromo-SocialName {
    font-size: 30px;
    font-weight: 900;
    line-height: 1.0;
    color: var(--text-color);
}

.kartodromo-CityState {
    font-size: 22px;
    margin: 0;
    line-height: 1.0;
}

.kartodromo-social {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    margin-left: auto;
    margin: 5px;
    align-items: center;
    justify-content: center;
}

.social-logo {
    width: 25px;
}

/* Detalhes do agendamento (horário, bateria, vagas, preço) */
.booking-details {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #F4F4F4;
    border-radius: 5px;
    padding: 11px;
    margin-bottom: 10px;
    max-width: 100%;
}

.details-section {
    display: flex;
    margin-left: 40px;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

    .details-section span {
        font-size: 25px;
        white-space: nowrap;
        margin-left: -20px;
    }




.details-bold {
    font-weight: bold;
    color: var(--text-color);
}

.sizeButton {
    margin-left: 40px;
}

.sizeButton2 {
    display: none;
}


.no-bookings {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-top: 80px;
    font-size: 22px;
    font-weight: bold;
    height: 35vh;
}


@keyframes shake {
    10%, 90% {
        transform: translateX(-1px);
    }

    20%, 80% {
        transform: translateX(2px);
    }

    30%, 50%, 70% {
        transform: translateX(-4px);
    }

    40%, 60% {
        transform: translateX(4px);
    }
}

.modal-content-reservationCodeModal.shake {
    animation: shake 0.5s ease;
}

.pagination-controls {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    text-align: center;
}

    .pagination-controls button {
        padding: 4px 6px;
        width: 100px;
        height: 28px;
        border: 1px solid #ccc;
        background: #fff;
        cursor: pointer;
        font-size: 15px;
        text-align: center;
    }

        .pagination-controls button:disabled {
            opacity: 0.6;
            cursor: not-allowed;
        }

@media (min-width: 1374px) and (max-width: 1600px) {

    .details-section {
        width: 60%;
    }
}


@media (min-width: 1150px) and (max-width: 1374px) {
    .no-bookings {
        font-size: 18px;
        margin-bottom: 50px;
    }

    .booking-details {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 10px;
    }

        .booking-details.space-left {
            padding-left: 50px;
        }

        .booking-details span {
            font-size: 18px;
        }


    .details-section {
        display: grid;
        grid-template-columns: 1fr 1fr 3fr;
        gap: 10px;
        width: 100%;
        margin-left: 0;
    }

    .span2 {
        grid-column: 2 / -1;
    }

    .span3, .span4 {
        margin-top: 5px;
    }

    .sizeButton2 {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .sizeButton {
        display: none;
    }
}


@media (min-width: 768px) and (max-width: 1150px) {
    .appointment-section h1 {
        font-size: 35px;
    }

    .custom-section {
        flex-direction: column;
        align-items: center;
        padding: 20px;
    }

    .rectangle-40, .rectangle-60, .rectangle-40-booking {
        width: 100%;
    }

    .rectangle-40 {
        padding: 0 30px 5px 30px;
    }


        .rectangle-40 h3 {
            font-size: 20px;
        }

    .kartodromo-SocialName {
        font-size: 20px;
    }

    .kartodromo-phone, .kartodromo-CityState {
        font-size: 16px;
    }

    .reserve-button {
        padding: 10px 40px;
        font-size: 18px;
    }

    .no-bookings {
        font-size: 18px;
        margin-bottom: 50px;
    }

    .details-section {
        gap: 50px;
        width: 50%;
    }
}

@media (max-width: 768px) {

    .appointment-section h1 {
        font-size: 31px;
    }

    .custom-section {
        margin-top: 60px;
        flex-direction: column;
        align-items: center;
        padding: 20px;
    }

    .rectangle-40-booking {
        margin-top: -70px
    }

    .rectangle-40, .rectangle-60, .rectangle-40-booking {
        width: 100%;
    }

    .rectangle-40 {
        padding: 0 30px 5px 30px;
    }

        .rectangle-40 h3 {
            font-size: 20px;
        }


    .kartodromo-SocialName {
        font-size: 18px;
    }

    .kartodromo-phone, .kartodromo-CityState {
        font-size: 16px;
    }


    .reserve-button {
        padding: 10px 40px;
        font-size: 18px;
    }

    .no-bookings {
        font-size: 18px;
        margin-bottom: 50px;
    }

    .booking-details {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 10px;
    }

    .booking-details.space-left {
        padding-left: 35px;
    }

    .booking-details span {
        font-size: 18px;
    }

    .details-section {
        display: grid;
        grid-template-columns: 1.5fr 1fr 3fr;
        gap: 10px;
        width: 100%;
        margin-left: 0;
    }

    .span2 {
        grid-column: 2 / -1;
    }

    .span3, .span4 {
        margin-top: 5px;
    }

    .sizeButton2 {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .sizeButton {
        display: none;
    }

    .kartodromo-company-logo {
        min-width: 80px;
        min-height: 80px;
        max-width: 80px;
        max-height: 80px;
    }
}
