: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;
}

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 */
.datetime-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.panel-header { margin-bottom: 20px; }
.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); }

.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;
}
.btn-back-arrow svg { width: 18px; height: 18px; fill: var(--primary-color); }

/* BARRA DE PREFERÊNCIAS */
.preference-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.dropdown-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid var(--border-pink);
    border-radius: 20px;
    background-color: #ffffff;
    width: 240px;
    height: 38px;
}

.mini-shuffle-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
}

.pro-sync-dropdown {
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 13px;
    color: var(--primary-color);
    font-weight: 600;
    padding-left: 38px;
    cursor: pointer;
    appearance: none;
}

.btn-mini-calendar {
    width: 38px;
    height: 38px;
    border: 1px solid var(--primary-color);
    border-radius: 10px;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.btn-mini-calendar svg {
    width: 20px;
    height: 20px;
    fill: var(--primary-color);
}

/* SEÇÃO CAROUSEL DE DIAS DA SEMANA */
.week-section { margin-bottom: 32px; }
.section-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.section-title-row h2, .time-section h2 { font-size: 15px; font-weight: 600; color: var(--text-dark); }

.carousel-actions { display: flex; gap: 8px; }
.btn-arrow-nav {
    width: 28px;
    height: 28px;
    border: 1px solid var(--border-pink);
    background-color: #ffffff;
    border-radius: 50%;
    color: var(--primary-color);
    cursor: pointer;
    font-weight: bold;
}

.week-days-container {
    display: flex;
    gap: 12px;
    width: 100%;
}

/* PÍLULAS OVAIS DE DATA */
.date-pill {
    flex: 1;
    height: 72px;
    border: 1px solid #EAEAEA;
    border-radius: 16px;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.date-pill span { font-size: 11px; color: var(--text-muted); }
.date-pill strong { font-size: 20px; color: var(--text-dark); margin-top: 2px; }

.date-pill.selected {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}
.date-pill.selected span, .date-pill.selected strong { color: #ffffff; }

.date-pill.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* SEÇÃO GRID DE HORÁRIOS */
.time-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    margin-top: 16px;
}

.time-pill {
    height: 44px;
    border: 1px solid var(--primary-color);
    border-radius: 22px; /* Perfeitamente oval */
    background-color: #ffffff;
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.time-pill.selected {
    background-color: var(--primary-color);
    color: #ffffff;
}

/* COLUNA DA DIREITA */
.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: 20px; border-bottom: 1px solid #F2E4E8; padding-bottom: 12px; }

.appointment-meta-summary {
    background-color: var(--primary-light);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.meta-row { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--primary-color); font-weight: 600; }

.checkout-items-wrapper { flex: 1; display: flex; flex-direction: column; gap: 20px; overflow-y: auto; }
.checkout-item-box { display: flex; flex-direction: column; gap: 2px; }
.item-main-info { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; color: var(--primary-color); }
.item-duration { font-size: 12px; color: var(--text-muted); }

.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; }

.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;
}

/* --- OVERLAY CALENDÁRIO COMPLETO --- */
.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 ease;
}

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

.calendar-window {
    background-color: #ffffff;
    width: 360px;
    border-radius: 24px;
    padding: 24px;
    position: relative;
    box-shadow: 0 12px 36px rgba(0,0,0,0.15);
}

.calendar-close-x {
    position: absolute;
    top: 16px; right: 20px;
    background: none; border: none; font-size: 24px; color: var(--primary-color); cursor: pointer;
}

.calendar-month-selector {
    display: flex; justify-content: center; align-items: center; gap: 24px; margin-bottom: 20px; margin-top: 10px;
}
.current-month-title { font-size: 18px; font-weight: 700; color: var(--primary-color); }
.month-arrow { background: none; border: none; color: var(--primary-color); font-weight: bold; cursor: pointer; font-size: 16px; }

.calendar-grid-labels {
    display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-size: 11px; color: var(--text-muted); margin-bottom: 12px;
}

.calendar-grid-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.cal-day-cell {
    height: 32px; border: none; background: none; border-radius: 50%; font-size: 13px; color: var(--text-dark); cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.cal-day-cell:hover { background-color: var(--primary-light); }

/* Dia selecionado redondo conforme o design */
.cal-day-cell.active-cal {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
    font-weight: bold;
}

/* Container que abriga os novos ícones do resumo */
.meta-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0; /* Impede que o ícone esmague se o texto for grande */
}

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

/* Garante o alinhamento em linha perfeito do texto com o SVG */
.meta-row {
    display: flex;
    align-items: center; /* Centraliza verticalmente o ícone com a linha de texto */
    gap: 12px;
    font-size: 13px;
    color: var(--primary-color, #8A1C41);
    font-weight: 600;
}

/* Garante que o dia selecionado no calendário grande mude de cor */
.cal-day-cell.active-cal {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
    font-weight: bold;
}
