/**
 * Onboarding Tour Styles
 */

.dila-onboarding-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999998;
    display: none;
}

.dila-onboarding-overlay.dila-highlight-active {
    background: transparent;
    box-shadow:
        0 0 0 9999px rgba(0, 0, 0, 0.5),
        inset 0 0 0 2px #2271b1;
    clip-path: polygon(
        0 0,
        0 100%,
        var(--highlight-left) 100%,
        var(--highlight-left) var(--highlight-top),
        calc(var(--highlight-left) + var(--highlight-width)) var(--highlight-top),
        calc(var(--highlight-left) + var(--highlight-width)) calc(var(--highlight-top) + var(--highlight-height)),
        var(--highlight-left) calc(var(--highlight-top) + var(--highlight-height)),
        var(--highlight-left) 100%,
        100% 100%,
        100% 0
    );
}

.dila-onboarding-tooltip {
    position: absolute;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    z-index: 999999;
    display: none;
}

.dila-tooltip-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 15px;
    border-bottom: 1px solid #e0e0e0;
}

.dila-tooltip-title {
    font-size: 18px;
    font-weight: 600;
    color: #1e1e1e;
    flex: 1;
}

.dila-tooltip-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s;
}

.dila-tooltip-close:hover {
    background: #f0f0f0;
}

.dila-tooltip-content {
    padding: 20px;
    font-size: 14px;
    line-height: 1.6;
    color: #444;
}

.dila-tooltip-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px 20px;
    border-top: 1px solid #e0e0e0;
}

.dila-tooltip-progress {
    font-size: 12px;
    color: #666;
}

.dila-tooltip-actions {
    display: flex;
    gap: 10px;
}

.dila-tooltip-actions .button {
    margin: 0;
}

/* Animations */
@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dila-onboarding-tooltip {
    animation: tooltipFadeIn 0.3s ease;
}

/* Mobile responsiveness */
@media (max-width: 782px) {
    .dila-onboarding-tooltip {
        max-width: calc(100% - 40px);
        left: 20px !important;
        right: 20px !important;
        transform: none !important;
    }

    .dila-tooltip-header {
        padding: 15px;
    }

    .dila-tooltip-content {
        padding: 15px;
    }

    .dila-tooltip-footer {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
        padding: 15px;
    }

    .dila-tooltip-actions {
        width: 100%;
    }

    .dila-tooltip-actions .button {
        flex: 1;
    }

    .dila-tooltip-progress {
        text-align: center;
    }
}
