/* AiEduService specific styles */

/* Canvas area */
#canvas {
    background-color: #010409;
    cursor: crosshair;
}

.canvas-slide {
    width: 100%;
    max-width: 1280px;
    aspect-ratio: 16 / 9;
    background-color: white;
    color: black;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.slide-element {
    position: absolute;
    cursor: move;
    user-select: none;
}

.slide-element.selected {
    outline: 2px dashed #1f6feb;
    outline-offset: 2px;
}

.slide-element.text {
    font-family: Arial, sans-serif;
    overflow: hidden;
    word-wrap: break-word;
}

.slide-element.image {
    object-fit: cover;
}

/* Agent avatars */
.agent-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 18px;
    margin-right: 10px;
}

/* Chat bubble */
.chat-bubble {
    margin-bottom: 12px;
    animation: slideIn 0.3s ease-out;
}

.chat-bubble.user {
    text-align: right;
}

.chat-bubble.assistant {
    text-align: left;
}

.bubble-content {
    display: inline-block;
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 12px;
    word-wrap: break-word;
}

.bubble-content.user {
    background-color: #1f6feb;
    color: white;
}

.bubble-content.assistant {
    background-color: #21262d;
    color: #c9d1d9;
    border-left: 3px solid #58a6ff;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Quiz styles */
.quiz-question {
    margin-bottom: 24px;
    padding: 16px;
    background-color: #161b22;
    border-radius: 8px;
    border-left: 4px solid #1f6feb;
}

.quiz-option {
    display: inline-flex;
    align-items: center;
    margin: 10px 0;
    padding: 12px;
    background-color: #0d1117;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.quiz-option:hover {
    background-color: #21262d;
    border-color: #58a6ff;
}

.quiz-option.selected {
    background-color: #1f6feb;
    color: white;
}

.quiz-option.correct {
    background-color: #238636;
    color: white;
}

.quiz-option.incorrect {
    background-color: #da3633;
    color: white;
}

/* Whiteboard overlay */
.whiteboard-canvas {
    position: absolute;
    top: 0;
    left: 0;
    cursor: crosshair;
    z-index: 100;
    background-color: transparent;
}

/* Progress indicator */
.generation-progress {
    margin-top: 16px;
}

.scene-item {
    padding: 8px 0;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.scene-item.completed::before {
    content: "✓";
    color: #238636;
    font-weight: bold;
}

.scene-item.in-progress::before {
    content: "⟳";
    display: inline-block;
    animation: spin 1s linear infinite;
}

.scene-item.pending::before {
    content: "○";
    color: #6e7681;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
