/* Estilos do Tutorial Sidebar */

.tutorial-sidebar {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    height: 100vh;
    background: white;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 2000;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.tutorial-sidebar.active {
    right: 0;
}

.tutorial-sidebar-header {
    padding: 24px;
    border-bottom: 2px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #0066cc 0%, #004d99 100%);
    color: white;
    flex-shrink: 0;
}

.tutorial-sidebar-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.tutorial-sidebar-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
    color: white;
}

.tutorial-sidebar-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.tutorial-sidebar-close svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2.5;
}

.tutorial-sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    background: #f8fafc;
}

.tutorial-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.tutorial-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Conteúdo do Tutorial */
.tutorial-content {
    padding: 24px;
}

.tutorial-section {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s;
}

.tutorial-section:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.tutorial-section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e3a5f;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5e7eb;
}

.tutorial-section-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0066cc 0%, #004d99 100%);
    box-shadow: 0 4px 6px -1px rgba(0, 102, 204, 0.3);
    flex-shrink: 0;
}

.tutorial-section-icon svg {
    width: 20px;
    height: 20px;
    stroke: white;
    fill: none;
    stroke-width: 2.5;
}

.tutorial-step {
    margin-bottom: 20px;
    padding-left: 24px;
    position: relative;
}

.tutorial-step::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #0066cc;
    border: 2px solid white;
    box-shadow: 0 0 0 2px #0066cc;
}

.tutorial-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 3px;
    top: 20px;
    width: 2px;
    height: calc(100% + 4px);
    background: #e5e7eb;
}

.tutorial-step-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e3a5f;
    margin-bottom: 8px;
}

.tutorial-step-description {
    font-size: 0.95rem;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 12px;
}

.tutorial-step-list {
    list-style: none;
    padding: 0;
    margin: 12px 0;
}

.tutorial-step-list li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    font-size: 0.9rem;
    color: #4b5563;
    line-height: 1.5;
}

.tutorial-step-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
    font-size: 1rem;
}

.tutorial-navigation {
    position: sticky;
    bottom: 0;
    background: white;
    border-top: 2px solid #e5e7eb;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

.tutorial-nav-button {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
}

.tutorial-nav-button.prev {
    background: #f3f4f6;
    color: #4b5563;
}

.tutorial-nav-button.prev:hover:not(:disabled) {
    background: #e5e7eb;
    color: #1e3a5f;
}

.tutorial-nav-button.next {
    background: linear-gradient(135deg, #0066cc 0%, #004d99 100%);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 102, 204, 0.3);
}

.tutorial-nav-button.next:hover:not(:disabled) {
    box-shadow: 0 6px 12px -1px rgba(0, 102, 204, 0.4);
    transform: translateY(-1px);
}

.tutorial-nav-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.tutorial-nav-button svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.5;
}

.tutorial-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #6b7280;
    font-weight: 500;
}

.tutorial-progress-bar {
    flex: 1;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
}

.tutorial-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0066cc 0%, #004d99 100%);
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* Ícones específicos do tutorial */
.tutorial-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-right: 8px;
    vertical-align: middle;
}

.tutorial-icon svg {
    width: 20px;
    height: 20px;
    stroke: #0066cc;
    fill: none;
    stroke-width: 2;
}

/* Destaque para elementos importantes */
.tutorial-highlight {
    background: #fef3c7;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    color: #92400e;
}

.tutorial-tip {
    background: #dbeafe;
    border-left: 4px solid #0066cc;
    padding: 12px 16px;
    border-radius: 6px;
    margin: 12px 0;
    font-size: 0.9rem;
    color: #1e40af;
}

.tutorial-tip strong {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
}

/* Responsivo */
@media (max-width: 768px) {
    .tutorial-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .tutorial-sidebar.active {
        right: 0;
    }
}
