/**
 * Sistema de Tours Interativos - Estilos
 */

/* Overlay escuro do tour */
.tour-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    pointer-events: none;
}

/* Elemento destacado no tour */
.tour-highlight {
    position: relative;
    z-index: 9999 !important;
    outline: 4px solid rgba(23, 162, 184, 0.9) !important;
    outline-offset: 2px;
    box-shadow: 0 0 20px rgba(23, 162, 184, 0.6), 
                0 0 40px rgba(23, 162, 184, 0.3) !important;
    border-radius: 4px;
    animation: tour-pulse 2s infinite;
}

@keyframes tour-pulse {
    0%, 100% {
        outline-color: rgba(23, 162, 184, 0.9);
        box-shadow: 0 0 20px rgba(23, 162, 184, 0.6), 
                    0 0 40px rgba(23, 162, 184, 0.3);
    }
    50% {
        outline-color: rgba(23, 162, 184, 0.7);
        box-shadow: 0 0 30px rgba(23, 162, 184, 0.8), 
                    0 0 60px rgba(23, 162, 184, 0.4);
    }
}

/* Tooltip do tour */
.tour-tooltip {
    position: absolute;
    z-index: 10001;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    animation: tour-fade-in 0.3s ease;
}

@keyframes tour-fade-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tour-tooltip-header {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.tour-tooltip-content {
    margin-bottom: 15px;
    line-height: 1.6;
    text-align: justify;
}

.tour-tooltip-footer {
    text-align: right;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.tour-tooltip-footer .btn {
    margin-left: 5px;
}

/* Caixa flutuante lateral do tour */
.tour-caixa-flutuante {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 320px;
    max-width: calc(100vw - 40px);
    background: #fff;
    border-radius: 3px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    opacity: 0;
    transform: translateX(400px);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.tour-caixa-flutuante.tour-caixa-visible {
    opacity: 1;
    transform: translateX(0);
}

.tour-caixa-header {
    background: #343a40;
    color: #fff;
    border-radius: 3px;
    padding: 16px 20px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.tour-caixa-fechar {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    padding: 0;
    font-size: 14px;
}

.tour-caixa-fechar:hover {
    background: rgba(255, 255, 255, 0.3);
}

.tour-caixa-titulo {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.tour-caixa-titulo i {
    font-size: 18px;
}

.tour-caixa-body {
    padding: 10px 20px 0 20px;
}

.tour-caixa-descricao {
    margin: 0 0 12px 0;
    color: #555;
    font-size: 14px;
    line-height: 1.5;
    text-align: justify;
}

.tour-caixa-texto {
    margin: 0;
    color: #333;
    font-size: 14px;
    font-weight: 500;
}

.tour-caixa-footer {
    padding: 0 20px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tour-caixa-footer .btn {
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.tour-caixa-footer .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.tour-caixa-footer .btn-link {
    color: #6c757d;
    text-decoration: none;
}

.tour-caixa-footer .btn-link:hover {
    color: #495057;
    text-decoration: none;
}

/* Responsivo */
@media (max-width: 768px) {
    .tour-tooltip {
        max-width: calc(100% - 40px);
        left: 20px !important;
        right: 20px;
    }
    
    .tour-highlight {
        outline: 3px solid rgba(23, 162, 184, 0.9) !important;
        outline-offset: 1px;
        box-shadow: 0 0 15px rgba(23, 162, 184, 0.6) !important;
    }
    
    .tour-caixa-flutuante {
        right: 10px;
        bottom: 10px;
        left: 10px;
        width: auto;
        max-width: none;
    }
}

