/**
 * iMind Plugin - Styles
 * For ultramind.one learning platform
 */

.imind-wrapper {
    margin: 40px 0;
}

.imind-header {
    text-align: center;
    margin-bottom: 30px;
}

.imind-header h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #333;
}

.imind-header .instructions {
    font-size: 0.9rem;
    color: #666;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
}

.progress-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 20px 0;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-block;
}

.legend-color.not-started {
    background-color: #9E9E9E;
}

.legend-color.in-progress {
    background-color: #FF9800;
}

.legend-color.completed {
    background-color: #2196F3;
}

.legend-color.mastered {
    background-color: #4CAF50;
}

#imind-container {
    min-height: 600px;
    height: 70vh;
    max-height: 900px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    background: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    overflow: hidden;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #imind-container {
        min-height: 400px;
        height: 50vh;
    }

    .progress-legend {
        flex-direction: column;
        align-items: flex-start;
    }

    .imind-header h2 {
        font-size: 1.5rem;
    }
}

/* Animation for notification */
@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Markmap node styling enhancements */
.markmap-node {
    cursor: pointer;
    transition: all 0.3s ease;
}

.markmap-node:hover {
    opacity: 0.8;
}

/* Loading state */
#imind-container.loading {
    display: flex;
    align-items: center;
    justify-content: center;
}

#imind-container.loading::after {
    content: "Loading knowledge map...";
    font-size: 1.2rem;
    color: #666;
}
