/* ========================================
   RESET
======================================== */

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

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f7fb;
    color: #172033;
    min-height: 100vh;
}


/* ========================================
   MENU LATERAL
======================================== */

.sidebar-toggle {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #2f80c0;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    z-index: 150;
}


.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 240px;
    height: 100vh;
    background: #102a43;
    display: flex;
    flex-direction: column;
    padding: 28px 18px 20px;
    z-index: 100;
}

.sidebar-logo {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 12px 35px;
}

.sidebar-logo img {
    width: 150px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 13px;
    width: 100%;
    padding: 13px 15px;
    border-radius: 10px;
    color: #dbe8f5;
    text-decoration: none;
    font-size: 15px;
    transition: 0.2s ease;
}

.menu-item:hover {
    background: #1d405f;
    color: #ffffff;
}

.menu-item.active {
    background: #2f80c0;
    color: #ffffff;
}

.menu-icon {
    width: 20px;
    text-align: center;
    font-size: 18px;
}

.sidebar-bottom {
    width: 100%;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.menu-item.logout:hover {
    background: #803b45;
}


/* ========================================
   CONTEÚDO PRINCIPAL
======================================== */

.main-content {
    margin-left: 240px;
    min-height: 100vh;
    padding: 45px 55px;
}

.top-date {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-bottom: 20px;
    line-height: 1.2;
}

.top-date span {
    font-size: 12px;
    color: #718096;
    margin-bottom: 2px;
}

.top-date strong {
    font-size: 15px;
    color: #102a43;
}

.sidebar.closed {
    width: 0;
    padding: 0;
    overflow: visible;
}

.sidebar.closed .sidebar-logo,
.sidebar.closed .menu,
.sidebar.closed .sidebar-bottom {
    display: none;
}

.sidebar.closed .sidebar-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
}

.sidebar:not(.closed) .sidebar-toggle {
    color: #ffffff;
}

.main-content.sidebar-closed {
    margin-left: 0;
    padding-left: 130px;
}

.page-header {
    margin-bottom: 38px;
}

.page-header h1 {
    font-size: 30px;
    font-weight: 700;
    color: #102a43;
    margin-bottom: 8px;
}

.page-header p {
    color: #718096;
    font-size: 15px;
}


/* ========================================
   BUSCA DE CLIENTE
======================================== */

.client-search-section {
    width: 100%;
    max-width: 1050px;
    margin: 0;
}

.section-title {
    margin-bottom: 22px;
}

.section-title h2 {
    font-size: 21px;
    color: #172033;
    margin-bottom: 7px;
}

.section-title p {
    font-size: 14px;
    color: #718096;
}

.search-area {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.search-input-wrapper {
    position: relative;
    flex: 1;
}

.search-input-wrapper input {
    width: 100%;
    height: 50px;
    border: 1px solid #d7e0ea;
    border-radius: 10px;
    background: #ffffff;
    padding: 0 18px 0 48px;
    font-size: 15px;
    color: #172033;
    outline: none;
    transition: 0.2s ease;
}

.search-input-wrapper input:focus {
    border-color: #2f80c0;
    box-shadow: 0 0 0 3px rgba(47, 128, 192, 0.12);
}

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    color: #7890a5;
    pointer-events: none;
}

.btn-primary {
    border: none;
    border-radius: 10px;
    background: #2f80c0;
    color: #ffffff;
    height: 50px;
    padding: 0 22px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

.btn-primary:hover {
    background: #246a9f;
}

.btn-secondary {
    border: 1px solid #d7e0ea;
    border-radius: 10px;
    background: #ffffff;
    color: #4a5d70;
    height: 50px;
    padding: 0 22px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

.btn-secondary:hover {
    background: #f3f6f9;
}


/* ========================================
   RESULTADOS DOS CLIENTES
======================================== */

.search-results {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.empty-search {
    background: #ffffff;
    border: 1px solid #e1e8ef;
    border-radius: 14px;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px;
}

.empty-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #eaf3fa;
    color: #2f80c0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 18px;
}

.empty-search h3 {
    font-size: 17px;
    color: #34495e;
    margin-bottom: 7px;
}

.empty-search p {
    color: #8a98a8;
    font-size: 14px;
}


/* ========================================
   CARD DE CLIENTE
======================================== */

.client-result {
    background: #ffffff;
    border: 1px solid #e0e7ee;
    border-radius: 12px;
    padding: 18px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: 0.2s ease;
}

.client-result:hover {
    border-color: #2f80c0;
    box-shadow: 0 5px 18px rgba(27, 58, 88, 0.08);
    transform: translateY(-1px);
}

.client-result-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.client-result-name {
    font-size: 16px;
    font-weight: 600;
    color: #1f3448;
}

.client-result-details {
    font-size: 13px;
    color: #7a8998;
}

.client-result-arrow {
    font-size: 22px;
    color: #9aabbc;
}


/* ========================================
   MODAL / OVERLAY
======================================== */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(11, 30, 48, 0.45);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: 0.25s ease;
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}


/* ========================================
   PAINEL LATERAL DO CLIENTE
======================================== */

.client-drawer {
    position: absolute;
    top: 0;
    right: 0;
    width: 430px;
    max-width: 92vw;
    height: 100%;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: 0.3s ease;
    box-shadow: -8px 0 30px rgba(15, 35, 55, 0.12);
}

.modal-overlay.open .client-drawer {
    transform: translateX(0);
}

.drawer-header {
    padding: 28px 28px 22px;
    border-bottom: 1px solid #e7edf2;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.drawer-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: #2f80c0;
    margin-bottom: 7px;
}

.drawer-header h2 {
    font-size: 18px;
    color: #172033;
    line-height: 1.25;
}

.drawer-client-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.drawer-client-icon {
    width: 36px;
    height: 36px;
    padding: 8px;
    border-radius: 50%;
    background: #eaf3fa;
    color: #2f80c0;
    flex-shrink: 0;
}

.btn-close {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    background: #f1f4f7;
    color: #5c6d7e;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    transition: 0.2s ease;
}

.btn-close:hover {
    background: #e5ebf0;
}

.drawer-content {
    flex: 1;
    overflow-y: auto;
    padding: 25px 28px;
}

.client-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 30px;
}

.info-item {
    background: #f6f8fa;
    border-radius: 10px;
    padding: 14px;
}

.info-item span {
    display: block;
    font-size: 11px;
    color: #8291a0;
    margin-bottom: 6px;
}

.info-item strong {
    display: block;
    font-size: 14px;
    color: #273b4e;
    word-break: break-word;
}


/* ========================================
   HISTÓRICO DE RESERVAS
======================================== */

.reservation-history {
    border-top: 1px solid #e8edf2;
    padding-top: 24px;
}

.section-header {
    margin-bottom: 18px;
}

.section-header h3 {
    font-size: 17px;
    color: #26394c;
}

.reservation-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.history-empty {
    border: 1px dashed #d8e1e8;
    border-radius: 10px;
    padding: 25px 18px;
    text-align: center;
}

.history-empty p {
    color: #8a98a8;
    font-size: 13px;
    line-height: 1.5;
}

.reservation-card {
    border: 1px solid #e1e8ee;
    border-radius: 10px;
    padding: 15px;
    background: #ffffff;
    box-shadow: 0 3px 10px rgba(39, 59, 78, 0.08);
}

.reservation-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.reservation-card-title {
    font-size: 14px;
    font-weight: 600;
    color: #273b4e;
}

.reservation-status {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 20px;
    padding: 5px 9px;
}

/* RESERVADO — azul */
.reservation-status.reservado {
    background: #eaf3fa;
    color: #2f80c0;
}

/* CHECK_IN — roxo */
.reservation-status.check-in {
    background: #f0eafa;
    color: #7b4bb7;
}

/* CHECK_OUT — cinza */
.reservation-status.check-out {
    background: #eef0f2;
    color: #6f7b87;
}

.reservation-card-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 12px;
    color: #718096;
}

/* ========================================
   INFORMAÇÕES DA RESERVA
======================================== */

.reservation-card-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 18px;
    margin-top: 12px;
    padding: 12px 0;
    border-top: 1px solid #edf1f4;
    border-bottom: 1px solid #edf1f4;
    font-size: 12px;
    color: #718096;
}

.reservation-card-info > div {
    line-height: 1.4;
}

.reservation-card-info > div:nth-child(1) {
    font-weight: 700;
    color: #526577;
}

.reservation-card-info > div:nth-child(2) {
    font-weight: 600;
    color: #526577;
}

.reservation-card-info > div:nth-child(3) {
    grid-column: 1 / -1;
    color: #718096;
}

.reservation-card-info > div:nth-child(4) {
    color: #526577;
}

.reservation-card-info > div:nth-child(5) {
    color: #b6535d;
    font-weight: 600;
}

.reservation-card-info > div:nth-child(6) {
    color: #b6535d;
    font-weight: 600;
}

/* ========================================
   BOTÕES — ALTERAR / EXCLUIR
======================================== */

.reservation-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.reservation-action-btn {
    height: 32px;
    padding: 0 14px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

/* VOUCHER */
.reservation-voucher-btn {
    background: #edf7fc;
    border: 1px solid #b9dced;
    color: #2f80c0;
}

.reservation-voucher-btn:hover {
    background: #2f80c0;
    border-color: #2f80c0;
    color: #ffffff;
}

/* ALTERAR */
.reservation-edit-btn {
    background: #FFFFFF;
    border: 1px solid #4A90C2;
    color: #4A90C2;
}

.reservation-edit-btn:hover {
    background: #4A90C2;
    border-color: #4A90C2;
    color: #ffffff;
}

/* EXCLUIR */
.reservation-delete-btn {
    background: #fdf0f1;
    border: 1px solid #edcdd0;
    color: #b6535d;
}

.reservation-delete-btn:hover {
    background: #b6535d;
    border-color: #b6535d;
    color: #ffffff;
}


/* ========================================
   RODAPÉ DO DRAWER
======================================== */

.drawer-footer {
    padding: 18px 28px;
    border-top: 1px solid #e7edf2;
}

.btn-new-reservation {
    width: 100%;
}


/* ========================================
   MODAL DE NOVA RESERVA
======================================== */

#modal-reserva {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
}

.reservation-modal {
    width: 850px;
    max-width: 100%;
    max-height: calc(100vh - 50px);
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: translateY(15px);
    transition: 0.25s ease;
    box-shadow: 0 18px 60px rgba(15, 35, 55, 0.18);
}

#modal-reserva.open .reservation-modal {
    transform: translateY(0);
}

.reservation-modal-header {
    padding: 25px 30px;
    border-bottom: 1px solid #e7edf2;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.reservation-modal-header h2 {
    font-size: 21px;
    color: #172033;
}

.reservation-modal-content {
    flex: 1;
    overflow-y: auto;
    padding: 25px 30px;
}


/* ========================================
   CLIENTE SELECIONADO
======================================== */

.selected-client {
    background: #edf5fb;
    border: 1px solid #d5e8f5;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 24px;
}

.selected-client span {
    display: block;
    font-size: 11px;
    color: #6f879b;
    margin-bottom: 5px;
}

.selected-client strong {
    font-size: 15px;
    color: #1f4f73;
}


/* ========================================
   FORMULÁRIO
======================================== */

.form-section {
    padding: 22px 0;
    border-top: 1px solid #edf0f3;
}

.form-section:first-of-type {
    border-top: none;
    padding-top: 0;
}

.form-section-title {
    margin-bottom: 17px;
}

.form-section-title h3 {
    font-size: 16px;
    color: #293c4f;
    margin-bottom: 5px;
}

.form-section-title p {
    font-size: 12px;
    color: #8391a0;
    line-height: 1.5;
}

.form-grid {
    display: grid;
    gap: 16px;
}

.two-columns {
    grid-template-columns: 1fr 1fr;
}

.three-columns {
    grid-template-columns: 1fr 1fr 1fr;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-group label {
    font-size: 12px;
    font-weight: 600;
    color: #526577;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    border: 1px solid #d7e0e8;
    border-radius: 9px;
    background: #ffffff;
    color: #273b4e;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: 0.2s ease;
}

.form-group input,
.form-group select {
    height: 45px;
    padding: 0 13px;
}

.form-group textarea {
    padding: 12px 13px;
    resize: vertical;
    min-height: 85px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #2f80c0;
    box-shadow: 0 0 0 3px rgba(47, 128, 192, 0.1);
}

.form-group input[readonly] {
    background: #f4f7f9;
    color: #607386;
}

.form-group select:disabled {
    background: #f1f4f6;
    color: #9aa6b1;
    cursor: not-allowed;
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: #b8c8d6;
}

/* ========================================
   RESUMO DE PAGAMENTO
======================================== */

.payment-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 18px;
    border: 1px solid #e1e7ec;
    border-radius: 12px;
    overflow: hidden;
    background: #f8fafb;
}

.payment-summary > div {
    padding: 15px 16px;
    background: #f8fafb;
}

.payment-summary > div + div {
    border-left: 1px solid #e1e7ec;
}

.payment-summary span {
    display: block;
    font-size: 10px;
    font-weight: 600;
    color: #8291a0;
    margin-bottom: 6px;
}

.payment-summary strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #293c4f;
}

.payment-summary > div:nth-child(2) strong {
    color: #3f8f62;
}

.payment-summary > div:nth-child(3) {
    background: #fdf5f5;
}

.payment-summary > div:nth-child(3) strong {
    color: #b6535d;
}

/* ========================================
   RODAPÉ DO MODAL
======================================== */

.reservation-modal-footer {
    padding: 18px 30px;
    border-top: 1px solid #e7edf2;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}


/* ========================================
   RESPONSIVO
======================================== */

@media (max-width: 850px) {

    .sidebar {
        width: 210px;
    }

    .main-content {
        margin-left: 210px;
        padding: 35px 25px;
    }

    .search-area {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-primary {
        width: 100%;
    }

    .three-columns {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 650px) {

        .main-content {
        margin-left: 0px;
        padding: 28px 18px;
    }

    .main-content.sidebar-closed {
        padding-left: 18px;
    }

    .page-header h1 {
        font-size: 25px;
    }

    .client-drawer {
        width: 100%;
        max-width: 100%;
    }

    .two-columns {
        grid-template-columns: 1fr;
    }

    .client-info {
        grid-template-columns: 1fr;
    }

    .payment-summary {
        grid-template-columns: 1fr;
    }

    .reservation-modal-footer {
        flex-direction: column-reverse;
    }

    .reservation-modal-footer button {
        width: 100%;
    }

}
/* ========================================
   MODAL — NOVO CLIENTE
======================================== */

#modal-novo-cliente {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
}

.client-form-modal {
    width: 500px;
    max-width: 100%;
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 18px 60px rgba(15, 35, 55, 0.18);
    transform: translateY(15px);
    transition: 0.25s ease;
}

#modal-novo-cliente.open .client-form-modal {
    transform: translateY(0);
}

.client-form-header {
    padding: 25px 30px;
    border-bottom: 1px solid #e7edf2;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.client-form-header h2 {
    font-size: 21px;
    color: #172033;
    margin-bottom: 6px;
}

.client-form-header p {
    font-size: 13px;
    color: #8391a0;
}

.client-form-content {
    padding: 25px 30px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.client-form-footer {
    padding: 18px 30px;
    border-top: 1px solid #e7edf2;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* ========================================
   STATUS DA ESTADIA
======================================== */

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 11px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
}

/* Reservado — azul */
.status-badge.reservado {
    background: #eaf3fa;
    color: #2f80c0;
}

/* Check-in — roxo */
.status-badge.check-in {
    background: #f0eafa;
    color: #7b4bb7;
}

/* Check-out — cinza */
.status-badge.check-out {
    background: #eef0f2;
    color: #6f7b87;
}

/* ========================================
   ÍCONE — NOVA RESERVA
======================================== */

.reservation-modal-header .reservation-title {
    display: flex;
    align-items: center;
    gap: 18px;
}

.reservation-modal-header .reservation-logo {
    width: 28px;
    height: 28px;
    max-width: 28px;
    max-height: 28px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}
/* ========================================
   BOTÕES — CHECK-IN / CHECK-OUT
======================================== */

.stay-actions #btn-checkin {
    background: #f0eafa;
    border: 1px solid #d9c9eb;
    color: #7b4bb7;
}

.stay-actions #btn-checkin:hover {
    background: #7b4bb7;
    border-color: #7b4bb7;
    color: #ffffff;
}

.stay-actions #btn-checkout {
    background: #eef0f2;
    border: 1px solid #d5dbe0;
    color: #6f7b87;
}

.stay-actions #btn-checkout:hover {
    background: #6f7b87;
    border-color: #6f7b87;
    color: #ffffff;
}

/* ========================================
   BOTÕES — SALVAR / CANCELAR
======================================== */

#salvar-reserva {
    background: #edf7f1;
    border: 1px solid #c9e5d4;
    color: #3f8f62;
}

#salvar-reserva:hover {
    background: #3f8f62;
    border-color: #3f8f62;
    color: #ffffff;
}

#cancelar-reserva {
    background: #fdf0f1;
    border: 1px solid #edcdd0;
    color: #b6535d;
}

#cancelar-reserva:hover {
    background: #b6535d;
    border-color: #b6535d;
    color: #ffffff;
}
/* ========================================
   REGISTROS DE PAGAMENTO
======================================== */

.payment-history {
    margin-top: 18px;
}

.payment-history-title {
    font-size: 12px;
    font-weight: 600;
    color: #526577;
    margin-bottom: 10px;
}

.payment-history-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.payment-history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 12px 14px;
    background: #f8fafb;
    border: 1px solid #e4e9ee;
    border-radius: 10px;
    transition: 0.2s ease;
}

.payment-history-item:hover {
    background: #f3f7f4;
    border-color: #cfe0d5;
}

.payment-history-item > div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.payment-history-item strong {
    font-size: 14px;
    font-weight: 700;
    color: #3f8f62;
}

.payment-history-item span {
    padding: 4px 8px;
    border-radius: 6px;
    background: #edf7f1;
    color: #3f8f62;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.4px;
}

.payment-history-item small {
    font-size: 11px;
    color: #8291a0;
    white-space: nowrap;
}

.payment-history-empty {
    padding: 14px;
    text-align: center;
    border: 1px dashed #d8e1e8;
    border-radius: 10px;
    color: #8a98a8;
    font-size: 12px;
}


/* ========================================
   OBSERVAÇÕES
======================================== */

.form-group:has(#observacoes) {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #e5eaee;
}

.form-group:has(#observacoes) label {
    font-size: 12px;
    font-weight: 600;
    color: #526577;
    margin-bottom: 8px;
}

.form-group:has(#observacoes) textarea {
    min-height: 90px;
    border-radius: 10px;
    background: #ffffff;
}

/* ========================================
   NOTIFICAÇÕES — TOAST
======================================== */

.toast {
    position: fixed;

    top: 28px;
    left: 50%;

    min-width: 320px;
    max-width: 450px;

    padding: 15px 22px;

    border-radius: 14px;

    color: #ffffff;

    font-size: 14px;
    font-weight: 600;

    text-align: center;

    z-index: 9999;

    opacity: 0;

    transform: translate(-50%, -15px);

    transition:
        opacity 0.25s ease,
        transform 0.25s ease;

    pointer-events: none;

    /* efeito 3D */
    border: 1px solid rgba(255, 255, 255, 0.35);

    box-shadow:
        0 4px 0 rgba(0, 0, 0, 0.12),
        0 10px 25px rgba(15, 35, 55, 0.20);
}

.toast.show {
    opacity: 1;

    transform: translate(-50%, 0);
}


/* SUCESSO */

.toast.success {
    background: #16a34a;

    border-color: #128238;

    box-shadow:
        0 4px 0 #0e7130,
        0 10px 25px rgba(22, 163, 74, 0.25);
}


/* ERRO */

.toast.error {
    background: #dc2626;

    border-color: #b91c1c;

    box-shadow:
        0 4px 0 #991b1b,
        0 10px 25px rgba(220, 38, 38, 0.25);
}


/* INFORMAÇÃO */

.toast.info {
    background: #2563eb;

    border-color: #1d4ed8;

    box-shadow:
        0 4px 0 #1e40af,
        0 10px 25px rgba(37, 99, 235, 0.25);
}


/* MOBILE */

@media (max-width: 520px) {

    .toast {
        top: 20px;

        min-width: auto;
        width: calc(100% - 32px);

        max-width: 450px;

        padding: 14px 18px;
    }

}

/* ========================================
   CONFIRMAÇÃO DE EXCLUSÃO
======================================== */

.modal-confirmacao-exclusao {
    position: fixed;
    inset: 0;
    background: rgba(15, 31, 45, 0.58);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);

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

    padding: 20px;
    z-index: 10000;

    opacity: 0;
    transition: opacity 0.2s ease;
}

.modal-confirmacao-exclusao.open {
    opacity: 1;
}

.confirmacao-exclusao-box {
    width: 100%;
    max-width: 500px;

    background: #ffffff;
    border-radius: 20px;

    padding: 34px 36px 30px;

    text-align: center;

    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.25);

    transform: translateY(15px) scale(0.98);
    transition: transform 0.2s ease;
}

.modal-confirmacao-exclusao.open
.confirmacao-exclusao-box {
    transform: translateY(0) scale(1);
}


/* ÍCONE */

.confirmacao-exclusao-icone {
    width: 76px;
    height: 76px;

    margin: 0 auto 22px;

    border-radius: 50%;

    background: #feecec;

    display: flex;
    align-items: center;
    justify-content: center;
}

.confirmacao-exclusao-icone svg {
    width: 34px;
    height: 34px;

    stroke: #dc2626;
    stroke-width: 2;
}


/* TÍTULO */

.confirmacao-exclusao-box h2 {
    margin: 0 0 12px;

    font-size: 27px;
    font-weight: 700;

    color: #243447;
}


/* TEXTO */

.confirmacao-exclusao-box p {
    margin: 0 0 6px;

    font-size: 17px;
    line-height: 1.5;

    color: #52657a;
}

.confirmacao-exclusao-box span {
    display: block;

    margin-bottom: 28px;

    font-size: 15px;
    line-height: 1.5;

    color: #7a8897;
}


/* BOTÕES */

.confirmacao-exclusao-acoes {
    display: flex;
    gap: 14px;
}

.confirmacao-exclusao-acoes button {
    flex: 1;

    height: 54px;

    border-radius: 12px;

    font-family: inherit;
    font-size: 16px;
    font-weight: 600;

    cursor: pointer;

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        background 0.15s ease;
}


/* CANCELAR */

.confirmacao-btn-cancelar {
    background: #ffffff;

    border: 1px solid #d8dee6;

    color: #243447;
}

.confirmacao-btn-cancelar:hover {
    background: #f6f8fa;
}


/* EXCLUIR */

.confirmacao-btn-excluir {
    border: none;

    background: #dc2626;

    color: #ffffff;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

.confirmacao-btn-excluir:hover {
    background: #c81e1e;
    box-shadow: 0 7px 18px rgba(220, 38, 38, 0.22);
}

.confirmacao-btn-excluir svg {
    width: 19px;
    height: 19px;
    stroke-width: 2.2;
}


/* MOBILE */

@media (max-width: 520px) {

    .confirmacao-exclusao-box {
        padding: 30px 22px 24px;
    }

    .confirmacao-exclusao-box h2 {
        font-size: 24px;
    }

    .confirmacao-exclusao-acoes {
        flex-direction: column-reverse;
    }

}

/* =========================================================
   RESPONSIVIDADE DOS FORMULÁRIOS E ROLAGEM NO CELULAR
   ========================================================= */

@media (max-width: 650px) {

    /* MODAL DE NOVA RESERVA */
    #modal-reserva {
        padding: 12px;
        align-items: center;
        overflow-y: auto;
    }

    .reservation-modal {
        width: 100%;
        max-width: 100%;
        max-height: calc(100vh - 24px);
        min-height: 0;
    }

    .reservation-modal-header {
        padding: 18px 20px;
        flex-shrink: 0;
    }

    .reservation-modal-content {
        min-height: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 20px;
    }

    .reservation-modal-footer {
        padding: 15px 20px;
        flex-shrink: 0;
    }


    /* MODAL DE NOVO CLIENTE */
    #modal-novo-cliente {
        padding: 12px;
        align-items: center;
        overflow-y: auto;
    }

    .client-form-modal {
        width: 100%;
        max-width: 100%;
        max-height: calc(100vh - 24px);
        min-height: 0;
        display: flex;
        flex-direction: column;
    }

    .client-form-header {
        padding: 18px 20px;
        flex-shrink: 0;
    }

    .client-form-content {
        min-height: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 20px;
    }

    .client-form-footer {
        padding: 15px 20px;
        flex-shrink: 0;
    }


    /* CAMPOS DOS FORMULÁRIOS */
    .form-grid.two-columns,
    .form-grid.three-columns {
        grid-template-columns: 1fr;
    }

    .payment-summary {
        grid-template-columns: 1fr;
    }

    .payment-summary > div + div {
        border-left: none;
        border-top: 1px solid #e1e7ec;
    }

}