/* BookingPro Frontend Styles */

.bookingpro-calendar-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #e2e8f0;
    position: relative;
}

/* Étapes de progression */
.bookingpro-steps {
    display: flex;
    background: #f8fafc;
    padding: 20px 30px;
    border-bottom: 1px solid #e2e8f0;
    gap: 20px;
}

.bookingpro-step {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.bookingpro-step:not(:last-child)::after {
    content: '→';
    position: absolute;
    right: -20px;
    color: #94a3b8;
    font-size: 20px;
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    color: #64748b;
    transition: all 0.3s;
}

.bookingpro-step.active .step-number {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

.bookingpro-step.completed .step-number {
    background: #10b981;
    border-color: #10b981;
    color: #ffffff;
}

.bookingpro-step.completed .step-number::before {
    content: '✓';
}

.step-label {
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
}

.bookingpro-step.active .step-label {
    color: #0f172a;
    font-weight: 600;
}

/* Contenu */
.bookingpro-content {
    padding: 40px;
}

.bookingpro-step-content {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

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

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

.bookingpro-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #0f172a;
}

.bookingpro-subtitle {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    margin-top: 24px;
    color: #0f172a;
}

/* Grille de services */
.bookingpro-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.bookingpro-service-card {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s;
    background: #ffffff;
}

.bookingpro-service-card:hover {
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
    transform: translateY(-4px);
}

.bookingpro-service-card.selected {
    border-color: #2563eb;
    background: rgba(37, 99, 235, 0.05);
}

.service-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.service-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #0f172a;
}

.service-description {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 16px;
    line-height: 1.5;
}

.service-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.service-duration {
    font-size: 14px;
    color: #64748b;
}

.service-price {
    font-size: 20px;
    font-weight: 700;
    color: #2563eb;
}

/* Grille employés */
.bookingpro-employees-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.bookingpro-employee-card {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #ffffff;
}

.bookingpro-employee-card:hover {
    border-color: #2563eb;
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.bookingpro-employee-card.selected {
    border-color: #2563eb;
    background: rgba(37, 99, 235, 0.05);
}

.employee-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #ffffff;
}

.employee-name {
    font-weight: 600;
    margin-bottom: 4px;
    color: #0f172a;
}

.employee-role {
    font-size: 13px;
    color: #64748b;
}

/* Calendrier */
.bookingpro-calendar-widget {
    background: #f8fafc;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}

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

.calendar-month {
    font-size: 20px;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
}

.calendar-nav-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: #ffffff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s;
    color: #0f172a;
}

.calendar-nav-btn:hover {
    background: #2563eb;
    color: #ffffff;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.calendar-day-header {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    padding: 8px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.calendar-day:hover:not(.disabled):not(.empty) {
    border-color: #2563eb;
    background: rgba(37, 99, 235, 0.05);
}

.calendar-day.selected {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

.calendar-day.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: transparent;
}

.calendar-day.empty {
    background: transparent;
    border: none;
    cursor: default;
}

/* Créneaux horaires */
.bookingpro-time-slots-wrapper {
    margin-top: 24px;
}

.bookingpro-time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
}

.bookingpro-time-slot {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: #ffffff;
    font-weight: 500;
}

.bookingpro-time-slot:hover:not(.unavailable) {
    border-color: #2563eb;
    background: rgba(37, 99, 235, 0.05);
}

.bookingpro-time-slot.selected {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

.bookingpro-time-slot.unavailable {
    opacity: 0.4;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* Résumé */
.bookingpro-summary-box {
    background: #f8fafc;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
}

.bookingpro-summary-box h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #0f172a;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-total {
    padding-top: 16px;
    margin-top: 8px;
    border-top: 2px solid #cbd5e1;
    font-size: 18px;
}

.summary-total strong {
    color: #2563eb;
}

/* Formulaire */
.bookingpro-form-group {
    margin-bottom: 20px;
}

.bookingpro-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #0f172a;
    font-size: 14px;
}

.bookingpro-input,
.bookingpro-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s;
}

.bookingpro-input:focus,
.bookingpro-textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.bookingpro-textarea {
    resize: vertical;
}

/* Actions */
.bookingpro-actions {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

.bookingpro-btn {
    flex: 1;
    padding: 14px 24px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.bookingpro-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.bookingpro-btn-primary {
    background: #2563eb;
    color: #ffffff;
}

.bookingpro-btn-primary:hover:not(:disabled) {
    background: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.bookingpro-btn-secondary {
    background: #ffffff;
    color: #0f172a;
    border: 2px solid #e2e8f0;
}

.bookingpro-btn-secondary:hover {
    border-color: #2563eb;
    color: #2563eb;
}

/* Success */
.bookingpro-success {
    text-align: center;
    padding: 60px 40px;
}

.success-icon {
    font-size: 80px;
    margin-bottom: 20px;
    color: #10b981;
    width: 100px;
    height: 100px;
    background: #d1fae5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.success-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #10b981;
}

.success-message {
    font-size: 16px;
    color: #64748b;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Loading */
.bookingpro-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loader {
    width: 50px;
    height: 50px;
    border: 4px solid #e2e8f0;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .bookingpro-content {
        padding: 20px;
    }

    .bookingpro-services-grid,
    .bookingpro-employees-grid {
        grid-template-columns: 1fr;
    }

    .bookingpro-steps {
        padding: 15px;
        gap: 10px;
    }

    .step-label {
        display: none;
    }

    .bookingpro-step:not(:last-child)::after {
        right: -10px;
        font-size: 16px;
    }

    .bookingpro-actions {
        flex-direction: column;
    }

    .bookingpro-time-slots {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
}
