/* Onboarding Wizard Styles */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700&display=swap');

.tutor-onboarding-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999998;
    display: none;
}

.tutor-onboarding-tooltip {
    position: absolute;
    z-index: 999999;
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    max-width: 300px;
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    text-align: right;
}

.tutor-onboarding-tooltip .tooltip-arrow {
    position: absolute;
    width: 0;
    height: 0;
    border: 8px solid transparent;
}

.tutor-onboarding-tooltip.position-top .tooltip-arrow {
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    border-top-color: white;
}

.tutor-onboarding-tooltip.position-bottom .tooltip-arrow {
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    border-bottom-color: white;
}

.tutor-onboarding-tooltip.position-left .tooltip-arrow {
    right: -16px;
    top: 50%;
    transform: translateY(-50%);
    border-left-color: white;
}

.tutor-onboarding-tooltip.position-right .tooltip-arrow {
    left: -16px;
    top: 50%;
    transform: translateY(-50%);
    border-right-color: white;
}

.tutor-onboarding-controls {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    z-index: 999999;
    max-width: 400px;
    width: 90%;
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    text-align: right;
    display: none;
}

.onboarding-progress-bar {
    height: 6px;
    background: #e6f2ff;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0066cc, #004499);
    transition: width 0.3s ease;
}

.onboarding-content {
    padding: 25px;
}

.step-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.step-title {
    font-size: 22px;
    font-weight: 700;
    color: #0066cc;
    margin: 0;
}

.step-counter {
    font-size: 14px;
    color: #666;
    background: #e6f2ff;
    padding: 5px 12px;
    border-radius: 20px;
}

.step-description {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.step-content {
    color: #333;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 25px;
}

.step-content ul {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.step-content li {
    padding: 8px 0;
    color: #333;
}

.step-action-container {
    margin: 20px 0;
    text-align: center;
}

.step-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,102,204,0.3);
}

.step-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,102,204,0.4);
    background: linear-gradient(135deg, #004499 0%, #003366 100%);
}

.step-action-btn .action-arrow {
    transition: transform 0.3s ease;
}

.step-action-btn:hover .action-arrow {
    transform: translateX(-5px);
}

.tutor-onboarding-controls.animate-in {
    animation: slideInUp 0.3s ease;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.step-actions button {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-family: 'Cairo', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-next,
.btn-complete {
    background: #0066cc;
    color: white;
}

.btn-next:hover,
.btn-complete:hover {
    background: #004499;
    transform: translateY(-2px);
}

.btn-prev {
    background: #f0f0f0;
    color: #333;
}

.btn-prev:hover {
    background: #e0e0e0;
}

.btn-skip {
    background: transparent;
    color: #666;
    border: 1px solid #ddd;
}

.btn-skip:hover {
    background: #f8f9fa;
}

.btn-close {
    position: absolute;
    top: 15px;
    left: 15px;
    background: transparent;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.btn-close:hover {
    background: #f0f0f0;
    color: #333;
}

.onboarding-highlight {
    position: relative;
    z-index: 999997;
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.5) !important;
    border-radius: 4px;
}

.onboarding-completion-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    z-index: 1000000;
    max-width: 500px;
    width: 90%;
    text-align: center;
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    display: none;
}

.onboarding-completion-message.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.completion-icon {
    font-size: 64px;
    color: #28a745;
    margin-bottom: 20px;
}

.completion-content h2 {
    color: #0066cc;
    font-size: 28px;
    margin: 0 0 15px 0;
}

.completion-content p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.completion-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.completion-actions .button {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-family: 'Cairo', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.completion-actions .button-primary {
    background: #0066cc;
    color: white;
}

.completion-actions .button-primary:hover {
    background: #004499;
}

.completion-actions .button-secondary {
    background: #f0f0f0;
    color: #333;
}

.completion-actions .button-secondary:hover {
    background: #e0e0e0;
}

@media (max-width: 768px) {
    .tutor-onboarding-controls {
        right: 5%;
        left: 5%;
        bottom: 20px;
        max-width: none;
        width: auto;
    }
    
    .onboarding-content {
        padding: 20px;
    }
    
    .step-title {
        font-size: 20px;
    }
    
    .step-description {
        font-size: 14px;
    }
    
    .step-content {
        font-size: 14px;
    }
    
    .step-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .step-actions button {
        width: 100%;
        min-height: 44px;
        font-size: 16px;
    }
    
    .step-action-btn {
        width: 100%;
        justify-content: center;
    }
    
    .tutor-onboarding-tooltip {
        max-width: calc(100vw - 40px);
        font-size: 14px;
    }
    
    .onboarding-completion-message {
        padding: 30px 20px;
        max-width: calc(100vw - 40px);
    }
    
    .completion-content h2 {
        font-size: 24px;
    }
    
    .completion-actions {
        flex-direction: column;
    }
    
    .completion-actions .button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .tutor-onboarding-controls {
        right: 10px;
        left: 10px;
        bottom: 10px;
    }
    
    .onboarding-content {
        padding: 15px;
    }
    
    .step-title {
        font-size: 18px;
    }
    
    .step-counter {
        font-size: 12px;
        padding: 4px 10px;
    }
}

/* Touch gestures */
@media (hover: none) and (pointer: coarse) {
    .step-actions button,
    .step-action-btn,
    .btn-close {
        min-height: 44px;
        min-width: 44px;
    }
    
    .tutor-onboarding-controls {
        touch-action: pan-y;
    }
}

