/**
 * IncrediChat Help Wizard Styles
 */

/* Tooltip Container */
#wizard-tooltip {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2), 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 320px;
    max-width: 420px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.wizard-tooltip-content {
    padding: 20px;
}

/* Header */
.wizard-tooltip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.wizard-step-counter {
    font-size: 12px;
    font-weight: 600;
    color: #6366f1;
    background: #eef2ff;
    padding: 4px 10px;
    border-radius: 20px;
}

.wizard-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #9ca3af;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.wizard-close-btn:hover {
    background: #f3f4f6;
    color: #374151;
}

/* Title & Text */
.wizard-tooltip-title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 8px 0;
}

.wizard-tooltip-text {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 16px 0;
}

.wizard-tooltip-text strong {
    color: #374151;
}

/* Footer */
.wizard-tooltip-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #f3f4f6;
}

/* Don't show checkbox */
.wizard-dont-show {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #6b7280;
    cursor: pointer;
}

.wizard-dont-show input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #6366f1;
    cursor: pointer;
}

/* Navigation Buttons */
.wizard-nav-buttons {
    display: flex;
    gap: 8px;
}

.wizard-btn {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.wizard-btn-primary {
    background: #6366f1;
    color: white;
}

.wizard-btn-primary:hover {
    background: #4f46e5;
}

.wizard-btn-secondary {
    background: #f3f4f6;
    color: #374151;
}

.wizard-btn-secondary:hover {
    background: #e5e7eb;
}

/* Arrow Styles */
.wizard-tooltip-arrow {
    position: absolute;
    width: 16px;
    height: 16px;
    background: #ffffff;
    transform: rotate(45deg);
    box-shadow: -2px -2px 4px rgba(0, 0, 0, 0.05);
}

.wizard-tooltip-arrow.arrow-top {
    top: -8px;
    left: 50%;
    margin-left: -8px;
}

.wizard-tooltip-arrow.arrow-bottom {
    bottom: -8px;
    left: 50%;
    margin-left: -8px;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.05);
}

.wizard-tooltip-arrow.arrow-left {
    left: -8px;
    top: 50%;
    margin-top: -8px;
}

.wizard-tooltip-arrow.arrow-right {
    right: -8px;
    top: 50%;
    margin-top: -8px;
    box-shadow: 2px -2px 4px rgba(0, 0, 0, 0.05);
}

/* Animation for highlighted element pulse */
@keyframes wizard-pulse {
    0%, 100% {
        box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.3);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(99, 102, 241, 0.1);
    }
}

/* Responsive adjustments */
@media (max-width: 480px) {
    #wizard-tooltip {
        min-width: 280px;
        max-width: calc(100vw - 40px);
    }

    .wizard-tooltip-content {
        padding: 16px;
    }

    .wizard-tooltip-footer {
        flex-direction: column;
        gap: 12px;
    }

    .wizard-dont-show {
        order: 2;
    }

    .wizard-nav-buttons {
        order: 1;
        width: 100%;
        justify-content: space-between;
    }

    .wizard-btn {
        flex: 1;
    }
}

/* Welcome modal for wizard start */
.wizard-welcome-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10002;
}

.wizard-welcome-content {
    background: white;
    border-radius: 16px;
    padding: 32px;
    max-width: 480px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.wizard-welcome-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.wizard-welcome-icon i {
    font-size: 28px;
    color: white;
}

.wizard-welcome-content h2 {
    font-size: 24px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 12px 0;
}

.wizard-welcome-content p {
    font-size: 15px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 24px 0;
}

.wizard-welcome-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.wizard-welcome-buttons .wizard-btn {
    padding: 12px 24px;
    font-size: 15px;
}
