/* ===== СВЕТЛАЯ ТЕМА ===== */
body.light {
    --bg-primary: #ffffff;
    --bg-secondary: #f4f4f4;
    --bg-sidebar: #f9f9f9;
    --bg-input: #f4f4f4;
    --bg-hover: #ebebeb;
    --bg-active: #e0e0e0;
    --bg-modal: #ffffff;
    --text-primary: #0d0d0d;
    --text-secondary: #444654;
    --text-muted: #8e8ea0;
    --accent: #10a37f;
    --accent-hover: #0d8f6f;
    --accent-light: rgba(16, 163, 127, 0.1);
    --border: rgba(0,0,0,0.1);
    --danger: #ef4444;
    --warning: #f59e0b;
    --shadow: 0 4px 24px rgba(0,0,0,0.1);
}

body.light .message.assistant {
    background: #f7f7f8;
}

body.light .message.user .message-content {
    background: #f4f4f4;
}

body.light .message-text code {
    background: rgba(0,0,0,0.06);
}

body.light .message-text pre {
    background: #f0f0f0;
    border-color: rgba(0,0,0,0.1);
}

body.light .sidebar {
    border-right-color: rgba(0,0,0,0.1);
}

body.light .form-input {
    background: #f4f4f4;
    color: #0d0d0d;
}

body.light .input-box {
    background: #f4f4f4;
    color: #0d0d0d;
}

body.light select {
    color: #0d0d0d;
}

/* Кнопка переключения темы */
.theme-toggle-btn {
    width: 36px;
    height: 36px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.15s;
    flex-shrink: 0;
}

.theme-toggle-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

/* Иконка солнца/луны */
.icon-sun { display: none; }
.icon-moon { display: block; }
body.light .icon-sun { display: block; }
body.light .icon-moon { display: none; }
