/* AI Talk v4 theme toggle fix */
body.light-theme,
html.light-theme body {
    background: #f4f5f7 !important;
    color: #111 !important;
}

body.light-theme .layout-wrap,
body.light-theme .main-content,
body.light-theme .main-content-inner,
body.light-theme .main-content-wrap {
    background: #f4f5f7 !important;
}

body.light-theme .section-menu-left,
body.light-theme .section-menu-left-wrap {
    background: #ffffff !important;
    color: #111 !important;
    border-color: rgba(0,0,0,.08) !important;
}

body.light-theme .text,
body.light-theme .center-heading,
body.light-theme .mj-title,
body.light-theme .project-title,
body.light-theme .project-detail-title,
body.light-theme .aitalk-chat-title {
    color: #111 !important;
}

body.light-theme .text-Secondary,
body.light-theme .project-subtitle,
body.light-theme .project-desc,
body.light-theme .project-detail-subtitle,
body.light-theme .aitalk-chat-project,
body.light-theme .aitalk-welcome p {
    color: #666 !important;
}

body.light-theme .menu-item.active > a,
body.light-theme .project-name-link.active,
body.light-theme .project-name-link:hover {
    background: rgba(0,0,0,.06) !important;
    color: #111 !important;
}

body.light-theme .project-card,
body.light-theme .project-status-box,
body.light-theme .project-empty-box,
body.light-theme .project-detail-source-row {
    background: #ffffff !important;
    border-color: rgba(0,0,0,.10) !important;
}

body.light-theme .aitalk-composer,
body.light-theme .project-detail-new-chat {
    background: #ffffff !important;
    border-color: rgba(0,0,0,.12) !important;
}

body.light-theme .aitalk-composer textarea,
body.light-theme .project-detail-new-chat input {
    color: #111 !important;
}

body.light-theme .aitalk-msg.ai {
    color: #202124 !important;
}

body.light-theme .aitalk-msg.ai strong,
body.light-theme .aitalk-msg.ai h1,
body.light-theme .aitalk-msg.ai h2,
body.light-theme .aitalk-msg.ai h3 {
    color: #111 !important;
}

body.light-theme .aitalk-msg.ai pre {
    background: #f0f1f3 !important;
    border-color: rgba(0,0,0,.12) !important;
}

body.light-theme .aitalk-msg.ai pre code {
    color: #111 !important;
}

body.light-theme .tf-button,
body.light-theme .aitalk-new-session-btn,
body.light-theme .aitalk-pill-btn {
    color: #111 !important;
    border-color: rgba(0,0,0,.14) !important;
    background: #ffffff !important;
}

/* === v4 fix: light theme readable contrast === */
body.light-theme {
    background: #f5f6f8 !important;
    color: #16181d !important;
}

body.light-theme * {
    text-shadow: none !important;
}

body.light-theme .section-menu-left,
body.light-theme .section-menu-left-wrap,
body.light-theme .box-logo {
    background: #ffffff !important;
    color: #16181d !important;
}

body.light-theme .main-content,
body.light-theme .main-content-inner,
body.light-theme .main-content-wrap {
    background: #f5f6f8 !important;
    color: #16181d !important;
}

body.light-theme h1,
body.light-theme h2,
body.light-theme h3,
body.light-theme h4,
body.light-theme h5,
body.light-theme h6,
body.light-theme .project-title,
body.light-theme .project-detail-title,
body.light-theme .aitalk-chat-title,
body.light-theme .mj-title,
body.light-theme .login-title {
    color: #111318 !important;
}

body.light-theme p,
body.light-theme span,
body.light-theme div,
body.light-theme label,
body.light-theme .text,
body.light-theme .center-heading,
body.light-theme .project-desc,
body.light-theme .project-subtitle,
body.light-theme .project-detail-subtitle,
body.light-theme .aitalk-chat-project,
body.light-theme .text-Secondary,
body.light-theme .project-detail-row-snippet,
body.light-theme .project-detail-row-date,
body.light-theme .project-session-list a,
body.light-theme .project-name-link {
    color: #2a2d34 !important;
}

body.light-theme .project-subtitle,
body.light-theme .project-desc,
body.light-theme .text-Secondary,
body.light-theme .aitalk-chat-project,
body.light-theme .project-detail-subtitle {
    color: #5c626d !important;
}

body.light-theme .center-heading {
    color: #6b7280 !important;
}

body.light-theme .project-card,
body.light-theme .project-status-box,
body.light-theme .project-empty-box,
body.light-theme .project-detail-source-row,
body.light-theme .project-detail-list,
body.light-theme .aitalk-composer,
body.light-theme .project-detail-new-chat {
    background: #ffffff !important;
    border-color: rgba(17, 19, 24, .12) !important;
    color: #16181d !important;
}

body.light-theme .menu-item > a,
body.light-theme .project-name-link,
body.light-theme .project-session-list a {
    color: #262a32 !important;
}

body.light-theme .menu-item.active > a,
body.light-theme .menu-item > a:hover,
body.light-theme .project-name-link.active,
body.light-theme .project-name-link:hover,
body.light-theme .project-session-list a:hover {
    background: #eef0f3 !important;
    color: #111318 !important;
}

body.light-theme .icon,
body.light-theme i,
body.light-theme svg,
body.light-theme .project-folder-toggle,
body.light-theme .project-folder-toggle i,
body.light-theme .project-folder-toggle .caret {
    color: #30343b !important;
    opacity: 1 !important;
}

body.light-theme .form-search input,
body.light-theme .input-search,
body.light-theme .aitalk-composer textarea,
body.light-theme .project-detail-new-chat input {
    background: #ffffff !important;
    color: #111318 !important;
    border-color: rgba(17, 19, 24, .12) !important;
}

body.light-theme .form-search input::placeholder,
body.light-theme .input-search::placeholder,
body.light-theme .aitalk-composer textarea::placeholder,
body.light-theme .project-detail-new-chat input::placeholder {
    color: #7b818c !important;
}

body.light-theme .project-pill,
body.light-theme .aitalk-pill-btn,
body.light-theme .aitalk-new-session-btn,
body.light-theme .tf-button {
    background: #ffffff !important;
    color: #1f232b !important;
    border-color: rgba(17, 19, 24, .16) !important;
}

body.light-theme .tf-button {
    background: #2BFF88 !important;
    color: #07110B !important;
    border-color: #2BFF88 !important;
}

body.light-theme .project-checklist,
body.light-theme .project-checklist div {
    color: #2a2d34 !important;
}

body.light-theme .project-checklist .done {
    color: #00a957 !important;
}

body.light-theme .project-checklist .wait {
    color: #b47a00 !important;
}

body.light-theme .aitalk-msg.ai {
    color: #202124 !important;
}

body.light-theme .aitalk-msg.ai p,
body.light-theme .aitalk-msg.ai li {
    color: #202124 !important;
}

body.light-theme .aitalk-msg.ai strong,
body.light-theme .aitalk-msg.ai h1,
body.light-theme .aitalk-msg.ai h2,
body.light-theme .aitalk-msg.ai h3 {
    color: #111318 !important;
}

body.light-theme .aitalk-msg.ai pre {
    background: #f0f1f3 !important;
    border-color: rgba(17, 19, 24, .14) !important;
}

body.light-theme .aitalk-msg.ai pre code {
    color: #111318 !important;
}

body.light-theme .aitalk-code-copy-btn {
    background: #ffffff !important;
    color: #202124 !important;
    border-color: rgba(17, 19, 24, .16) !important;
}

body.light-theme .aitalk-code-lang {
    color: #6b7280 !important;
}

body.light-theme .aitalk-upload-chip {
    background: rgba(0, 169, 87, .10) !important;
    color: #008a47 !important;
    border-color: rgba(0, 169, 87, .35) !important;
}
