: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', Tahoma, Geneva, Verdana, sans-serif;
}

/* Ocupa a tela inteira sem faixas ou bordas pretas externas */
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;
}

.panel-container {
    width: 100%;
    max-width: 1200px;
    height: 100%;
    background-color: #ffffff;
    border: 1px solid var(--border-pink);
    border-radius: 24px;
    padding: 40px;
    display: flex;
    gap: 40px;
}

/* COLUNA DA ESQUERDA (PROFISSIONAIS) */
.professionals-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.panel-header { margin-bottom: 24px; }

.breadcrumbs { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }
.breadcrumbs .crumb-link { text-decoration: none !important; color: var(--text-muted); }
.breadcrumbs .crumb-link.active-crumb { color: var(--text-dark); font-weight: 600; }

.title-row { display: flex; justify-content: space-between; align-items: center; }
.title-row h1 { font-size: 26px; font-weight: 700; color: var(--text-dark); }

/* Âncora da seta de voltar */
.btn-back-arrow, .btn-back-arrow:link, .btn-back-arrow:visited {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    border: 1px solid var(--primary-color) !important;
    background: none !important;
    text-decoration: none !important;
}
.btn-back-arrow svg { width: 18px; height: 18px; fill: var(--primary-color); }

/* LISTA DE CARDS COM SCROLL */
.professionals-scroll-list {
    flex: 1;
    overflow-y: auto;
    padding-right: 12px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.professionals-scroll-list::-webkit-scrollbar { width: 6px; }
.professionals-scroll-list::-webkit-scrollbar-track { background: #FDF1F5; border-radius: 10px; }
.professionals-scroll-list::-webkit-scrollbar-thumb { background: #E8B4C3; border-radius: 10px; }

/* REGRAS DOS CARDS DE PROFISSIONAIS */
.pro-card {
    width: 100%;
    height: 76px;
    border: 1px solid #EAEAEA;
    border-radius: 38px; /* Formato perfeitamente em pílula/oval conforme a imagem */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 28px 0 10px;
    transition: all 0.2s ease;
}

/* Modificação visual para quando o profissional estiver ativo */
.pro-card.selected {
    border-color: var(--primary-color);
    background-color: #FFFDFE;
    box-shadow: 0 4px 12px rgba(138, 28, 65, 0.02);
}

.pro-info-block { display: flex; align-items: center; gap: 16px; }

.pro-avatar-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #EAEAEA;
}
.pro-avatar-circle img { width: 100%; height: 100%; object-fit: cover; }
.pro-avatar-circle.icon-bg { background-color: #FCDCE5; border: none; }
.pro-avatar-circle.icon-bg svg { width: 26px; height: 26px; fill: var(--primary-color); }

.pro-text h2 { font-size: 15px; font-weight: 600; color: var(--primary-color); }
.pro-text p { font-size: 12px; color: var(--text-muted); margin-top: 1px; }

/* BOTÕES DE SELEÇÃO EXCLUSIVA */
.btn-select-pro {
    background-color: #ffffff;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 20px;
    padding: 8px 24px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-select-pro:hover { background-color: var(--primary-color); color: #ffffff; }

/* Círculo com check ativo */
.toggle-select-btn.checked {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}
.toggle-select-btn.checked svg { width: 16px; height: 16px; fill: #ffffff; }

/* COLUNA DA DIREITA (CHECKOUT RESUMO) */
.checkout-column { width: 340px; height: 100%; }
.checkout-card { width: 100%; height: 100%; border: 1px solid var(--border-pink); border-radius: 16px; padding: 32px 24px; display: flex; flex-direction: column; }
.brand-title { font-size: 18px; font-family: 'Georgia', serif; color: var(--primary-color); margin-bottom: 24px; border-bottom: 1px solid #F2E4E8; padding-bottom: 12px; }

.checkout-items-wrapper { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 24px; }

.checkout-item-box { display: flex; flex-direction: column; gap: 4px; }
.item-main-info { display: flex; justify-content: space-between; align-items: flex-start; }
.checkout-item-box h3 { font-size: 14px; font-weight: 600; color: var(--primary-color); line-height: 1.3; }
.item-price { font-size: 14px; font-weight: 600; color: var(--primary-color); }
.item-duration { font-size: 12px; color: var(--text-muted); }

/* DROPDOWN CUSTOMIZADO IGUAL À IMAGEM */
.dropdown-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border-pink);
    border-radius: 20px;
    padding: 4px 14px;
    margin-top: 6px;
    background-color: #ffffff;
    width: 100%;
}
.dropdown-icon-avatar { font-size: 12px; opacity: 0.5; color: var(--primary-color); }
.pro-sync-dropdown {
    border: none;
    outline: none;
    background: none;
    width: 100%;
    font-size: 13px;
    color: var(--text-muted);
    cursor: pointer;
}

/* RODAPÉ DO RESUMO COM O VALOR TOTAL */
.checkout-summary-footer { border-top: 1px solid #F2E4E8; padding-top: 20px; margin-top: auto; }
.total-row { display: flex; justify-content: space-between; font-size: 15px; font-weight: 600; color: var(--primary-color); margin-bottom: 24px; }

/* Âncora do botão continuar */
.btn-continue-anchor, .btn-continue-anchor:link, .btn-continue-anchor:visited {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    height: 48px !important;
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 24px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
}

/* Container que envelopa o ícone e o select */
.dropdown-wrapper {
    position: relative; /* Essencial para o ícone flutuar no lugar certo */
    display: flex;
    align-items: center;
    border: 1px solid var(--border-pink, #EAD5DC);
    border-radius: 20px;
    margin-top: 6px;
    background-color: #ffffff;
    width: 100%;
    height: 38px; /* Força uma altura padrão estável */
}

/* Força o mini ícone a flutuar perfeitamente no canto esquerdo */
.mini-shuffle-icon {
    position: absolute;
    left: 14px; /* Distância da borda esquerda */
    top: 50%;
    transform: translateY(-50%); /* Centraliza verticalmente */
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none; /* Evita que o ícone trave o clique no select */
    z-index: 10; /* Garante que ele fique por cima da caixa branca */
}

.mini-shuffle-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Ajusta o campo de seleção para dar espaço ao ícone */
.pro-sync-dropdown {
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 13px;
    color: var(--text-muted, #8E8E8E);
    cursor: pointer;
    padding-left: 40px; /* Altera o início do texto para NÃO cobrir o ícone */
    padding-right: 14px;
    -webkit-appearance: none; /* Opcional: limpa estilos nativos se necessário */
    appearance: none;
}
