﻿.ui-helper-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99998;
    transition: opacity 0.5s ease-in-out;
    cursor: pointer;
    pointer-events: auto;
}

.ui-helper-overlay-svg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99998;
    pointer-events: none;
}

.ui-helper-highlight {
    position: absolute;
    box-shadow: 0 0 0 4px rgba(33, 150, 243, 0.8), 0 0 20px 8px rgba(33, 150, 243, 0.6), inset 0 0 0 2px rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    z-index: 99999;
    pointer-events: none;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
}

    .ui-helper-highlight::before {
        content: '';
        position: absolute;
        top: -4px;
        left: -4px;
        right: -4px;
        bottom: -4px;
        background: linear-gradient(45deg, rgba(33, 150, 243, 0) 0%, rgba(33, 150, 243, 0.3) 50%, rgba(33, 150, 243, 0) 100%);
        animation: ui-helper-pulse 2s ease-in-out infinite;
        border-radius: 8px;
    }

@keyframes ui-helper-pulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.02);
    }
}

.ui-helper-tooltip {
    position: absolute;
    background: linear-gradient(135deg, #212121 0%, #0D47A1 100%);
    opacity: 0.85;
    color: white;
    padding: 20px 24px;
    border-radius: 12px;
    z-index: 100000;
    max-width: 400px;
    min-width: 380px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    pointer-events: none;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

    .ui-helper-tooltip::before {
        content: '';
        position: absolute;
        width: 16px;
        height: 16px;
        background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
        transform: rotate(45deg);
        border-left: 1px solid rgba(255, 255, 255, 0.15);
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }

    .ui-helper-tooltip.position-top::before {
        bottom: -8px;
        left: 50%;
        margin-left: -8px;
    }

    .ui-helper-tooltip.position-bottom::before {
        top: -8px;
        left: 50%;
        margin-left: -8px;
        transform: rotate(225deg);
    }

    .ui-helper-tooltip.position-left::before {
        right: -8px;
        top: 50%;
        margin-top: -8px;
        transform: rotate(315deg);
    }

    .ui-helper-tooltip.position-right::before {
        left: -8px;
        top: 50%;
        margin-top: -8px;
        transform: rotate(135deg);
    }

.ui-helper-tooltip-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

    .ui-helper-tooltip-title i {
        color: #4fc3f7;
        text-shadow: 0 0 8px rgba(79, 195, 247, 0.5);
    }

.ui-helper-tooltip-description {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 16px;
}

.ui-helper-tooltip-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.ui-helper-progress {
    display: flex;
    gap: 6px;
    align-items: center;
}

.ui-helper-progress-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

    .ui-helper-progress-dot.active {
        background: #4fc3f7;
        box-shadow: 0 0 6px rgba(79, 195, 247, 0.6);
        transform: scale(1.5);
    }

.ui-helper-next-hint {
    display: flex;
    align-items: center;
    gap: 4px;
    font-style: italic;
    animation: ui-helper-hint-pulse 1.5s ease-in-out infinite;
}

@keyframes ui-helper-hint-pulse {
    0%, 100% {
        opacity: 0.7;
    }

    50% {
        opacity: 1;
    }
}

.ui-helper-fade-in {
    animation: ui-helper-fade-in 0.5s ease-in-out;
}

@keyframes ui-helper-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.ui-helper-fade-out {
    animation: ui-helper-fade-out 0.5s ease-in-out forwards;
}

@keyframes ui-helper-fade-out {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}
