/**
 * Modal de Agendamento Mockup - Seção Dedicada
 * =============================================
 */

/* Container do Modal Mockup */
.modal-mockup-container {
    position: relative;
    max-width: 480px;
    margin: 0 auto;
    perspective: 1000px;
}

.modal-mockup-wrapper {
    position: relative;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 10px 20px rgba(0, 0, 0, 0.08);
    transform: rotateY(-5deg) rotateX(5deg);
    transition: transform 0.3s ease;
}

.modal-mockup-wrapper:hover {
    transform: rotateY(0deg) rotateX(0deg) scale(1.02);
}

.modal-agendamento-mockup {
    width: 100%;
    height: 600px;
    background: #ffffff;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.3;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* ====================================
   HEADER DO MODAL
   ==================================== */

.modal-agendamento-header {
    background: #1f2937;
    color: white;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #374151;
}

.modal-agendamento-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
}

.modal-agendamento-icon {
    font-size: 16px;
}

.modal-agendamento-close {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    font-size: 18px;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.2s;
}

.modal-agendamento-close:hover {
    color: #f3f4f6;
}

/* ====================================
   CARD PROFISSIONAL
   ==================================== */

.modal-professional-card {
    background: #f9fafb;
    padding: 12px;
    margin: 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #e5e7eb;
}

.modal-professional-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 50%;
    flex-shrink: 0;
    border: 2px solid #dbeafe;
}

.modal-professional-info {
    flex-grow: 1;
}

.modal-professional-name {
    font-weight: 600;
    color: #1f2937;
    font-size: 13px;
    margin-bottom: 2px;
}

.modal-professional-role {
    color: #6b7280;
    font-size: 11px;
}

.modal-change-btn {
    background: #e5e7eb;
    color: #374151;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.modal-change-btn:hover {
    background: #d1d5db;
}

/* ====================================
   SEÇÃO CALENDÁRIO
   ==================================== */

.modal-calendar-section {
    padding: 12px;
    margin: 0 12px 12px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
}

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

.modal-calendar-nav {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.modal-calendar-nav:hover {
    background: #2563eb;
}

.modal-calendar-month {
    font-weight: 600;
    color: #1f2937;
    font-size: 13px;
}

.modal-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 12px;
}

.modal-calendar-day {
    text-align: center;
    padding: 6px 4px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    color: #374151;
    transition: all 0.2s;
}

.modal-calendar-day:hover {
    background: #e5e7eb;
}

.modal-calendar-day.selected {
    background: #3b82f6;
    color: white;
    font-weight: 600;
}

.modal-calendar-day.disabled {
    color: #9ca3af;
    cursor: not-allowed;
}

.modal-calendar-day.disabled:hover {
    background: transparent;
}

/* ====================================
   PERÍODOS E HORÁRIOS
   ==================================== */

.modal-time-periods {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
}

.modal-time-period {
    flex: 1;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 11px;
    text-align: center;
    cursor: pointer;
    color: #374151;
    transition: all 0.2s;
}

.modal-time-period:hover {
    background: #e5e7eb;
}

.modal-time-period.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.modal-time-slots {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.modal-time-slot {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    padding: 8px 4px;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    font-size: 11px;
    color: #374151;
    transition: all 0.2s;
}

.modal-time-slot:hover {
    background: #e5e7eb;
}

.modal-time-slot.selected {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
    font-weight: 600;
}

.modal-time-slot.disabled {
    background: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
}

.modal-time-slot.disabled:hover {
    background: #f3f4f6;
}

/* ====================================
   DETALHES DO SERVIÇO
   ==================================== */

.modal-service-details {
    background: #eff6ff;
    padding: 12px;
    margin: 12px;
    border-radius: 8px;
    border: 1px solid #dbeafe;
}

.modal-service-details-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1f2937;
    font-size: 12px;
}

.modal-service-details-icon {
    font-size: 12px;
}

.modal-service-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-service-name {
    font-weight: 600;
    color: #1f2937;
    font-size: 12px;
    margin-bottom: 4px;
}

.modal-service-price {
    color: #3b82f6;
    font-weight: 600;
    font-size: 13px;
}

.modal-service-duration {
    color: #6b7280;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ====================================
   FOOTER DO MODAL
   ==================================== */

.modal-agendamento-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    padding: 12px;
    display: flex;
    gap: 8px;
}

.modal-footer-btn {
    flex: 1;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-footer-btn.cancel {
    background: #e5e7eb;
    color: #374151;
}

.modal-footer-btn.cancel:hover {
    background: #d1d5db;
}

.modal-footer-btn.primary {
    background: #1f2937;
    color: #60a5fa;
}

.modal-footer-btn.primary:hover {
    background: #111827;
}

/* ====================================
   ELEMENTOS DECORATIVOS
   ==================================== */

.modal-decorative-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: -1;
}

.modal-floating-element {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
    animation: float 6s ease-in-out infinite;
}

.modal-floating-element.blue {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    top: 10%;
    right: -30px;
    animation-delay: 0s;
}

.modal-floating-element.indigo {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #6366f1, #4338ca);
    bottom: 20%;
    left: -20px;
    animation-delay: 2s;
}

.modal-floating-element.purple {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    top: 60%;
    right: -40px;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* ====================================
   RESPONSIVIDADE
   ==================================== */

@media (max-width: 768px) {
    .modal-mockup-container {
        max-width: 340px;
    }
    
    .modal-agendamento-mockup {
        font-size: 10px;
        height: 500px;
    }
    
    .modal-time-slots {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .modal-mockup-wrapper {
        transform: none;
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .modal-mockup-container {
        max-width: 280px;
    }
    
    .modal-agendamento-mockup {
        font-size: 9px;
        height: 450px;
    }
    
    .modal-time-slots {
        grid-template-columns: repeat(2, 1fr);
    }
}