/* static/css/agendamento_confirmado.css */

#view-confirmado {
    overflow: visible;
}

.booking-success-overlay {
    position: fixed;
    inset: 0;
    background: rgba(3, 8, 14, 0.72);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    z-index: 1200;
}

.booking-success-overlay.is-visible {
    display: flex;
}

.booking-success-card {
    width: min(100%, 334px);
    max-height: min(82vh, 680px);
    overflow: auto;
    background: linear-gradient(180deg, #182028 0%, #10161c 100%);
    border: 1px solid #2a3743;
    border-radius: 22px;
    padding: 0.9rem 0.9rem 0.85rem;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
    position: relative;
    animation: zoomIn 0.28s ease-out;
}

.booking-success-close {
    position: absolute;
    top: 0.7rem;
    right: 0.7rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #30404d;
    background: rgba(255, 255, 255, 0.03);
    color: #dfe7ee;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.booking-success-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(25, 182, 164, 0.12);
    color: #67e2d4;
    border: 1px solid rgba(25, 182, 164, 0.32);
    border-radius: 999px;
    max-width: calc(100% - 3rem);
    padding: 0.34rem 0.62rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.15;
}

.booking-success-title {
    margin: 0.68rem 0 0.22rem;
    color: #f6f8fb;
    font-size: 1.12rem;
    line-height: 1.18;
    padding-right: 2.25rem;
}

.booking-success-subtitle {
    margin: 0 0 0.55rem;
    color: #92a0ad;
    font-size: 0.77rem;
    line-height: 1.35;
}

.booking-success-status {
    margin: 0 0 0.55rem;
    color: #67e2d4;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.35;
}

.legacy-booking-details {
    display: block;
    margin-bottom: 0.75rem;
}

.booking-success-details {
    display: grid;
    gap: 0.42rem;
    margin-bottom: 0.8rem;
}

.booking-success-item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.78rem 0.9rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(59, 75, 90, 0.65);
}

.booking-success-label {
    color: #92a0ad;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.booking-success-value {
    color: #f6f8fb;
    font-weight: 700;
    text-align: right;
}

.booking-success-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.booking-success-directions {
    text-decoration: none;
}

@media (max-width: 560px) {
    .booking-success-actions {
        grid-template-columns: 1fr;
    }
}

.confirmation-popup-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000; /* Fundo preto 100% */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    box-sizing: border-box;
    z-index: 1000;
}

.confirmation-card {
    background: #1c1c1c; /* Fundo um pouco mais escuro para destacar o conteúdo */
    border-radius: 1.5rem;
    padding: 2rem 1.5rem;
    text-align: center;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    border: 1px solid #333;
    animation: zoomIn 0.4s cubic-bezier(0.3, 1, 0.7, 1) forwards;
}

.confirmation-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.confirmation-title span {
    color: #19b6a4; /* Cor do tema */
}

.details-table {
    text-align: left;
    margin: 0.55rem 0 0.75rem;
    font-size: 0.8rem;
}

.details-row {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.38rem 0;
    border-bottom: 1px solid #333;
}

.details-row:last-child {
    border-bottom: none;
}

.details-label { color: #999; font-size: 0.76rem; }
.details-value { color: #fff; font-weight: 600; text-align: right; font-size: 0.8rem; line-height: 1.35; }

.date-value-container {
    display: flex; 
    align-items: center; 
    justify-content: flex-end;
}

.details-value .day-of-week {
    color: #ff9800; /* Laranja para o dia da semana */
    font-weight: 600;
    font-size: 1rem; /* Deixa o dia da semana um pouco maior */
}

.edit-icon-link {
    color: #ff9800;
    text-decoration: none;
    border: 1px solid #ff9800;
    border-radius: 8px;
    padding: 0.2rem 0.6rem;
    margin-left: 0.8rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.edit-icon-link:hover {
    color: #f57c00;
    border-color: #f57c00;
    transition: color 0.2s, border-color 0.2s;
}

.confirmation-divider {
    border: none;
    height: 1px;
    background-color: #333;
    margin-bottom: 1.5rem;
}

.btn-agendar {
    display: block;
    width: 100%;
    height: 3.5rem;
    line-height: 3.5rem;
    background: #19b6a4;
    color: #fff;
    border: none;
    border-radius: 1rem;
    padding: 0 2rem;
    font-size: 1.1rem;
    font-weight: bold;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
    text-align: center;
    text-decoration: none;
    transition: background 0.2s;
    cursor: pointer;
    box-sizing: border-box;
    margin-top: 1rem;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.horario-inicio {
    /* A cor agora é controlada pelos spans internos */
    border: 2px solid #32CD32; /* Borda verde-limão */
    padding: 0.1rem 0.38rem;
    border-radius: 6px;
    background-color: rgba(0, 0, 0, 0.2); /* Fundo escuro sutil, igual às tags */
    font-weight: 900;
    font-size: 0.82em;
}

.horario-inicio-label {
    color: #32CD32; /* Verde-limão, igual à borda */
}

.horario-inicio-hora {
    color: #fff; /* Hora em branco */
}

.horario-fim {
    color: #8B0000; /* Vermelho ainda mais escuro/apagado */
    font-weight: 500;
    font-size: 0.7em;
    margin-left: 0.55rem;
}

/* Estilo para os badges de serviço */
.servicos-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 0.25rem;
}

.servico-badge {
    color: #fff; /* Texto branco */
    border: 1px solid #ff9800; /* Borda laranja, igual ao botão editar */
    border-radius: 6px;
    padding: 0.14rem 0.4rem;
    font-size: 0.68rem;
    font-weight: 600;
    background-color: rgba(0, 0, 0, 0.2); /* Fundo preto sutil */
    display: inline-block;
}

.booking-success-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}

.booking-success-actions > :last-child {
    grid-column: 1 / -1;
}

.booking-success-actions .admin-btn {
    min-height: 44px;
    padding: 0.72rem 0.85rem;
    border-radius: 12px;
}

@media (max-width: 560px) {
    .booking-success-overlay {
        align-items: center;
        padding: 0.8rem;
    }

    .booking-success-card {
        width: min(100%, 320px);
        margin-top: 0;
        max-height: min(84vh, 640px);
        border-radius: 20px;
        padding: 0.82rem 0.82rem 0.78rem;
    }

    .booking-success-close {
        top: 0.65rem;
        right: 0.65rem;
        width: 34px;
        height: 34px;
    }

    .booking-success-badge {
        font-size: 0.68rem;
        padding: 0.32rem 0.55rem;
    }

    .booking-success-title {
        font-size: 1.02rem;
        padding-right: 2rem;
    }

    .booking-success-subtitle {
        font-size: 0.78rem;
        margin-bottom: 0.55rem;
    }

    .booking-success-status {
        font-size: 0.72rem;
        margin-bottom: 0.55rem;
    }

    .details-table {
        margin: 0.45rem 0 0.65rem;
        font-size: 0.76rem;
    }

    .details-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
        padding: 0.35rem 0;
    }

    .details-value,
    .date-value-container {
        width: 100%;
        text-align: left;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .booking-success-actions {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .booking-success-actions > :last-child {
        grid-column: 1 / -1;
    }
}

.plus-separator { color: #fff; font-weight: 600; }