/**
 * Onboarding Progress Bar Styles
 */

.onboarding-progress-container {
    position: fixed;
    top: 80px;
    right: 20px;
    width: 380px;
    background: var(--card-bg, #ffffff);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-primary);
    z-index: 1000;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
}

.onboarding-progress-container.visible {
    opacity: 1;
    transform: translateX(0);
}

.onboarding-progress-container.minimized {
    opacity: 0;
    transform: translateX(400px);
}

.onboarding-progress {
    padding: 1.5rem;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.progress-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.progress-minimize {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg-secondary);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.progress-minimize:hover {
    background: var(--bg-tertiary);
}

.progress-minimize svg {
    width: 20px;
    height: 20px;
    fill: var(--text-secondary);
}

.progress-steps {
    margin-bottom: 1.5rem;
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.progress-step:hover {
    background: var(--bg-secondary);
}

.progress-step.current {
    background: var(--bg-secondary);
    border: 2px solid var(--color-primary);
    padding: calc(0.75rem - 2px);
}

.progress-step.completed .step-icon {
    background: #10B981;
    color: white;
}

.progress-step.completed .step-label {
    color: var(--text-secondary);
    text-decoration: line-through;
}

.progress-step.optional .step-label {
    font-style: italic;
}

.step-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-tertiary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.step-icon svg {
    width: 20px;
    height: 20px;
    fill: var(--text-secondary);
}

.progress-step.completed .step-icon svg {
    fill: white;
}

.step-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.step-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
}

.step-optional {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.step-connector {
    position: absolute;
    left: 39px;
    top: 60px;
    width: 2px;
    height: 20px;
    background: var(--border-primary);
}

.progress-step:last-child .step-connector {
    display: none;
}

.progress-step.completed .step-connector {
    background: #10B981;
}

.progress-bar-track {
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.progress-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.progress-percentage {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.progress-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.progress-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-continue-setup {
    flex: 1;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-continue-setup:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.btn-skip-onboarding {
    flex: 1;
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-skip-onboarding:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* Minimized Indicator */
.onboarding-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--card-bg);
    border: 1px solid var(--border-primary);
    border-radius: 24px;
    padding: 0.75rem 1.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 999;
}

.onboarding-indicator:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.indicator-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.indicator-progress {
    width: 100px;
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.indicator-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
    width: var(--progress, 0%);
    transition: width 0.3s ease;
}

.indicator-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* Milestone Celebration */
.milestone-celebration {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
    text-align: center;
    z-index: 10003;
    opacity: 0;
    transition: all 0.3s ease;
}

.milestone-celebration.visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.milestone-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    animation: bounce 0.6s ease-out;
}

.milestone-icon svg {
    width: 30px;
    height: 30px;
    fill: white;
}

.milestone-celebration h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

/* Completion Screen */
.onboarding-complete {
    position: fixed;
    top: 80px;
    right: 20px;
    width: 380px;
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-primary);
    z-index: 1000;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.3s ease;
}

.onboarding-complete.visible {
    opacity: 1;
    transform: scale(1);
}

.onboarding-complete.fade-out {
    opacity: 0;
    transform: scale(0.9);
}

.completion-content {
    padding: 2.5rem;
    text-align: center;
}

.completion-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    animation: pop 0.4s ease-out;
}

@keyframes pop {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.completion-icon svg {
    width: 40px;
    height: 40px;
    fill: white;
}

.completion-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.completion-content p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.btn-get-started {
    padding: 1rem 3rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-get-started:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

/* Highlight Animation */
.highlight-pulse {
    animation: highlight-pulse 1s ease-in-out 3;
}

@keyframes highlight-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(102, 126, 234, 0.3);
    }
}

/* Dark Theme */
[data-theme="dark"] .onboarding-progress-container,
[data-theme="dark"] .onboarding-indicator,
[data-theme="dark"] .onboarding-complete {
    background: #1a1a1a;
    border-color: #444;
}

[data-theme="dark"] .progress-minimize,
[data-theme="dark"] .progress-step:hover {
    background: #2a2a2a;
}

[data-theme="dark"] .progress-step.current {
    background: #2a2a2a;
}

[data-theme="dark"] .step-icon {
    background: #333;
}

[data-theme="dark"] .progress-bar-track {
    background: #333;
}

[data-theme="dark"] .btn-skip-onboarding {
    border-color: #444;
}

[data-theme="dark"] .btn-skip-onboarding:hover {
    background: #2a2a2a;
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .onboarding-progress-container {
        top: 60px;
        right: 10px;
        left: 10px;
        width: auto;
    }
    
    .onboarding-indicator {
        bottom: 70px;
        right: 10px;
        left: 10px;
        width: auto;
    }
    
    .progress-actions {
        flex-direction: column;
    }
    
    .btn-continue-setup,
    .btn-skip-onboarding {
        width: 100%;
    }
}