*,
*::before,
*::after {
    box-sizing: border-box;
}


body {
    background-color: #ffffff;
}

/* body {
    background-color: white;
    margin: 0;
    padding-bottom: 70px;
} */

.top-circle {
    width: 500px;
    height: 250px;
    background-color: var(--link-reserva-primary);
    border-radius: 0 0 500px 500px;
    margin: 0 auto;
    margin-top: -150px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 48px;
    font-weight: bold;
}

@media (max-width: 480px) {
    .top-circle {
        width: 400px;
    }
}

.circle-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--link-reserva-primary);
}

.procedure-btn {
    border: 2px solid var(--link-reserva-primary);
    border-radius: 10px;
    text-align: left;
    padding: 10px 15px;
    font-weight: 500;
    color: black;
    background-color: white;
}

.procedure-btn .arrow {
    float: right;
}

.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: var(--link-reserva-primary);
    color: white;
    text-align: center;
    padding: 12px 0;
    font-weight: 500;
}

.footer i {
    margin-right: 8px;
}

.schedule-box {
    border-radius: 20px;
    padding: 15px;
    font-size: 14px;
    display: inline-block;
    text-align: left;
    min-width: 250px;
}

.schedule-today {
    border-radius: 20px;
    padding: 5px 15px;
    display: inline-block;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
}

.schedule-accordion {
    margin-top: 10px;
}

.schedule-accordion .accordion-button {
    background-color: transparent;
    border: none;
    padding: 0;
    font-size: 14px;
    color: var(--link-reserva-primary);
    box-shadow: none;
    text-decoration: none;
}

.schedule-accordion .accordion-button:focus {
    box-shadow: none;
}

.schedule-accordion .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23007bff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    width: 1rem;
    height: 1rem;
}

.schedule-accordion .accordion-item {
    border: none;
    background-color: transparent;
}

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

.schedule-day:last-child {
    margin-bottom: 0;
}

.schedule-day .day {
    font-weight: normal;
    color: #333;
}

.schedule-day .hours {
    font-weight: normal;
    color: #333;
}

.schedule-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-weight: 600;
}

.schedule-header i {
    margin-right: 8px;
}

.section-title {
    color: var(--link-reserva-primary);
    font-weight: 600;
}

.btn-outline-info {
    border: 2px solid var(--link-reserva-primary);
    border-radius: 10px;
    font-weight: 500;
}

.accordion-button {
    border-radius: 10px;
}

.accordion-button:focus {
    box-shadow: none;
}

.accordion-item {
    border: none;
}

.professional-modal {
    padding: 15px;
    background-color: #fff;
}

.professional-modal .circle-img {
    margin-bottom: 10px;
}

.professional-modal p {
    margin: 0;
    font-size: 16px;
}

.professional-modal .name {
    font-weight: bold;
    color: #333;
}

.professional-modal .title {
    color: #666;
    text-transform: uppercase;
    font-size: 14px;
}

/* .professional-modal .specialty,
.professional-modal .registry {
    color: #444;
    font-size: 16px;
    font-weight: bold;
} */

.procedure-collapse .collapse {
    margin-top: 10px;
}

.price-option {
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 10px;
    background-color: #ffffff;
    /* Fundo branco */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-option .btn {
    margin-top: 0;
    /* Removido o espaçamento superior */
    padding: 5px 15px;
}

h4 {
    font-weight: 500;
}

.subtitle {
    margin-top: 8px;
    margin-bottom: 30px;
    font-size: 16px;
    color: #333;
}

.form-control {
    border: 2px solid var(--link-reserva-primary);
    border-radius: 8px;
    padding: 12px 15px 12px 12px;
    font-size: 16px;
}

.form-control:focus {
    box-shadow: none;
    border-color: var(--link-reserva-primary);
}

.select2-container--bootstrap-5 .select2-selection {
    font-size: 16px;
    padding: 12px 15px 34px !important;
    border-radius: 8px;
    border: 2px solid var(--link-reserva-primary) !important;
    border-color: var(--link-reserva-primary) !important;
}

.btn-link-reserva-primary {
    width: 100%;
    background-color: var(--link-reserva-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 14px 0;
    font-size: 18px;
    font-weight: 600;
}

.btn-link-reserva-primary:hover {
    background-color: var(--link-reserva-primary);
    color: white;
}

/* Link criar conta */
.create-link {
    display: block;
    text-align: center;
    margin-top: 10px;
    color: var(--link-reserva-primary);
    font-weight: 500;
    text-decoration: none;
}

.calendar {
    max-width: 360px;
    margin: 0 auto 30px;
}

.calendar-header {
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 500;
    margin-bottom: 10px;
}

.calendar-header i {
    cursor: pointer;
}

.calendar-weekdays,
.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
}

.calendar-weekdays {
    color: #888;
    font-size: 14px;
}

.calendar-day {
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 14px;
    cursor: default;
}

.calendar-day.disabled {
    background-color: #f0f0f0;
    color: #999;
}

.calendar-day.selected {
    background-color: var(--link-reserva-primary);
    color: #fff;
}

.timeslots {
    display: flex;
    gap: 10px;
    margin: 0 auto 30px;
    overflow-x: auto;
    padding: 10px;
    scroll-snap-type: x mandatory; /* Suaviza rolagem horizontal */
}

.timeslots > * {
    flex: 0 0 auto; /* Evita que os itens encolham demais */
    scroll-snap-align: start;
}


.timeslots .btn {
    border: 1px solid var(--link-reserva-primary);
    border-radius: 8px;
    color: var(--link-reserva-primary);
    font-weight: 500;
}

.appointment-card {
    /* max-width: 800px; */
    margin: 5rem auto 30px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.appointment-finish {
    display: flex;
    justify-content: space-between;
    margin: 0 auto 30px;
    padding: 20px;
}

.appointment-info2 {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.appointment-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.appointment-info img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--link-reserva-primary);
}

.appointment-actions {
    display: flex;
    justify-content: space-between;
    border-bottom: solid 1px #333;
    padding-bottom: 5px;
    margin-bottom: 5px;
}

.appointment-actions .price {
    color: var(--link-reserva-primary);
    font-weight: 600;
    font-size: 18px;
}
/* 
.appointment-actions .duration {
    color: #333;
    font-size: 14px;
} */

.delete-icon {
    color: #f33;
    background-color: #ffeaea;
    cursor: pointer;
    margin-left: 10px;
    padding: 4px 6px;
    border-radius: 4px;
}

.btn-schedule {
    background-color: var(--link-reserva-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.timeslots .btn.selected {
    background-color: var(--link-reserva-primary);
    color: white;
}

.total-price {
    font-weight: bold;
    color: var(--link-reserva-primary) !important;
}

.img-thumbnail {
    width: 40px !important;
    height: 40px !important;
    margin-right: 4px !important;
    cursor: pointer !important;
}

.img-thumbnail {
    padding: 0.25rem;
    background-color: #e4e5e6;
    border: 1px solid #c8ced3;
    border-radius: 0.25rem;
    max-width: 100%;
    height: auto;
}

img {
    vertical-align: middle;
    border-style: none;
}

.table-responsive {
    overflow-x: auto;
}

table.dataTable {
    width: 100% !important;
}

.nav-tabs-wrapper {
  overflow-x: auto;
}

.nav-tabs {
  flex-wrap: nowrap;
  white-space: nowrap;
}

.nav-tabs .nav-link {
  white-space: nowrap;
}

.nav-tabs .nav-link.active {
    background-color: var(--link-reserva-primary);
    /* azul claro para aba ativa */
    color: white;
    border: none;
}

.nav-tabs .nav-link {
    background-color: #e0e0e0;
    /* cinza claro para abas inativas */
    color: black;
    border: none;
    margin-right: 2px;
}

.card-custom {
    background-color: #f0f0f0;
    /* cinza claro do fundo do card */
    border-radius: 8px;
}

.observacoes-box {
    border: 2px solid var(--link-reserva-primary);
    /* borda azul para observações */
    border-radius: 8px;
}


.timeline-circle {
    width: 14px;
    height: 14px;
    background-color: var(--link-reserva-primary);
    border-radius: 50%;
}

.timeline-vertical-line {
    width: 2px;
    background-color: var(--link-reserva-primary);
    flex-grow: 1;
    min-height: 30px;
}

.timeline-date {
    font-size: 0.85rem;
    color: #555;
}

.timeline-card {
    background-color: #fff;
    border: 1px solid var(--link-reserva-primary);
    border-radius: 0.5rem;
    padding: 0.75rem;
}


.timeline-date {
    font-size: 0.9rem;
    color: #555;
}

.timeline-card {
    background-color: #fff;
    border: 1px solid var(--link-reserva-primary);
    border-radius: 0.5rem;
    padding: 0.75rem;
}

/* Desktop */
@media (min-width: 992px) {
    .dataTables_wrapper {
        width: 100%;
    }

    table.dataTable {
        width: 100% !important;
    }

    .dataTables_filter {
        float: right;
        text-align: right;
    }

    .dataTables_length {
        float: left;
    }
}

/* Mobile */
@media (max-width: 991px) {
    .table-responsive {
        overflow-x: auto;
    }
}

@media (max-width: 991px) {

    /* Garante que a coluna inteira se comporte como centralizada */
    .timeline-item > .col-12.col-lg-auto {
        display: flex;
        justify-content: center;
    }

    /* Empilha círculo + data e centraliza */
    .timeline-item > .col-12.col-lg-auto > .d-flex {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .timeline-date {
        text-align: center;
    }
}

