/* Telefones no mobile: um embaixo do outro, alinhados space-between */
.phone-list-mobile {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}
.phone-mobile-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
/* Menu lateral escuro */

.calendar-container {
    margin-top: 16px;
}

/* Parte do Calendário */

.wrapper {
    width: 100%;
    background: transparent;
    padding: 0;
}

.calendar-header {
    display: flex;
    align-items: center;
    padding: 20px;
    padding-top: 0;
    justify-content: space-between;
}

.calendar-header .icons {
    display: flex;
    gap: 10px;
}

.calendar-header .icons span {
    height: 30px;
    width: 30px;
    cursor: pointer;
    background-color: var(--border);
    text-align: center;
    user-select: none;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-header .icons i {
    margin: 0;
    color: var(--primary-foreground);
    font-weight: 400;
}

.icons span:last-child {
    margin-right: -10px;
}

.calendar-header .icons span:hover {
    background: var(--primary);
}

.calendar-header .current-date {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-foreground);
}

.calendar {
    padding: 0;
}

.calendar ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    text-align: center;
    padding: 0;
    margin: 0;
}

.calendar .days {
    margin-bottom: 20px;
}

.calendar li {
    color: var(--muted-foreground);
    width: calc(100% / 7);
    font-size: 16px;
}

.calendar .weeks li {
    font-weight: 700;
    cursor: default;
}

.calendar .days li {
    z-index: 1;
    cursor: pointer;
    position: relative;
    margin-top: 20px;
    color: var(--primary-foreground);
}

.days li.inactive {
    color: var(--muted-foreground);
    font-size: 14px;
    font-weight: 400;
}

.days li.active {
    color: var(--primary-foreground);
}

.days li::before {
    position: absolute;
    content: "";
    left: 50%;
    top: 50%;
    height: 40px;
    width: 40px;
    z-index: -1;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.days li.active::before {
    background: var(--primary);
}

.days li:not(.active):hover::before {
    background: var(--primary);
}

/* Parte do Barbeiro */
.lista-barbeiros {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 16px;
    justify-content: space-between;
}
.card-barbeiro {
    color: var(--primary-foreground);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.card-barbeiro h3 {
    font-size: 16px;
    font-weight: 400;
    margin: 0;
    color: var(--primary-foreground);
    cursor: pointer;
}

.card-barbeiro img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
}

.card-barbeiro.selected img {
    border: 2px solid var(--primary);
}
.card-barbeiro.selected h3 {
    color: var(--primary);
}

.menu-body h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-foreground);
    margin: 0;
}

/* Horários disponíveis */
#horarios-disponiveis {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
}

/* Scroll horizontal para horários */
.horarios-scroll {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 8px;
    overflow-x: unset;
    overflow-y: unset;
    padding: 8px 0;
}

.horarios-scroll::-webkit-scrollbar {
    display: none;
}

/* Botão de horário */
.btn-horario {
    padding: 10px 20px;
    background: transparent;
    color: var(--primary-foreground);
    border: 2px solid var(--border);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border 0.2s;
    outline: none;
}

.btn-horario:hover {
    background: var(--primary);
    color: var(--primary-foreground);
}

/* Horário selecionado */
.btn-horario.selected,
.btn-horario:active {
    background: var(--primary);
    color: var(--primary-foreground);
    border-color: var(--primary);
}

/* Mobile/tablet: scroll horizontal */
@media (max-width: 1024px) {
    .horarios-scroll {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scrollbar-width: none;
        width: 100%;
    }
    .horarios-scroll > .btn-horario {
        flex: 0 0 auto; /* Não deixa quebrar linha */
    }
    .horarios-scroll::-webkit-scrollbar {
        display: none;
    }
}

/* Páginação */

.horarios-paginacao {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 12px;
}
.horarios-paginacao button {
    background: var(--border);
    color: var(--primary-foreground);
    border: none;
    border-radius: 6px;
    padding: 6px 16px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}
.horarios-paginacao button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Card Confirmação */
.card-confirmacao {
    background: var(--border);
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
    flex-direction: column;
}

.card-confirmacao .confirm-detail {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}
.card-confirmacao .confirm-detail:last-child {
    margin-bottom: 0;
}
.card-confirmacao .confirm-detail span {
    color: var(--muted-foreground);
}

.flex-space {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

#confirm-preco {
    font-weight: 700;
}

#confirm-data {
    font-weight: 400;
    color: var(--primary-foreground);
}
