/* Tutorial Guide Styles */
.tutorial-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: none;
}

.tutorial-popup {
    position: absolute;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    padding: 25px;
    max-width: 400px;
    min-width: 350px;
    z-index: 10001;
}

.tutorial-popup::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
}

/* Arrow positions */
.tutorial-popup.arrow-top::before {
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 15px solid white;
}

.tutorial-popup.arrow-bottom::before {
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 15px solid white;
}

.tutorial-popup.arrow-left::before {
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-right: 15px solid white;
}

.tutorial-popup.arrow-right::before {
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 15px solid white;
}

.tutorial-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 15px;
}

.tutorial-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.tutorial-step-indicator {
    background: #3498db;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.tutorial-content {
    margin-bottom: 20px;
}

.tutorial-content p {
    margin-bottom: 10px;
    color: #5a6c7d;
    line-height: 1.6;
}

.tutorial-content .highlight {
    background-color: #fff3cd;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
}

.tutorial-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.tutorial-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.tutorial-btn-primary {
    background-color: #3498db;
    color: white;
}

.tutorial-btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-1px);
}

.tutorial-btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.tutorial-btn-secondary:hover {
    background-color: #7f8c8d;
}

.tutorial-btn-skip {
    background-color: transparent;
    color: #7f8c8d;
    text-decoration: underline;
    border: none;
    padding: 5px 10px;
}

.tutorial-btn-skip:hover {
    color: #5a6c7d;
}

.tutorial-progress {
    width: 100%;
    height: 4px;
    background-color: #ecf0f1;
    border-radius: 2px;
    margin-bottom: 20px;
    overflow: hidden;
}

.tutorial-progress-bar {
    height: 100%;
    background-color: #3498db;
    transition: width 0.5s ease;
    border-radius: 2px;
}

.tutorial-highlight {
    position: relative;
    z-index: 9999;
    background-color: white !important;
    border-radius: 8px;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.3), 0 0 20px rgba(0, 0, 0, 0.2) !important;
    animation: tutorialPulse 2s infinite;
}

@keyframes tutorialPulse {
    0% {
        box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.3), 0 0 20px rgba(0, 0, 0, 0.2);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(52, 152, 219, 0.2), 0 0 25px rgba(0, 0, 0, 0.3);
    }
    100% {
        box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.3), 0 0 20px rgba(0, 0, 0, 0.2);
    }
}

/* Skip tutorial checkbox */
.tutorial-skip-checkbox {
    display: flex;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.tutorial-skip-checkbox input[type="checkbox"] {
    margin-right: 8px;
}

.tutorial-skip-checkbox label {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0;
    cursor: pointer;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tutorial-popup {
        max-width: 90vw;
        min-width: 280px;
        padding: 20px;
    }
    
    .tutorial-title {
        font-size: 1.1rem;
    }
    
    .tutorial-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .tutorial-btn {
        width: 100%;
    }
}