/**
 * Tutorial Guide Component Styling
 */

.tutorial-panel {
    position: fixed;
    top: 80px;
    right: -400px;
    width: 380px;
    max-width: 90vw;
    height: calc(100vh - 160px);
    background-color: var(--bg-primary);
    box-shadow: -3px 0 20px rgba(0, 0, 0, 0.15);
    border-radius: 12px 0 0 12px;
    transition: right 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-left: 1px solid var(--border-color);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.tutorial-panel.active {
    right: 0;
}

.tutorial-header {
    background-color: var(--accent-primary);
    color: var(--header-text);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tutorial-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.close-tutorial-btn {
    background: transparent;
    border: none;
    color: var(--header-text);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-tutorial-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.tutorial-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-secondary);
}

.tutorial-guide-list {
    padding: 10px 0;
}

.tutorial-guide-list h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--accent-primary);
    font-size: 1.1rem;
    font-weight: 600;
}

.tutorial-guide-list ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.tutorial-guide-list li {
    padding: 15px;
    margin-bottom: 12px;
    background-color: var(--card-bg);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
}

.tutorial-guide-list li:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-tertiary);
}

.guide-title {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--color-header);
}

.guide-description {
    display: block;
    font-size: 0.9rem;
    color: #666;
}

.tutorial-steps {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.steps-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.back-to-guides-btn {
    background-color: transparent;
    border: none;
    color: var(--color-header);
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0;
    margin-right: 15px;
    font-size: 0.9rem;
}

.back-to-guides-btn i {
    margin-right: 5px;
}

#active-guide-title {
    margin: 0;
    color: var(--color-header);
}

.step-content {
    flex: 1;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 15px;
}

.step-content h5 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
}

.step-content p {
    margin-bottom: 15px;
    line-height: 1.5;
}

.step-action {
    display: flex;
    align-items: center;
    background-color: rgba(25, 118, 210, 0.1);
    padding: 12px;
    border-radius: 6px;
    margin-top: 15px;
}

.action-indicator {
    width: 10px;
    height: 10px;
    background-color: var(--color-header);
    border-radius: 50%;
    margin-right: 10px;
    animation: pulse-action 1.5s infinite;
}

@keyframes pulse-action {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.step-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
}

.nav-btn {
    background-color: var(--color-header);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    transition: background-color 0.2s;
}

.nav-btn:hover {
    background-color: #1565c0;
}

.nav-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.nav-btn i {
    margin-right: 5px;
}

#next-step i {
    margin-right: 0;
    margin-left: 5px;
}

#step-indicator {
    font-size: 0.9rem;
    color: #666;
}

/* Toggle button styling */
.floating-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--color-header);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    border: none;
    z-index: 999;
    transition: transform 0.2s, background-color 0.2s;
}

.floating-btn:hover {
    transform: scale(1.1);
    background-color: #1565c0;
}

/* Highlight styling for tutorial elements */
.tutorial-highlight {
    position: relative;
    z-index: 1001;
}

.tutorial-highlight-overlay {
    border: 2px solid var(--color-header);
    z-index: 1000;
    animation: pulse-highlight 1.5s infinite;
}

@keyframes pulse-highlight {
    0% {
        box-shadow: 0 0 0 0 rgba(25, 118, 210, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(25, 118, 210, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(25, 118, 210, 0);
    }
}

/* Mobile optimizations */
@media (max-width: 600px) {
    .tutorial-panel {
        top: 60px;
        width: 100%;
        max-width: 100%;
        height: calc(100vh - 120px);
        right: -100%;
        border-radius: 0;
    }

    .floating-btn {
        bottom: 10px;
        right: 10px;
    }
}