/**
 * Customização do Intro.js para o Sistema Antiquebra
 * Cores baseadas na identidade visual Claro
 */

/* Tooltip principal */
.introjs-tooltip {
    max-width: 450px;
    min-width: 300px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    padding: 15px;
}

/* Texto do tooltip */
.introjs-tooltiptext {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    padding: 10px 0;
}

/* Título do tooltip */
.introjs-tooltip-title {
    font-size: 18px;
    font-weight: 600;
    color: #003366;
    margin-bottom: 10px;
}

/* Botões */
.introjs-button {
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.introjs-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.introjs-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.2);
}

/* Botão Próximo e Concluir - Cor Claro */
.introjs-nextbutton,
.introjs-prevbutton {
    background-color: #003366 !important;
    border: 1px solid #003366 !important;
    color: white !important;
    font-weight: 500;
    text-shadow: none !important;
    border-radius: 4px;
}

.introjs-nextbutton:hover,
.introjs-prevbutton:hover {
    background-color: #002244 !important;
    border-color: #002244 !important;
}

/* Botões Pular e Anterior */
.introjs-skipbutton {
    width: 60px !important;
    height: 30px !important;
    padding: 0 !important;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #003366 !important;
    background-color: transparent !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    text-shadow: none !important;
    font-size: 12px !important;
}

.introjs-skipbutton:hover {
    color: #ccc !important;
    background-color: #003366 !important;
    border-color: #ccc !important;
}

.introjs-donebutton {
    width: 100px !important;
    height: 36px !important;
    padding: 0 !important;
    display: flex;
    justify-content: center;
    align-items: center;
}

.introjs-donebutton:hover {
    color: #ccc !important;
    background-color: #003366 !important;
    border-color: #ccc !important;
}

/* Desabilitar botão */
.introjs-button:disabled,
.introjs-disabled {
    background-color: #ccc;
    color: #666;
    cursor: not-allowed;
    opacity: 0.5;
}

.introjs-button:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Camada de destaque */
.introjs-helperLayer {
    background-color: rgba(255, 255, 255, 0.9);
    border: 2px solid #003366;
    box-shadow: rgba(0, 51, 102, 0.5) 0px 4px 15px;
    border-radius: 4px;
}

/* Overlay de fundo */
.introjs-overlay {
    background-color: rgba(0, 0, 0, 0.5);
}

/* Seta do tooltip */
.introjs-arrow {
    border-color: white;
}

.introjs-arrow.top {
    border-bottom-color: white;
}

.introjs-arrow.right {
    border-left-color: white;
}

.introjs-arrow.bottom {
    border-top-color: white;
}

.introjs-arrow.left {
    border-right-color: white;
}

/* Bullets (indicadores de progresso) */
.introjs-bullets {
    text-align: center;
    padding-top: 10px;
}

.introjs-bullets ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: inline-block;
}

.introjs-bullets ul li {
    display: inline-block;
    margin: 0 3px;
}

.introjs-bullets ul li a {
    display: block;
    width: 10px;
    height: 10px;
    background: #ccc;
    border-radius: 50%;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.introjs-bullets ul li a:hover {
    background: #999;
    transform: scale(1.2);
}

.introjs-bullets ul li a.active {
    background: #003366;
    width: 12px;
    height: 12px;
}

/* Barra de progresso */
.introjs-progress {
    background-color: #e0e0e0;
    border-radius: 2px;
    height: 4px;
    overflow: hidden;
    margin-top: 10px;
}

.introjs-progressbar {
    background-color: #003366;
    height: 100%;
    transition: width 0.3s ease;
    border-radius: 2px;
}

/* Número do step */
.introjs-tooltip-header {
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.introjs-skipbutton {
    margin-right: 5px;
}

/* Botão de ajuda personalizado */
#btn-iniciar-guia {
    position: relative;
    animation: pulseHelp 2s infinite;
}

@keyframes pulseHelp {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(0, 51, 102, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(0, 51, 102, 0);
    }
}

#btn-iniciar-guia:hover {
    animation: none;
}

/* Ajustes responsivos */
@media (max-width: 768px) {
    .introjs-tooltip {
        max-width: 90%;
        min-width: 250px;
    }

    .introjs-tooltiptext {
        font-size: 14px;
    }

    .introjs-button {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* Desabilitar interação com elementos durante o guia */
.introjs-showElement {
    z-index: 9999999 !important;
}

.introjs-disableInteraction {
    position: absolute;
    background-color: transparent;
    z-index: 99999999 !important;
}

/* Fixar tooltip em elementos pequenos */
.introjs-fixedTooltip {
    position: fixed;
}

/* Tooltip com título customizado */
.introjs-tooltip.custom-tooltip .introjs-tooltiptext {
    padding-top: 0;
}

/* Animação de entrada do tooltip */
@keyframes introjs-fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.introjs-tooltip {
    animation: introjs-fadeIn 0.3s ease;
}

