diff --git a/index.html b/index.html index a5519af..1f6b9e3 100644 --- a/index.html +++ b/index.html @@ -5,22 +5,39 @@ require_once __DIR__."/backend.php"; ?> - Mini ChatGPT (PHP + Bootstrap) + FMF GPT
-
- -

Mini ChatGPT

-
- -
- -
+ + +
diff --git a/main.css b/main.css index c7661b2..1885128 100644 --- a/main.css +++ b/main.css @@ -13,7 +13,7 @@ html[data-theme="light"] { /* Light theme (WhatsApp-like) */ - --wa-bg: #ece5dd; + --wa-bg: #e9ecef; --wa-panel: #ffffff; --wa-incoming: #ffffff; /* assistant (other person) */ --wa-outgoing: #dcf8c6; /* user (me) */ @@ -128,3 +128,60 @@ html[data-theme="light"] #themeToggle.btn-outline-light:hover { background-color: var(--muted); color: #fff; } + +/* --- Dark theme fixes for Bootstrap panels (card + accordion) --- */ +html:not([data-theme="light"]) .card, +html:not([data-theme="light"]) .accordion, +html:not([data-theme="light"]) .accordion-item { + background-color: var(--wa-panel) !important; + color: var(--wa-text) !important; + border: 1px solid rgba(255,255,255,0.06) !important; +} + +/* Accordion header button */ +html:not([data-theme="light"]) .accordion-button { + background-color: var(--wa-panel) !important; + color: var(--wa-text) !important; + box-shadow: none !important; + border-bottom: 1px solid rgba(255,255,255,0.06) !important; +} + +/* Collapsed state keeps same colors (Bootstrap otherwise goes light) */ +html:not([data-theme="light"]) .accordion-button.collapsed { + background-color: var(--wa-panel) !important; + color: var(--wa-text) !important; + border-bottom-color: rgba(255,255,255,0.06) !important; +} + +/* Accordion body */ +html:not([data-theme="light"]) .accordion-body { + background-color: var(--wa-panel) !important; + color: var(--wa-text) !important; +} + +/* The chevron icon (SVG background-image) needs contrast */ +html:not([data-theme="light"]) .accordion-button::after { + filter: invert(1) opacity(0.7); +} + +/* Inputs inside the card/accordion */ +html:not([data-theme="light"]) .form-control { + background-color: var(--wa-incoming) !important; + color: var(--wa-text) !important; + border-color: rgba(255,255,255,0.08) !important; +} +html:not([data-theme="light"]) .form-control::placeholder { + color: var(--wa-muted) !important; +} +html:not([data-theme="light"]) .form-text { + color: var(--wa-muted) !important; +} + +/* Outline buttons in dark context */ +html:not([data-theme="light"]) .btn-outline-light { + color: var(--wa-text) !important; + border-color: rgba(255,255,255,0.25) !important; +} +html:not([data-theme="light"]) .btn-outline-light:hover { + background-color: rgba(255,255,255,0.12) !important; +}