|
34 | 34 | background-color: rgba(13, 110, 253, 0.1); |
35 | 35 | font-weight: 600; |
36 | 36 | } |
| 37 | + |
| 38 | + /* Dark Theme Support */ |
| 39 | + @media (prefers-color-scheme: dark) { |
| 40 | + /* Body and Background */ |
| 41 | + body { |
| 42 | + background-color: #121212 !important; |
| 43 | + color: #e9ecef !important; |
| 44 | + } |
| 45 | + |
| 46 | + body.bg-light { |
| 47 | + background-color: #121212 !important; |
| 48 | + } |
| 49 | + |
| 50 | + /* Sidebar */ |
| 51 | + aside.bg-white { |
| 52 | + background-color: #1e1e1e !important; |
| 53 | + border-color: #2d2d2d !important; |
| 54 | + } |
| 55 | + |
| 56 | + /* Header/Top Bar */ |
| 57 | + header.bg-white { |
| 58 | + background-color: #1e1e1e !important; |
| 59 | + border-color: #2d2d2d !important; |
| 60 | + } |
| 61 | + |
| 62 | + /* Navigation Links - Default State */ |
| 63 | + .text-dark { |
| 64 | + color: #e9ecef !important; |
| 65 | + } |
| 66 | + |
| 67 | + .text-muted { |
| 68 | + color: #adb5bd !important; |
| 69 | + } |
| 70 | + |
| 71 | + /* Headings */ |
| 72 | + h1, h2, h3, h4, h5, h6, |
| 73 | + .h1, .h2, .h3, .h4, .h5, .h6 { |
| 74 | + color: #e9ecef !important; |
| 75 | + } |
| 76 | + |
| 77 | + /* Cards */ |
| 78 | + .card { |
| 79 | + background-color: #1e1e1e !important; |
| 80 | + border-color: #2d2d2d !important; |
| 81 | + color: #e9ecef !important; |
| 82 | + } |
| 83 | + |
| 84 | + .card-body { |
| 85 | + background-color: #1e1e1e !important; |
| 86 | + } |
| 87 | + |
| 88 | + /* Alerts */ |
| 89 | + .alert-danger { |
| 90 | + background-color: #2d1f1f !important; |
| 91 | + border-color: #5c3333 !important; |
| 92 | + color: #f8d7da !important; |
| 93 | + } |
| 94 | + |
| 95 | + .alert-info { |
| 96 | + background-color: #1a2730 !important; |
| 97 | + border-color: #2d4a5c !important; |
| 98 | + color: #cfe2ff !important; |
| 99 | + } |
| 100 | + |
| 101 | + .alert-warning { |
| 102 | + background-color: #332b1f !important; |
| 103 | + border-color: #664d26 !important; |
| 104 | + color: #fff3cd !important; |
| 105 | + } |
| 106 | + |
| 107 | + .alert-heading { |
| 108 | + color: inherit !important; |
| 109 | + } |
| 110 | + |
| 111 | + .text-danger-emphasis, |
| 112 | + .text-info-emphasis, |
| 113 | + .text-warning-emphasis, |
| 114 | + .text-primary-emphasis { |
| 115 | + color: inherit !important; |
| 116 | + } |
| 117 | + |
| 118 | + /* Backgrounds */ |
| 119 | + .bg-light { |
| 120 | + background-color: #2d2d2d !important; |
| 121 | + } |
| 122 | + |
| 123 | + .bg-white { |
| 124 | + background-color: #1e1e1e !important; |
| 125 | + } |
| 126 | + |
| 127 | + .bg-primary.bg-gradient { |
| 128 | + background-color: #4169E1 !important; |
| 129 | + } |
| 130 | + |
| 131 | + /* Borders */ |
| 132 | + .border-bottom, |
| 133 | + .border-end, |
| 134 | + .border { |
| 135 | + border-color: #2d2d2d !important; |
| 136 | + } |
| 137 | + |
| 138 | + .border-primary { |
| 139 | + border-color: #4169E1 !important; |
| 140 | + } |
| 141 | + |
| 142 | + /* Hover States */ |
| 143 | + .hover-bg-light:hover { |
| 144 | + background-color: rgba(255, 255, 255, 0.1) !important; |
| 145 | + } |
| 146 | + |
| 147 | + /* Active States */ |
| 148 | + .bg-primary.bg-opacity-10 { |
| 149 | + background-color: rgba(65, 105, 225, 0.2) !important; |
| 150 | + } |
| 151 | + |
| 152 | + .bg-success.bg-opacity-10 { |
| 153 | + background-color: rgba(119, 179, 0, 0.2) !important; |
| 154 | + } |
| 155 | + |
| 156 | + .bg-warning.bg-opacity-10 { |
| 157 | + background-color: rgba(255, 136, 0, 0.2) !important; |
| 158 | + } |
| 159 | + |
| 160 | + .bg-info.bg-opacity-10 { |
| 161 | + background-color: rgba(153, 51, 204, 0.2) !important; |
| 162 | + } |
| 163 | + |
| 164 | + .bg-danger.bg-opacity-10 { |
| 165 | + background-color: rgba(204, 0, 0, 0.2) !important; |
| 166 | + } |
| 167 | + |
| 168 | + /* Text Colors for Active/Emphasis States */ |
| 169 | + .text-primary { |
| 170 | + color: #6495ed !important; |
| 171 | + } |
| 172 | + |
| 173 | + .text-success { |
| 174 | + color: #77b300 !important; |
| 175 | + } |
| 176 | + |
| 177 | + .text-warning { |
| 178 | + color: #f80 !important; |
| 179 | + } |
| 180 | + |
| 181 | + .text-info { |
| 182 | + color: #93c !important; |
| 183 | + } |
| 184 | + |
| 185 | + .text-danger { |
| 186 | + color: #ff6b6b !important; |
| 187 | + } |
| 188 | + |
| 189 | + /* Buttons */ |
| 190 | + .btn-outline-secondary { |
| 191 | + color: #adb5bd !important; |
| 192 | + border-color: #495057 !important; |
| 193 | + } |
| 194 | + |
| 195 | + .btn-outline-secondary:hover { |
| 196 | + background-color: #495057 !important; |
| 197 | + color: #fff !important; |
| 198 | + } |
| 199 | + |
| 200 | + .btn-outline-primary { |
| 201 | + color: #6495ed !important; |
| 202 | + border-color: #4169E1 !important; |
| 203 | + } |
| 204 | + |
| 205 | + .btn-outline-primary:hover { |
| 206 | + background-color: #4169E1 !important; |
| 207 | + color: #fff !important; |
| 208 | + } |
| 209 | + |
| 210 | + .btn-outline-success { |
| 211 | + color: #77b300 !important; |
| 212 | + border-color: #77b300 !important; |
| 213 | + } |
| 214 | + |
| 215 | + .btn-outline-success:hover { |
| 216 | + background-color: #77b300 !important; |
| 217 | + color: #fff !important; |
| 218 | + } |
| 219 | + |
| 220 | + .btn-primary { |
| 221 | + background-color: #4169E1 !important; |
| 222 | + border-color: #4169E1 !important; |
| 223 | + } |
| 224 | + |
| 225 | + .btn-warning { |
| 226 | + background-color: #f80 !important; |
| 227 | + border-color: #f80 !important; |
| 228 | + color: #000 !important; |
| 229 | + } |
| 230 | + |
| 231 | + /* Badges */ |
| 232 | + .badge.bg-warning { |
| 233 | + background-color: #f80 !important; |
| 234 | + color: #000 !important; |
| 235 | + } |
| 236 | + |
| 237 | + .badge.bg-primary { |
| 238 | + background-color: #4169E1 !important; |
| 239 | + } |
| 240 | + |
| 241 | + .badge.bg-success { |
| 242 | + background-color: #77b300 !important; |
| 243 | + } |
| 244 | + |
| 245 | + .badge.bg-danger { |
| 246 | + background-color: #c00 !important; |
| 247 | + } |
| 248 | + |
| 249 | + /* Form Elements */ |
| 250 | + input[type="text"], |
| 251 | + input[type="email"], |
| 252 | + input[type="password"], |
| 253 | + input[type="number"], |
| 254 | + input[type="datetime-local"], |
| 255 | + select, |
| 256 | + textarea { |
| 257 | + background-color: #2d2d2d !important; |
| 258 | + border-color: #495057 !important; |
| 259 | + color: #e9ecef !important; |
| 260 | + } |
| 261 | + |
| 262 | + input[type="text"]:focus, |
| 263 | + input[type="email"]:focus, |
| 264 | + input[type="password"]:focus, |
| 265 | + input[type="number"]:focus, |
| 266 | + input[type="datetime-local"]:focus, |
| 267 | + select:focus, |
| 268 | + textarea:focus { |
| 269 | + background-color: #2d2d2d !important; |
| 270 | + border-color: #6495ed !important; |
| 271 | + color: #e9ecef !important; |
| 272 | + } |
| 273 | + |
| 274 | + /* Tables */ |
| 275 | + .table { |
| 276 | + color: #e9ecef !important; |
| 277 | + } |
| 278 | + |
| 279 | + .table thead th { |
| 280 | + background-color: #282828 !important; |
| 281 | + color: #e9ecef !important; |
| 282 | + border-color: #2d2d2d !important; |
| 283 | + } |
| 284 | + |
| 285 | + .table > :not(caption) > * > * { |
| 286 | + background-color: #282828 !important; |
| 287 | + color: #e9ecef !important; |
| 288 | + border-color: #2d2d2d !important; |
| 289 | + } |
| 290 | + |
| 291 | + .table-striped > tbody > tr:nth-of-type(2n+1) > * { |
| 292 | + background-color: #212529 !important; |
| 293 | + color: #e9ecef !important; |
| 294 | + } |
| 295 | + |
| 296 | + /* Links */ |
| 297 | + a { |
| 298 | + color: #6495ed !important; |
| 299 | + } |
| 300 | + |
| 301 | + a:hover { |
| 302 | + color: #5080e0 !important; |
| 303 | + } |
| 304 | + |
| 305 | + /* Breadcrumb */ |
| 306 | + .breadcrumb-item a { |
| 307 | + color: #adb5bd !important; |
| 308 | + } |
| 309 | + |
| 310 | + .breadcrumb-item.active { |
| 311 | + color: #e9ecef !important; |
| 312 | + } |
| 313 | + |
| 314 | + /* SVG Icons */ |
| 315 | + svg { |
| 316 | + filter: brightness(1.2); |
| 317 | + } |
| 318 | + |
| 319 | + /* Specific overrides for navigation */ |
| 320 | + nav a.text-decoration-none { |
| 321 | + color: #adb5bd !important; |
| 322 | + } |
| 323 | + |
| 324 | + nav a.text-decoration-none:hover { |
| 325 | + color: #e9ecef !important; |
| 326 | + } |
| 327 | + |
| 328 | + /* Footer */ |
| 329 | + footer a { |
| 330 | + color: #adb5bd !important; |
| 331 | + } |
| 332 | + |
| 333 | + footer a:hover { |
| 334 | + color: #e9ecef !important; |
| 335 | + } |
| 336 | + |
| 337 | + /* Display headings */ |
| 338 | + .display-4 { |
| 339 | + color: #e9ecef !important; |
| 340 | + } |
| 341 | + |
| 342 | + .lead { |
| 343 | + color: #adb5bd !important; |
| 344 | + } |
| 345 | + } |
37 | 346 | </style> |
0 commit comments