/* =========================================================
   SIMPLIZ GUIDED TOUR
   ========================================================= */

   body.simpliz-tour-open {
    overflow: hidden !important;
}

/* Camada que impede cliques no restante da interface */
.simpliz-tour-shield {
    position: fixed;
    inset: 0;
    z-index: 9996;
    background: transparent;
    cursor: default;
}

/* Recorte visual em torno do elemento atual */
.simpliz-tour-spotlight {
    position: fixed;
    z-index: 9998;
    pointer-events: none;

    border: 3px solid #60a5fa;
    border-radius: 16px;

    box-shadow:
        0 0 0 9999px rgba(15, 23, 42, 0.76),
        0 0 0 6px rgba(96, 165, 250, 0.18),
        0 14px 35px rgba(0, 0, 0, 0.24);

    transition:
        top 180ms ease,
        left 180ms ease,
        width 180ms ease,
        height 180ms ease;
}

.simpliz-tour-target {
    position: relative;
}

/*
 * Etapas interativas.
 *
 * O elemento destacado fica acima da camada que bloqueia
 * o restante da tela. Assim somente ele pode ser clicado.
 */
.simpliz-tour-target-clickable {
    position: relative !important;
    z-index: 9999 !important;
    cursor: pointer !important;
}

/* Balão */
.simpliz-tour-card {
    position: fixed;
    z-index: 10000;

    width: min(390px, calc(100vw - 32px));

    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;

    box-shadow:
        0 25px 65px rgba(15, 23, 42, 0.30);

    overflow: hidden;

    animation: simplizTourEnter 180ms ease-out;
}

@keyframes simplizTourEnter {
    from {
        opacity: 0;
        transform: translateY(6px) scale(0.985);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


/* Cabeçalho */
.simpliz-tour-header {
    padding: 18px 20px 16px;

    background: linear-gradient(
        135deg,
        #1d4ed8,
        #172554
    );

    color: #ffffff;
}

.simpliz-tour-header-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.simpliz-tour-step-label {
    margin: 0 0 5px;

    font-size: 11px;
    line-height: 1;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 0.09em;

    color: #bfdbfe;
}

.simpliz-tour-title {
    margin: 0;

    font-size: 20px;
    line-height: 1.25;
    font-weight: 900;
}

.simpliz-tour-close {
    width: 34px;
    height: 34px;

    flex: 0 0 34px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 9px;

    color: #dbeafe;
    background: rgba(255, 255, 255, 0.10);

    cursor: pointer;

    transition:
        background 150ms ease,
        color 150ms ease;
}

.simpliz-tour-close:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
}


/* Corpo */
.simpliz-tour-body {
    padding: 20px;
}

.simpliz-tour-text {
    margin: 0;

    color: #475569;

    font-size: 14px;
    line-height: 1.65;
}

.simpliz-tour-tip {
    display: flex;
    gap: 10px;

    margin-top: 16px;
    padding: 13px 14px;

    border: 1px solid #dbeafe;
    border-radius: 12px;

    background: #eff6ff;
    color: #1e3a8a;

    font-size: 13px;
    line-height: 1.5;
}

.simpliz-tour-tip-icon {
    flex: 0 0 auto;
    color: #2563eb;
    margin-top: 1px;
}


/* Barra de progresso */
.simpliz-tour-progress {
    height: 4px;
    background: #e5e7eb;
}

.simpliz-tour-progress-bar {
    height: 100%;

    background: #2563eb;

    transition: width 180ms ease;
}


/* Rodapé */
.simpliz-tour-footer {
    padding: 14px 20px 18px;

    border-top: 1px solid #f1f5f9;

    background: #ffffff;
}

.simpliz-tour-footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;
}

.simpliz-tour-skip-step {
    padding: 7px 0;

    border: 0;

    background: transparent;
    color: #64748b;

    font-size: 12px;
    font-weight: 600;

    cursor: pointer;
}

.simpliz-tour-skip-step:hover {
    color: #1e293b;
}

.simpliz-tour-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.simpliz-tour-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    min-height: 38px;

    padding: 9px 14px;

    border-radius: 10px;

    font-size: 13px;
    font-weight: 800;

    cursor: pointer;

    transition:
        background 150ms ease,
        color 150ms ease,
        border-color 150ms ease;
}

.simpliz-tour-button-secondary {
    border: 1px solid #dbeafe;

    background: #ffffff;
    color: #2563eb;
}

.simpliz-tour-button-secondary:hover {
    background: #eff6ff;
}

.simpliz-tour-button-primary {
    border: 1px solid #2563eb;

    background: #2563eb;
    color: #ffffff;
}

.simpliz-tour-button-primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

.simpliz-tour-button[disabled] {
    opacity: 0.4;
    cursor: default;
}


/* Indicadores */
.simpliz-tour-counter {
    margin-top: 12px;

    text-align: center;

    color: #94a3b8;

    font-size: 11px;
    font-weight: 700;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 640px) {

    .simpliz-tour-card {
        left: 16px !important;
        right: 16px !important;
        bottom: 16px !important;

        top: auto !important;

        width: auto !important;
    }

    .simpliz-tour-title {
        font-size: 18px;
    }

    .simpliz-tour-body {
        padding: 17px;
    }

    .simpliz-tour-footer {
        padding-left: 17px;
        padding-right: 17px;
    }

    .simpliz-tour-footer-top {
        align-items: flex-end;
    }

    .simpliz-tour-actions {
        flex-wrap: wrap;
        justify-content: flex-end;
    }

}
