/**
 * Estilos para Sistema de Tutoriais
 * 
 * @version 1.0.0
 */

.tutorial-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    z-index: 9998;
    display: none;
    animation: fadeIn 0.3s ease;
}

.tutorial-overlay.active {
    display: block;
}

.tutorial-step {
    position: fixed;
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    z-index: 9999;
    animation: scaleIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 2px solid #667eea;
}

.tutorial-step::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border: 12px solid transparent;
}

.tutorial-step.top::before {
    bottom: -24px;
    left: 50%;
    transform: translateX(-50%);
    border-top-color: white;
}

.tutorial-step.bottom::before {
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    border-bottom-color: white;
}

.tutorial-step.left::before {
    right: -24px;
    top: 50%;
    transform: translateY(-50%);
    border-left-color: white;
}

.tutorial-step.right::before {
    left: -24px;
    top: 50%;
    transform: translateY(-50%);
    border-right-color: white;
}

.tutorial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}

.tutorial-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.tutorial-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
}

.tutorial-close:hover {
    background: #f0f0f0;
    color: #333;
}

.tutorial-content {
    margin-bottom: 20px;
}

.tutorial-content p {
    margin: 0;
    color: #666;
    line-height: 1.6;
    font-size: 15px;
}

.tutorial-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 2px solid #f0f0f0;
}

.tutorial-progress {
    font-size: 12px;
    color: #999;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tutorial-actions {
    display: flex;
    gap: 8px;
}

.tutorial-prev,
.tutorial-next {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.tutorial-next {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.tutorial-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.tutorial-prev {
    background: #f0f0f0;
    color: #333;
}

.tutorial-prev:hover {
    background: #e0e0e0;
}

.tutorial-highlight {
    position: relative;
    z-index: 10000;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.5),
                0 0 0 8px rgba(102, 126, 234, 0.3),
                0 0 30px rgba(102, 126, 234, 0.5);
    border-radius: 12px;
    animation: pulse 2s infinite;
    transition: all 0.3s;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.5),
                    0 0 0 8px rgba(102, 126, 234, 0.3),
                    0 0 30px rgba(102, 126, 234, 0.5);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(102, 126, 234, 0.6),
                    0 0 0 12px rgba(102, 126, 234, 0.4),
                    0 0 40px rgba(102, 126, 234, 0.6);
    }
}

/* Dark Mode */
[data-theme="dark"] .tutorial-step {
    background: #1a1a1a;
    border-color: #667eea;
    color: #fff;
}

[data-theme="dark"] .tutorial-header {
    border-bottom-color: #333;
}

[data-theme="dark"] .tutorial-header h4 {
    color: #fff;
}

[data-theme="dark"] .tutorial-content p {
    color: #ccc;
}

[data-theme="dark"] .tutorial-footer {
    border-top-color: #333;
}

[data-theme="dark"] .tutorial-close {
    color: #999;
}

[data-theme="dark"] .tutorial-close:hover {
    background: #333;
    color: #fff;
}

[data-theme="dark"] .tutorial-prev {
    background: #333;
    color: #fff;
}

[data-theme="dark"] .tutorial-prev:hover {
    background: #444;
}
