:root {
    --primary-color: #8A1C41;
    --primary-light: #FDF1F5;
    --bg-screen: #FFF5F7;
    --text-dark: #2C2C2C;
    --text-muted: #8E8E8E;
    --border-pink: #EAD5DC;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background-color: var(--bg-screen);
}

.app-screen {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
}

/* MODAIS GERAIS */
.additional-modal {
    width: 100%;
    max-width: 620px;
    background-color: #ffffff;
    border: 1px solid var(--border-pink);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.02);
}

.modal-top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.modal-top-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
}

.btn-close-flow {
    background: none;
    border: none;
    font-size: 32px;
    color: var(--text-dark);
    cursor: pointer;
}

.additional-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.add-service-card {
    border: 1px solid var(--primary-color);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    position: relative;
}

.add-card-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.add-card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}

.add-card-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-color);
}

.add-duration {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 400;
    margin-left: 6px;
}

.add-price {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
}

.add-description {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* CONTAINER BOTÃO DE AGENDAR ADICIONAL */
.dynamic-schedule-container {
    margin-top: 12px;
}

.btn-dynamic-confirm {
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: 20px;
    padding: 8px 24px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.btn-add-toggle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--primary-color);
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.btn-add-toggle svg {
    width: 16px;
    height: 16px;
    fill: var(--primary-color);
}

.btn-add-toggle.checked {
    background-color: var(--primary-color);
}

.btn-add-toggle.checked svg {
    fill: #ffffff;
}

/* OVERLAY DOS PROFISSIONAIS */
.calendar-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.calendar-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.pro-selection-window {
    background-color: #ffffff;
    width: 100%;
    max-width: 540px;
    border-radius: 24px;
    padding: 32px;
    border: 1px solid var(--border-pink);
}

.pro-window-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    border-bottom: 1px solid #F5ECEF;
    padding-bottom: 12px;
}

.btn-close-pro-window {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
}

.pro-scroll-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pro-row-item {
    width: 100%;
    height: 72px;
    border: 1px solid #EAEAEA;
    border-radius: 36px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px 0 10px;
    cursor: pointer;
}

.pro-row-item.selected {
    border-color: var(--primary-color);
    background-color: var(--primary-light);
}

.pro-row-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.pro-avatar-mini {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #EAEAEA;
}

.pro-avatar-mini img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pro-avatar-mini.mini-shuffle {
    background-color: #FCDCE5;
    border: none;
}

.pro-avatar-mini.mini-shuffle svg {
    width: 24px;
    height: 24px;
}

.pro-row-details h4 {
    font-size: 15px;
    color: var(--primary-color);
    font-weight: 600;
}

.pro-row-details p {
    font-size: 12px;
    color: var(--text-muted);
}

.btn-choose-row {
    background-color: #ffffff;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 20px;
    padding: 6px 20px;
    font-size: 13px;
    cursor: pointer;
}

.pro-check-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pro-check-circle svg {
    width: 14px;
    height: 14px;
    fill: #ffffff;
}

/* TELA DE SUCESSO REAL */
.success-screen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.success-screen-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.success-card {
    text-align: center;
    max-width: 400px;
    padding: 20px;
}

.success-icon-circle {
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px auto;
}

.success-icon-circle svg {
    width: 40px;
    height: 40px;
    fill: #ffffff;
}

.success-card h2 {
    font-size: 24px;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.success-card p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.btn-success-close {
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: 24px;
    width: 100%;
    height: 48px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}


/* Esconde o botão Confirmar quando o serviço não estiver selecionado */
.card-inactive {
    display: none !important;
}

/* Estilização da âncora para agir exatamente como o botão oval */
.btn-dynamic-confirm,
.btn-dynamic-confirm:link,
.btn-dynamic-confirm:visited {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 20px;
    padding: 8px 24px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-dynamic-confirm:hover {
    background-color: #6B1230;
}

/* Estilização da âncora de conclusão para agir como botão */
.btn-success-close,
.btn-success-close:link,
.btn-success-close:visited {
    background-color: var(--primary-color);
    color: #ffffff !important;
    text-decoration: none !important;
    /* Remove o sublinhado padrão de link */
    border-radius: 24px;
    width: 100%;
    height: 48px;
    font-size: 16px;
    font-weight: 600;
    display: inline-flex;
    /* Permite alinhar o texto perfeitamente */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-success-close:hover {
    background-color: #6B1230;
    text-decoration: none !important;
}

/* Esconde o botão por padrão quando o card não tiver sido selecionado */
.dynamic-schedule-container.card-inactive {
    display: none !important;
}

/* Mostra o botão com flexbox assim que a classe 'card-inactive' for removida */
.dynamic-schedule-container {
    display: flex !important;
    margin-top: 12px;
}

/* Garante o estilo oval e o preenchimento do botão âncora */
.btn-dynamic-confirm, 
.btn-dynamic-confirm:link, 
.btn-dynamic-confirm:visited {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background-color: #8A1C41; /* Cor vinho padrão */
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 20px;
    padding: 8px 24px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-dynamic-confirm:hover {
    background-color: #6B1230;
}
