/* ==========================================
   ARQUIVO: painel-cliente.css - Estilos do Painel do Cliente
   Descrição: CSS específico para o painel de agendamento mobile-first
   Autor: HairCut Barbearia
   Data: 2024
   ========================================== */

/* ==========================================
   VARIÁVEIS DE COR - Paleta sofisticada e clean
   Sobrescreve variáveis do style.css principal
   ========================================== */
:root {
    /* Sobrescrever --primary do style.css - FORÇA A SOBRESCRIÇÃO */
    --primary: #C62828;

    /* Novas variáveis de cor */
    --color-primary: #C62828;
    --color-primary-dark: #B71C1C;
    --color-primary-light: #D32F2F;
    --color-neutral-50: #FAFAFA;
    --color-neutral-100: #F5F5F5;
    --color-neutral-200: #EEEEEE;
    --color-neutral-300: #E0E0E0;
    --color-neutral-400: #BDBDBD;
    --color-neutral-500: #9E9E9E;
    --color-neutral-600: #757575;
    --color-neutral-700: #616161;
    --color-neutral-800: #424242;
    --color-neutral-900: #212121;
    --color-text-primary: #212121;
    --color-text-secondary: #424242;
    --color-text-tertiary: #757575;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-primary: 0 6px 20px rgba(198, 40, 40, 0.25);
    --shadow-primary-hover: 0 8px 28px rgba(198, 40, 40, 0.35);
}

/* ==========================================
   MOBILE FIRST - Estilos base para mobile (PRIORIDADE MÁXIMA)
   ========================================== */

/* Reset específico para o painel */
body.painel-cliente,
body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    background-color: var(--color-neutral-50) !important;
    color: var(--color-text-primary) !important;
}

/* Container principal */
.container {
    background-color: transparent;
}

/* ==========================================
   PROGRESS BAR - Barra de progresso mobile (design clean)
   ========================================== */
.progress-container {
    position: sticky;
    top: 80px;
    z-index: 100;
    background: #FFFFFF;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    margin: -1rem -1rem 2rem -1rem;
    border: 1px solid var(--color-neutral-300);
}

.progress {
    height: 6px;
    border-radius: 10px;
    overflow: hidden;
    background-color: var(--color-neutral-200);
}

.progress-bar {
    transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    border-radius: 10px;
}

.progress-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    margin-top: 0.75rem;
}

/* ==========================================
   STEPS - Sistema de passos do formulário
   ========================================== */
.step {
    display: none;
    animation: fadeInUp 0.5s ease;
}

.step.active {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   CARDS - Cards dos passos otimizados para mobile (design clean)
   ========================================== */
.step .card {
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    background: #FFFFFF;
    border: 1px solid var(--color-neutral-300);
    box-shadow: var(--shadow-sm);
}

.step .card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-neutral-400);
}

.step .card-header {
    border: none;
    border-radius: 0;
    background: var(--color-neutral-50);
    border-bottom: 1px solid var(--color-neutral-300);
    padding: 1.25rem 1.5rem;
}

.step .card-body {
    padding: 1.75rem;
}

/* ==========================================
   FORMULÁRIOS - Estilos dos formulários mobile (design clean)
   ========================================== */
.form-control-lg {
    font-size: 1rem;
    padding: 0.875rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--color-neutral-300);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 48px;
    background-color: #FFFFFF;
    color: var(--color-text-primary);
}

.form-control-lg:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.1);
    outline: none;
    background-color: #FFFFFF;
}

.form-control-lg::placeholder {
    color: var(--color-text-tertiary);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.75rem;
    color: var(--color-text-primary);
    font-size: 0.9375rem;
}

.form-text {
    font-size: 0.875rem;
    margin-top: 0.25rem;
    color: var(--color-text-secondary);
}

/* Ajuste para step4 - card-body com fundo branco, textos devem ser escuros */
#step4 .card-body .form-label,
#step4 .card-body .form-text {
    color: var(--color-text-primary) !important;
}

#step4 .card-body .form-text i {
    color: var(--color-primary) !important;
}

/* ==========================================
   BOTÕES - Botões otimizados para touch mobile
   ========================================== */
.btn-lg {
    font-size: 1rem;
    padding: 0.875rem 2rem;
    border-radius: 0.75rem;
    min-height: 48px;
    min-width: 48px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-lg:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-lg:active {
    transform: translateY(0);
}

/* Botão primário com gradiente sofisticado */
.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    border: none;
    box-shadow: var(--shadow-primary);
    color: #FFFFFF;
    font-weight: 500;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
    box-shadow: var(--shadow-primary-hover);
    transform: translateY(-2px);
    color: #FFFFFF;
}

/* Botão de sucesso */
.btn-success {
    background: linear-gradient(45deg, #28a745, #20c997);
    border: none;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-success:hover {
    background: linear-gradient(45deg, #218838, #1ea085);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

/* ==========================================
   SERVIÇOS - Cards de serviços mobile-first (design clean)
   ========================================== */
.servico-card {
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--color-neutral-300);
    border-radius: 12px;
    overflow: hidden;
    background: #FFFFFF;
    box-shadow: var(--shadow-sm);
}

.servico-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

.servico-card.selected {
    border-color: var(--color-primary);
    border-width: 2px;
    background: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 0 0 4px rgba(198, 40, 40, 0.08), var(--shadow-md);
}

.servico-card .card-body {
    padding: 1.75rem;
}

.servico-card .form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.125rem;
    border-color: var(--color-neutral-400);
}

.servico-card .form-check-input:checked {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.servico-card .form-check-label {
    cursor: pointer;
    width: 100%;
}

.servico-card .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
}

.servico-card .card-text {
    font-size: 0.9rem;
    color: var(--color-text-tertiary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.servico-card .text-primary {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-primary);
}

/* ==========================================
   BARBEIROS - Cards de barbeiros mobile-first (design clean)
   ========================================== */
.barbeiro-card {
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--color-neutral-300);
    border-radius: 12px;
    overflow: hidden;
    background: #FFFFFF;
    box-shadow: var(--shadow-sm);
}

.barbeiro-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

.barbeiro-card.selected {
    border-color: var(--color-primary);
    border-width: 2px;
    background: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 0 0 4px rgba(198, 40, 40, 0.08), var(--shadow-md);
}

.barbeiro-card .card-body {
    padding: 1.75rem;
}

.barbeiro-card .form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.125rem;
    border-color: var(--color-neutral-400);
}

.barbeiro-card .form-check-input:checked {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.barbeiro-card .form-check-label {
    cursor: pointer;
    width: 100%;
}

.barbeiro-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    border-radius: 50%;
    color: white;
    font-size: 2.5rem;
    box-shadow: var(--shadow-md);
}

.barbeiro-card .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
}

.barbeiro-card .card-text {
    font-size: 0.9rem;
    color: var(--color-text-tertiary);
    line-height: 1.6;
}

/* ==========================================
   HORÁRIOS - Botões de horários profissionais mobile-first (design clean)
   ========================================== */
.horario-btn {
    font-size: 0.9rem !important;
    padding: 1rem 0.75rem !important;
    border-radius: 8px !important;
    border: 1px solid var(--color-neutral-300) !important;
    background: #FFFFFF !important;
    color: var(--color-text-secondary) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    min-height: 70px !important;
    font-weight: 500 !important;
    position: relative !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    -webkit-user-select: none !important;
    user-select: none !important;
    box-shadow: var(--shadow-sm) !important;
}

/* Garantir que o texto sempre fique visível */
.horario-btn * {
    position: relative;
    z-index: 2;
}

/* Hover clean e sofisticado */
.horario-btn:hover {
    border-color: var(--color-primary) !important;
    border-width: 2px !important;
    background: #FFFFFF !important;
    color: var(--color-primary) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.08), var(--shadow-md) !important;
}

/* Manter texto visível no hover */
.horario-btn:hover .horario-time,
.horario-btn:hover .horario-range,
.horario-btn:hover .horario-duration {
    color: var(--color-primary) !important;
}

.horario-btn:hover .horario-time strong {
    color: var(--color-primary) !important;
}

.horario-btn:hover .text-muted {
    color: var(--color-primary) !important;
    opacity: 0.8 !important;
}

/* Estado selecionado - destaque clean e profissional */
.horario-btn.selected {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%) !important;
    border-color: var(--color-primary) !important;
    border-width: 2px !important;
    color: #FFFFFF !important;
    transform: translateY(-3px) !important;
    box-shadow: var(--shadow-primary) !important;
    font-weight: 600 !important;
}

/* Texto no botão selecionado - sempre branco */
.horario-btn.selected .horario-time,
.horario-btn.selected .horario-range,
.horario-btn.selected .horario-duration,
.horario-btn.selected .horario-time strong,
.horario-btn.selected .text-muted {
    color: #FFFFFF !important;
    opacity: 1 !important;
}

/* Efeito ativo para melhor feedback visual */
.horario-btn:active {
    transform: translateY(-1px) scale(0.98) !important;
    transition: transform 0.1s ease !important;
}

.horario-btn:disabled {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
    background: var(--color-neutral-100) !important;
    border-color: var(--color-neutral-300) !important;
    color: var(--color-text-tertiary) !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Estado de toque para mobile */
.horario-btn.touch-active {
    transform: scale(0.97) !important;
    opacity: 0.95 !important;
}

/* Conteúdo interno do botão de horário */
.horario-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    width: 100%;
}

.horario-time {
    font-size: 1rem;
    font-weight: 700;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.horario-btn.selected .horario-time {
    color: white;
}

.horario-range {
    font-size: 0.75rem;
    opacity: 0.8;
}

.horario-btn.selected .horario-range {
    color: rgba(255, 255, 255, 0.9);
}

.horario-duration {
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.125rem;
}

.horario-btn.selected .horario-duration {
    color: rgba(255, 255, 255, 0.9);
}

/* Seções de períodos (design clean) */
.horarios-periodo {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--color-neutral-50);
    border-radius: 12px;
    border: none;
    border-top: 2px solid var(--color-neutral-300);
    box-shadow: none;
}

.periodo-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--color-neutral-300);
}

/* ==========================================
   RESPONSIVIDADE - Ajustes para tablets e desktop
   ========================================== */
@media (min-width: 768px) {
    .periodo-title {
        font-size: 1.1rem;
    }

    .horario-btn {
        padding: 1.125rem 1rem;
        min-height: 80px;
    }

    .horario-time {
        font-size: 1.1rem;
    }
}

@media (min-width: 992px) {
    .horario-btn {
        padding: 1.25rem 1.25rem;
        min-height: 85px;
    }

    .horario-content {
        gap: 0.375rem;
    }

    .horarios-periodo {
        padding: 1.5rem;
    }
}

/* ==========================================
   MOBILE - Ajustes específicos para mobile
   ========================================== */
@media (max-width: 767.98px) {
    .horario-btn {
        padding: 0.875rem 0.5rem;
        min-height: 75px;
        font-size: 0.85rem;
    }

    .horario-time {
        font-size: 0.95rem;
    }

    .horario-range,
    .horario-duration {
        font-size: 0.7rem;
    }

    .horarios-periodo {
        padding: 0.875rem;
    }
}

/* ==========================================
   RESUMO - Cards de resumo mobile-first (design clean)
   ========================================== */
#resumoServicos {
    border-radius: 12px;
    border: 1px solid var(--color-neutral-300);
    background: #FFFFFF;
    box-shadow: var(--shadow-sm);
}

#resumoServicos .alert-heading {
    color: var(--color-primary);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

#resumoAgendamento {
    font-size: 0.95rem;
    line-height: 1.6;
    min-height: 200px;
    background: #FFFFFF;
    padding: 1.75rem;
    border-radius: 12px;
    border: 1px solid var(--color-neutral-300);
    box-shadow: var(--shadow-sm);
}

#resumoAgendamento .resumo-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-neutral-300);
    font-size: 1rem;
    line-height: 1.6;
}

#resumoAgendamento .resumo-item:last-child {
    border-bottom: none;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--color-primary);
}

#resumoAgendamento .resumo-label {
    font-weight: 500;
    color: var(--color-text-secondary);
    min-width: 120px;
}

#resumoAgendamento .resumo-value {
    color: var(--color-text-primary);
    text-align: right;
    font-weight: 500;
}

#resumoAgendamento .resumo-total {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: #FFFFFF;
    padding: 1.25rem;
    margin-top: 1.5rem;
    border-radius: 12px;
    font-size: 1.2rem;
    box-shadow: var(--shadow-primary);
}

#resumoAgendamento .resumo-total .resumo-label,
#resumoAgendamento .resumo-total .resumo-value {
    color: #FFFFFF;
    font-weight: 600;
}

/* ==========================================
   LOADING - Estados de carregamento mobile
   ========================================== */
#servicosLoading,
#barbeirosLoading {
    background: linear-gradient(135deg, #f8f9ff, #e3f2fd);
    border-radius: 1rem;
    border: 1px solid #e3f2fd;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* ==========================================
   ALERTAS - Alertas e notificações mobile (design clean)
   ========================================== */
.alert {
    border-radius: 12px;
    border: 1px solid;
    border-left-width: 3px;
    font-size: 0.9rem;
    box-shadow: var(--shadow-sm);
}

.alert-info {
    background: #FFFFFF;
    color: #1565c0;
    border-color: var(--color-neutral-300);
    border-left-color: #2196f3;
}

.alert-success {
    background: #FFFFFF;
    color: #2e7d32;
    border-color: var(--color-neutral-300);
    border-left-color: #4caf50;
}

.alert-danger {
    background: #FFFFFF;
    color: var(--color-primary);
    border-color: var(--color-neutral-300);
    border-left-color: var(--color-primary);
}

/* ==========================================
   FOTOS DOS BARBEIROS - Estilos das fotos
   ========================================== */

.barbeiro-avatar {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}

/* Foto do barbeiro - Design elegante e moderno */
.barbeiro-foto {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(235, 22, 22, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    background-color: #f8f9fa;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOTAiIGhlaWdodD0iOTAiIHZpZXdCb3g9IjAgMCA5MCA5MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iNDUiIGN5PSI0NSIgcj0iNDUiIGZpbGw9IiNlOWVjZWYiLz4KPHN2ZyB4PSIyMi41IiB5PSIyMi41IiB3aWR0aD0iNDUiIGhlaWdodD0iNDUiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSI+CjxwYXRoIGQ9Ik0xMiAxMkMxNC4yMDkxIDEyIDE2IDEwLjIwOTEgMTYgOEMxNiA1Ljc5MDg2IDE0LjIwOTEgNCAxMiA0QzkuNzkwODYgNCA4IDUuNzkwODYgOCA4QzggMTAuMjA5MSA5Ljc5MDg2IDEyIDEyIDEyWiIgZmlsbD0iIzZDNzI5MyIvPgo8cGF0aCBkPSJNMTIgMTRDOS43OTA4NiAxNCA4IDE1Ljc5MDkgOCAxOFYyMEgxNlYxOEMxNiAxNS43OTA5IDE0LjIwOTEgMTQgMTIgMTRaIiBmaWxsPSIjNkM3MjkzIi8+Cjwvc3ZnPgo8L3N2Zz4K');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
    overflow: hidden;
}

/* Efeito de brilho sutil na foto */
.barbeiro-foto::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 50%);
    pointer-events: none;
    z-index: 1;
}

.barbeiro-card:hover .barbeiro-foto {
    transform: scale(1.05);
    border-color: rgba(198, 40, 40, 0.4);
    box-shadow:
        0 8px 30px rgba(198, 40, 40, 0.15),
        0 4px 15px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.barbeiro-card.selected .barbeiro-foto {
    border-color: var(--color-primary);
    box-shadow:
        0 8px 35px rgba(198, 40, 40, 0.25),
        0 4px 20px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: scale(1.02);
}

/* Placeholder de fallback - Design moderno */
.barbeiro-placeholder {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid rgba(222, 226, 230, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.05),
        0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

/* Efeito de brilho no placeholder */
.barbeiro-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 50%);
    pointer-events: none;
    z-index: 1;
}

.barbeiro-card:hover .barbeiro-placeholder {
    border-color: rgba(235, 22, 22, 0.4);
    background: linear-gradient(135deg, #fff5f5 0%, #ffe0e0 100%);
    transform: scale(1.05);
    box-shadow:
        0 8px 30px rgba(235, 22, 22, 0.1),
        0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Responsividade das fotos - Mobile-first */
@media (max-width: 768px) {
    .barbeiro-foto {
        width: 70px;
        height: 70px;
        border-width: 1.5px;
    }

    .barbeiro-placeholder {
        width: 70px;
        height: 70px;
        border-width: 1.5px;
    }
}

@media (max-width: 480px) {
    .barbeiro-foto {
        width: 65px;
        height: 65px;
    }

    .barbeiro-placeholder {
        width: 65px;
        height: 65px;
    }
}

/* ==========================================
   NAVEGAÇÃO - Botões de navegação mobile
   ========================================== */
.nav-buttons {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
}

.nav-buttons .btn {
    flex: 1;
    max-width: 200px;
}

/* ==========================================
   RESPONSIVIDADE - Ajustes para tablets
   ========================================== */
@media (min-width: 768px) {
    .step .card-body {
        padding: 2rem 2.5rem;
    }

    .form-control-lg {
        font-size: 1.1rem;
        padding: 1rem 1.25rem;
    }

    .btn-lg {
        font-size: 1.1rem;
        padding: 1rem 2.5rem;
    }

    .servico-card .card-body,
    .barbeiro-card .card-body {
        padding: 1.5rem;
    }

    .barbeiro-avatar {
        width: 100px;
        height: 100px;
        font-size: 3rem;
    }

    .horario-btn {
        font-size: 1rem;
        padding: 0.875rem 1.25rem;
    }
}

/* ==========================================
   RESPONSIVIDADE - Ajustes para desktop
   ========================================== */
@media (min-width: 992px) {
    .step .card-body {
        padding: 2.5rem 3rem;
    }

    .progress-container {
        position: static;
        margin: 0 0 2rem 0;
        padding: 1.5rem;
    }

    .nav-buttons .btn {
        max-width: 250px;
    }

    .servico-card:hover,
    .barbeiro-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    }
}

/* ==========================================
   ANIMAÇÕES - Animações específicas do painel
   ========================================== */
.fade-in {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.slide-in-right {
    animation: slideInRight 0.5s ease;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.bounce-in {
    animation: bounceIn 0.6s ease;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* ==========================================
   UTILITÁRIOS - Classes utilitárias específicas
   ========================================== */
.text-gradient {
    background: linear-gradient(45deg, var(--color-primary), var(--color-primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-soft {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.shadow-medium {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.shadow-strong {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.border-gradient {
    border: 2px solid;
    border-image: linear-gradient(45deg, var(--color-primary), var(--color-primary-light)) 1;
}

/* ==========================================
   ACESSIBILIDADE - Melhorias de acessibilidade
   ========================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.focus-visible:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* ==========================================
   DARK MODE - Suporte a modo escuro (futuro)
   ========================================== */
@media (prefers-color-scheme: dark) {
    .painel-cliente {
        background-color: #1a1a1a;
        color: #ffffff;
    }

    .step .card {
        background-color: #2d2d2d;
        border-color: #404040;
    }

    .form-control-lg {
        background-color: #2d2d2d;
        border-color: #404040;
        color: #ffffff;
    }

    .form-control-lg:focus {
        background-color: #2d2d2d;
        border-color: var(--color-primary);
        color: #ffffff;
    }
}

/* ==========================================
   DESTAQUE VISUAL - Para validação sem alertas
   ========================================== */

/* Destacar áreas obrigatórias */
.highlight-required {
    animation: highlightPulse 2s ease-in-out;
    border: 2px solid #dc3545 !important;
    border-radius: 0.5rem;
    background-color: rgba(220, 53, 69, 0.1) !important;
}

@keyframes highlightPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }

    50% {
        transform: scale(1.02);
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

/* ==========================================
   NOTIFICAÇÕES - Sistema de notificações visuais
   ========================================== */

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    min-width: 300px;
    max-width: 500px;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideInRight 0.3s ease-out;
}

.notification-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
}

.notification-message {
    flex: 1;
    font-weight: 500;
    margin-right: 1rem;
}

.notification-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    font-weight: bold;
    color: inherit;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.notification-close:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

/* Tipos de notificação */
.notification-success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.notification-error {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.notification-warning {
    background-color: #fff3cd;
    color: #856404;
    border-left: 4px solid #ffc107;
}

.notification-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

/* Animações */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* ==========================================
   MELHORIAS DE UX - Transições suaves
   ========================================== */

/* Transição suave entre passos */
.form-step {
    transition: all 0.3s ease-in-out;
}

.form-step.active {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Melhorar feedback visual dos campos */
.form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.1);
    transform: scale(1.02);
    transition: all 0.2s ease;
}

.form-control.is-valid {
    border-color: #28a745;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='m2.3 6.73.94-.94 1.44 1.44 3.1-3.1.94.94-4.04 4.04z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.is-invalid {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 4.6 1.4 1.4 1.4-1.4'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* Melhorar botões */
.btn {
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0);
}

/* Melhorar cards de seleção */
.service-card,
.barbeiro-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.service-card:hover,
.barbeiro-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.service-card.selected,
.barbeiro-card.selected {
    border-color: var(--color-primary) !important;
    background-color: rgba(198, 40, 40, 0.08) !important;
    transform: translateY(-2px);
    box-shadow: 0 0 0 4px rgba(198, 40, 40, 0.08), var(--shadow-md);
}

/* Melhorar botões de horário */
.horario-btn {
    transition: all 0.2s ease;
}

.horario-btn:hover {
    transform: scale(1.05);
}

.horario-btn.selected {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%) !important;
    color: white !important;
    transform: translateY(-3px) !important;
    box-shadow: var(--shadow-primary) !important;
}

/* ==========================================
   PRINT STYLES - Estilos para impressão
   ========================================== */
@media print {

    .navbar,
    .progress-container,
    .nav-buttons,
    .btn {
        display: none !important;
    }

    .step {
        display: block !important;
    }

    .card {
        border: 1px solid #000 !important;
        box-shadow: none !important;
    }
}

/* ==========================================
   LOADING OVERLAY - Overlay de carregamento
   ========================================== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.loading-content {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 300px;
    width: 90%;
}

.loading-content .spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3rem;
}

.loading-content p {
    margin: 0;
    font-size: 1rem;
    color: #6c757d;
}

/* ==========================================
   RESPONSIVIDADE MOBILE - Notificações
   ========================================== */
@media (max-width: 767.98px) {
    .notification {
        top: 10px;
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: none;
    }

    .loading-content {
        padding: 1.5rem;
        margin: 1rem;
    }
}

/* ==========================================
   ANIMAÇÕES - Transições suaves
   ========================================== */
.horario-btn {
    transition: all 0.3s ease;
    border: 2px solid #e9ecef;
}

.horario-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.horario-btn.selected {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%) !important;
    border-color: var(--color-primary) !important;
    border-width: 2px !important;
    color: white !important;
    transform: translateY(-3px) !important;
    box-shadow: var(--shadow-primary) !important;
}

.barbeiro-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.barbeiro-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.barbeiro-card.selected {
    transform: translateY(-2px);
    box-shadow: 0 0 0 4px rgba(198, 40, 40, 0.08), var(--shadow-md);
    border: 2px solid var(--color-primary);
}

.servico-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.servico-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.servico-card.selected {
    transform: translateY(-2px);
    box-shadow: 0 0 0 4px rgba(198, 40, 40, 0.08), var(--shadow-md);
    border: 2px solid var(--color-primary);
}

/* ==========================================
   DESTAQUE - Para campos obrigatórios
   ========================================== */
.highlight-required {
    animation: highlight 0.5s ease-in-out;
    border: 2px solid #ffc107 !important;
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.5) !important;
}

@keyframes highlight {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }

    100% {
        transform: scale(1);
    }
}

/* ==========================================
   NOTIFICAÇÕES - Sistema de notificações
   ========================================== */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    min-width: 300px;
    animation: slideIn 0.3s ease-out;
}

.notification-success {
    border-left: 4px solid #28a745;
}

.notification-error {
    border-left: 4px solid #dc3545;
}

.notification-info {
    border-left: 4px solid #17a2b8;
}

.notification-content {
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.notification-message {
    flex: 1;
    margin-right: 1rem;
}

.notification-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6c757d;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-close:hover {
    color: #495057;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}


/* ==========================================
   VALIDAÇÃO - Estilos para campos com erro
   ========================================== */
.form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-control.is-valid {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #dc3545;
}

.valid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #28a745;
}

/* ==========================================
   RESUMO - Estilos para resumo do agendamento
   ========================================== */
.resumo-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
}

.resumo-item:last-child {
    border-bottom: none;
}

.resumo-item.resumo-total {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    padding: 1.25rem;
    margin: 1rem -1rem -1rem -1rem;
    border-radius: 0 0 12px 12px;
    font-weight: 600;
    font-size: 1.2rem;
    box-shadow: var(--shadow-primary);
}

.resumo-label {
    font-weight: 500;
    color: var(--color-text-secondary);
    flex: 1;
}

.resumo-value {
    color: var(--color-text-primary);
    text-align: right;
    flex: 1;
    word-break: break-word;
}

.resumo-total .resumo-label {
    color: #FFFFFF;
    font-size: 1.2rem;
}

.resumo-total .resumo-value {
    color: #FFFFFF;
    font-size: 1.2rem;
}

/* ==========================================
   ALERTAS - Estilos para alertas
   ========================================== */
.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.375rem;
}

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeaa7;
}

.alert i {
    margin-right: 0.5rem;
}