/* ============================================================
   EduJA — AI Tutor chat widget styles (#242)
   Lives inside the lesson modal (.modal-content, css/style.css),
   which is a WHITE card (background:#fff; color:#1a1a2e) — same
   light-card constraint documented in css/ask-ai-help.css, and the
   same look reused here rather than inventing a new one.
   ============================================================ */

.ai-tutor-wrap { margin: 14px 0; }

.ai-tutor-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 0.8rem;
    font-weight: bold;
    color: #fff;
    background: #00703A;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: background 0.15s ease;
}
.ai-tutor-toggle-btn:hover { background: #004F29; }

.ai-tutor-panel {
    margin-top: 10px;
    padding: 12px;
    background: #fdf3d9;
    border: 1px solid #00703A;
    border-radius: 12px;
}

.ai-tutor-intro {
    font-size: 0.76rem;
    color: #5a4a1a;
    margin-bottom: 8px;
    line-height: 1.4;
}

.ai-tutor-messages {
    max-height: 260px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 8px;
}

.ai-tutor-bubble {
    max-width: 85%;
    padding: 8px 12px;
    border-radius: 14px;
    font-size: 0.82rem;
    line-height: 1.45;
    white-space: pre-wrap;
}
.ai-tutor-bubble-user {
    align-self: flex-end;
    background: #00703A;
    color: #fff;
    border-bottom-right-radius: 4px;
}
.ai-tutor-bubble-ai {
    align-self: flex-start;
    background: #fff;
    color: #1a1a2e;
    border: 1px solid #e5d9ad;
    border-bottom-left-radius: 4px;
}

.ai-tutor-input-row {
    display: flex;
    gap: 8px;
}
.ai-tutor-input {
    flex: 1;
    padding: 8px 12px;
    border-radius: 20px;
    border: 1px solid #ccc;
    font-size: 0.82rem;
    font-family: inherit;
}
.ai-tutor-input:disabled { background: #f0f0f0; }

.ai-tutor-send-btn {
    padding: 8px 16px;
    border-radius: 20px;
    border: none;
    background: #FFC81F;
    color: #000;
    font-weight: bold;
    font-size: 0.8rem;
    cursor: pointer;
}
.ai-tutor-send-btn:hover:not(:disabled) { background: #FFD84D; }
.ai-tutor-send-btn:disabled { background: #ccc; color: #666; cursor: default; }

.ai-tutor-status {
    margin-top: 6px;
    font-size: 0.72rem;
    color: #666;
    min-height: 1em;
}
