|
2 | 2 | body {
|
3 | 3 | font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
4 | 4 | background-color: #f5f7fa;
|
| 5 | + transition: background-color 0.3s ease, color 0.3s ease; |
5 | 6 | }
|
6 | 7 |
|
7 | 8 | .card {
|
8 | 9 | border-radius: 0.5rem;
|
9 | 10 | box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
10 | 11 | margin-bottom: 1.5rem;
|
| 12 | + transition: background-color 0.3s ease, border-color 0.3s ease; |
11 | 13 | }
|
12 | 14 |
|
13 | 15 | .card-header {
|
@@ -196,3 +198,176 @@ body {
|
196 | 198 | from { opacity: 0; transform: translateY(-10px); }
|
197 | 199 | to { opacity: 1; transform: translateY(0); }
|
198 | 200 | }
|
| 201 | + |
| 202 | +/* Dark Mode Styles */ |
| 203 | +.dark-mode { |
| 204 | + color: #e2e8f0; |
| 205 | + background-color: #1a202c; |
| 206 | +} |
| 207 | + |
| 208 | +.dark-mode .card { |
| 209 | + background-color: #2d3748; |
| 210 | + border-color: #4a5568; |
| 211 | +} |
| 212 | + |
| 213 | +.dark-mode .card-body { |
| 214 | + background-color: #2d3748; |
| 215 | + color: #e2e8f0; |
| 216 | +} |
| 217 | + |
| 218 | +.dark-mode .card-header { |
| 219 | + background-color: #4c51bf; |
| 220 | + color: white; |
| 221 | +} |
| 222 | + |
| 223 | +.dark-mode .text-muted { |
| 224 | + color: #a0aec0 !important; |
| 225 | +} |
| 226 | + |
| 227 | +/* Fix for hidden values in comparison results */ |
| 228 | +.dark-mode .result-card .value, |
| 229 | +.dark-mode .result-values .value, |
| 230 | +.dark-mode .result-highlight, |
| 231 | +.dark-mode table td, |
| 232 | +.dark-mode p strong, |
| 233 | +.dark-mode .result-card strong, |
| 234 | +.dark-mode #results-container strong, |
| 235 | +.dark-mode #results-container b, |
| 236 | +.dark-mode .chart-container, |
| 237 | +.dark-mode .numeric-value, |
| 238 | +.dark-mode #results-container span:not(.text-muted), |
| 239 | +.dark-mode #results-container div.value { |
| 240 | + color: #e2e8f0 !important; |
| 241 | +} |
| 242 | + |
| 243 | +.dark-mode .result-card .label, |
| 244 | +.dark-mode .result-values .label, |
| 245 | +.dark-mode #results-container label { |
| 246 | + color: #a0aec0 !important; |
| 247 | +} |
| 248 | + |
| 249 | +.dark-mode .btn-outline-secondary { |
| 250 | + color: #a0aec0; |
| 251 | + border-color: #4a5568; |
| 252 | +} |
| 253 | + |
| 254 | +.dark-mode .btn-outline-secondary:hover { |
| 255 | + background-color: #4a5568; |
| 256 | + color: #e2e8f0; |
| 257 | +} |
| 258 | + |
| 259 | +.dark-mode .btn-primary { |
| 260 | + background-color: #5a67d8; |
| 261 | + border-color: #4c51bf; |
| 262 | +} |
| 263 | + |
| 264 | +.dark-mode .investment-type-item { |
| 265 | + color: #e2e8f0; |
| 266 | +} |
| 267 | + |
| 268 | +.dark-mode .investment-type-item:hover { |
| 269 | + background-color: #2d3748; |
| 270 | +} |
| 271 | + |
| 272 | +.dark-mode .investment-type-item.active { |
| 273 | + background-color: #2d3748; |
| 274 | + border-left: 4px solid #5a67d8; |
| 275 | +} |
| 276 | + |
| 277 | +.dark-mode .selected-investment { |
| 278 | + background-color: #2d3748; |
| 279 | + border-left: 3px solid #5a67d8 !important; |
| 280 | +} |
| 281 | + |
| 282 | +.dark-mode .parameter-section { |
| 283 | + background-color: #2d3748; |
| 284 | +} |
| 285 | + |
| 286 | +.dark-mode .form-control { |
| 287 | + background-color: #4a5568; |
| 288 | + border-color: #2d3748; |
| 289 | + color: #e2e8f0; |
| 290 | +} |
| 291 | + |
| 292 | +.dark-mode .input-group-text { |
| 293 | + background-color: #4a5568; |
| 294 | + border-color: #2d3748; |
| 295 | + color: #e2e8f0; |
| 296 | +} |
| 297 | + |
| 298 | +.dark-mode .footer { |
| 299 | + background-color: #2d3748 !important; |
| 300 | +} |
| 301 | + |
| 302 | +.dark-mode .bg-light { |
| 303 | + background-color: #2d3748 !important; |
| 304 | +} |
| 305 | + |
| 306 | +.dark-mode .result-card { |
| 307 | + background-color: #2d3748; |
| 308 | + border-color: #4a5568; |
| 309 | +} |
| 310 | + |
| 311 | +.dark-mode .best-option { |
| 312 | + background-color: #234e52; |
| 313 | + border-left: 4px solid #38a169; |
| 314 | +} |
| 315 | + |
| 316 | +.dark-mode .category-title { |
| 317 | + color: #a0aec0; |
| 318 | + border-bottom: 1px solid #4a5568; |
| 319 | +} |
| 320 | + |
| 321 | +.dark-mode .parameters-list li { |
| 322 | + border-bottom: 1px solid #4a5568; |
| 323 | +} |
| 324 | + |
| 325 | +.dark-mode .rate-info { |
| 326 | + color: #7f9cf5 !important; |
| 327 | +} |
| 328 | + |
| 329 | +.dark-mode .param-indicator { |
| 330 | + color: #a0aec0; |
| 331 | +} |
| 332 | + |
| 333 | +.dark-mode table { |
| 334 | + color: #e2e8f0; |
| 335 | +} |
| 336 | + |
| 337 | +.dark-mode hr { |
| 338 | + border-color: #4a5568; |
| 339 | +} |
| 340 | + |
| 341 | +/* Dark mode toggle button */ |
| 342 | +#dark-mode-toggle { |
| 343 | + transition: all 0.3s ease; |
| 344 | +} |
| 345 | + |
| 346 | +.dark-mode #dark-mode-toggle .bi-moon-fill { |
| 347 | + display: none; |
| 348 | +} |
| 349 | + |
| 350 | +.dark-mode #dark-mode-toggle .bi-sun-fill { |
| 351 | + display: inline-block; |
| 352 | +} |
| 353 | + |
| 354 | +.dark-mode #dark-mode-toggle .dark-mode-text { |
| 355 | + display: none; |
| 356 | +} |
| 357 | + |
| 358 | +.dark-mode #dark-mode-toggle .light-mode-text { |
| 359 | + display: inline; |
| 360 | +} |
| 361 | + |
| 362 | +#dark-mode-toggle .bi-sun-fill { |
| 363 | + display: none; |
| 364 | +} |
| 365 | + |
| 366 | +#dark-mode-toggle .light-mode-text { |
| 367 | + display: none; |
| 368 | +} |
| 369 | + |
| 370 | +/* Make chart legends visible in dark mode */ |
| 371 | +.dark-mode canvas { |
| 372 | + filter: brightness(0.8) contrast(1.2); |
| 373 | +} |
0 commit comments