/* =========================================
   AGENDAR.CSS - FLUXO DE AGENDAMENTO (APP)
   ========================================= */

/* Barra de Progresso no Topo */
.progress-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
}

/* Linha cinza no fundo da barra de progresso */
.progress-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--border-color);
    z-index: 1;
    transform: translateY(-50%);
}

.step-indicator {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--surface-color);
    border: 2px solid var(--border-color);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    z-index: 2;
    transition: all 0.3s;
}

.step-indicator.active {
    background: var(--color-purple);
    border-color: var(--color-purple);
    color: white;
}

.step-indicator.completed {
    background: #2ecc71;
    border-color: #2ecc71;
    color: white;
}

/* Esconder os passos inativos */
.step-content {
    display: none;
    animation: fadeInRight 0.3s ease forwards;
}

.step-content.active {
    display: block;
}

/* Cartões Selecionáveis (Serviços e Profissionais) */
.selectable-card {
    background: var(--surface-color);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.selectable-card:hover {
    border-color: rgba(139, 92, 246, 0.3);
}

.selectable-card.selected {
    border-color: var(--color-purple);
    background: rgba(139, 92, 246, 0.05);
}

.card-title {
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.2rem;
}

.card-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Grade de Horários (Grid de botões) */
.time-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    margin-top: 1rem;
}

.time-slot {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 0.8rem 0;
    border-radius: var(--radius-md);
    text-align: center;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.time-slot.selected {
    background: var(--color-purple);
    color: white;
    border-color: var(--color-purple);
}

/* Botões de Navegação (Voltar / Avançar) */
.step-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}