#onboarding-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100004;
}

.onboarding-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    animation: fadeIn 0.3s ease-out;
}

.onboarding-bottom-sheet {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    max-height: 85vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
}

.onboarding-bottom-sheet.dark {
    background: #1e293b;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
}

.onboarding-bottom-sheet.show {
    transform: translateY(0);
}

.onboarding-handle {
    width: 40px;
    height: 4px;
    background: #d1d5db;
    border-radius: 2px;
    margin: 12px auto 8px;
}

.onboarding-handle.dark {
    background: #475569;
}

.onboarding-progress {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 16px 24px 8px;
}

.progress-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e5e7eb;
    transition: all 0.3s ease;
}

.progress-dot.active {
    background: #ec4899;
    transform: scale(1.2);
}

.onboarding-content {
    padding: 24px;
    text-align: center;
}

.onboarding-step {
    animation: slideUp 0.3s ease-out;
}

.step-icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
}

.step-title {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 12px;
    line-height: 1.2;
}

.step-title.dark {
    color: #f1f5f9;
}

.step-description {
    font-size: 16px;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 16px;
}

.step-description.dark {
    color: #cbd5e1;
}

.onboarding-actions {
    padding: 16px 24px 24px;
    border-top: 1px solid #f3f4f6;
}

.onboarding-actions.dark {
    border-top-color: #334155;
}

.onboarding-buttons {
    display: flex;
    gap: 12px;
}

.btn-skip {
    flex: 1;
    padding: 12px 24px;
    background: transparent;
    color: #6b7280;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-skip:hover {
    background: #f9fafb;
    color: #374151;
}

.btn-skip.dark {
    color: #cbd5e1;
    border-color: #475569;
}

.btn-skip.dark:hover {
    background: #334155;
    color: #f1f5f9;
}

.btn-next {
    flex: 2;
    padding: 12px 24px;
    background: #ec4899;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-next:hover {
    background: #db2777;
    transform: translateY(-1px);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .onboarding-bottom-sheet {
        border-radius: 20px 20px 0 0;
    }
    
    .onboarding-content {
        padding: 20px;
    }
    
    .step-title {
        font-size: 20px;
    }
    
    .step-description {
        font-size: 15px;
    }
    
    .onboarding-buttons {
        flex-direction: column;
    }
    
    .btn-skip,
    .btn-next {
        flex: 1;
    }
}

@media (max-width: 480px) {
    .onboarding-content {
        padding: 16px;
    }
    
    .step-icon {
        font-size: 40px;
    }
    
    .step-title {
        font-size: 18px;
    }
    
    .step-description {
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .onboarding-bottom-sheet,
    .onboarding-step {
        animation: none;
        transition: none;
    }
}

.btn-skip:focus,
.btn-next:focus {
    outline: 2px solid #ec4899;
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Botão de Ajuda Flutuante */
.help-button {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #ec4899;
    color: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1000;
    font-size: 24px;
}

.help-button:hover {
    background: #db2777;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(236, 72, 153, 0.4);
}

.help-button:active {
    transform: translateY(0);
}

.help-button .material-icons {
    font-size: 24px;
}

/* Dropdown de Ajuda */
.help-dropdown {
    position: fixed;
    bottom: 90px;
    right: 24px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1001;
    border: 1px solid #e5e7eb;
}

.help-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.help-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    color: #374151;
    text-decoration: none;
    transition: background-color 0.2s ease;
    border-radius: 12px;
}

.help-dropdown-item:hover {
    background: #f9fafb;
    color: #111827;
}

.help-dropdown-item .material-icons {
    font-size: 20px;
    color: #ec4899;
}

/* Modo escuro */
@media (prefers-color-scheme: dark) {
    .help-dropdown {
        background: #1e293b;
        border-color: #334155;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    }
    
    .help-dropdown-item {
        color: #e2e8f0;
    }
    
    .help-dropdown-item:hover {
        background: #334155;
        color: #f1f5f9;
    }
}

/* Responsividade */
@media (max-width: 768px) {
    .help-button {
        bottom: 20px;
        right: 20px;
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
    
    .help-button .material-icons {
        font-size: 20px;
    }
    
    .help-dropdown {
        bottom: 76px;
        right: 20px;
        min-width: 180px;
    }
}

@media (max-width: 480px) {
    .help-button {
        bottom: 16px;
        right: 16px;
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
    
    .help-button .material-icons {
        font-size: 18px;
    }
    
    .help-dropdown {
        bottom: 68px;
        right: 16px;
        min-width: 160px;
    }
    
    .help-dropdown-item {
        padding: 14px 16px;
        font-size: 14px;
    }
}
