/* משתני ברירת מחדל - מצב בהיר */
:root {
    --chat-bg: #ffffff;
    --chat-window-bg: #f9f9f9;
    --chat-txt: #333;
    --chat-bubble-model: #f0f6fb;
    --chat-border: #ddd;
    --chat-input-bg: #ffffff;
}

/* מצב כהה - מופעל על ידי Class ב-Body */
body.chat-dark-mode {
    --chat-bg: #3b3a3a;
    --chat-window-bg: #2d2d2d;
    --chat-txt: #f1f1f1;
    --chat-bubble-model: #444;
    --chat-border: #555;
    --chat-input-bg: #333;
}

/* מיכל הצ'אט */
#gemini-test-container {
    background: var(--chat-bg);
    color: var(--chat-txt);
    border: 1px solid var(--chat-border);
    padding: 20px;
    border-radius: 10px;
    max-width: 500px;
    margin: 20px auto;
    transition: all 0.3s ease;
    direction: rtl; /* התאמה לעברית */
}

/* חלון ההודעות */
#chat-window {
    height: 300px;
    overflow-y: auto;
    background: var(--chat-window-bg);
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid var(--chat-border);
    border-radius: 5px;
}

/* עיצוב הודעות */
#chat-window p {
    margin: 10px 0;
    line-height: 1.5;
}

/* הודעות ג'מיני */
.message-model {
    background: var(--chat-bubble-model);
    padding: 8px 12px;
    border-radius: 8px;
    display: inline-block;
}

/* שדה הקלט */
#chat-input {
    width: 100%;
    padding: 10px 40px 10px 10px;
    box-sizing: border-box;
    background: var(--chat-input-bg);
    color: var(--chat-txt);
    border: 1px solid var(--chat-border);
    border-radius: 4px;
}

/* כפתור מיקרופון */
#mic-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 18px;
    transition: filter 0.2s;
}

/* כפתור החלפת מצב תצוגה */
#dark-mode-toggle {
    display: block;
    margin: 10px auto;
    cursor: pointer;
    padding: 8px 15px;
}

#loading-msg {
    color: #888;
    font-style: italic;
    display: none; /* נשלט על ידי JS */
}