|
| 1 | +/* ========================================================================== |
| 2 | + Modern Portfolio Theme (Overrides AdminLTE & Bootstrap Defaults) |
| 3 | + ========================================================================== */ |
| 4 | + |
| 5 | +/* 1. Root Variables (Dark Mode with Neon Accents) */ |
| 6 | +:root { |
| 7 | + --app-bg: #0f172a; /* Slate 900 */ |
| 8 | + --card-bg: rgba(30, 41, 59, 0.6); /* Slate 800 with opacity */ |
| 9 | + --card-border: rgba(255, 255, 255, 0.1); |
| 10 | + --text-primary: #f8fafc; /* Slate 50 */ |
| 11 | + --text-secondary: #cbd5e1; /* Slate 300 */ |
| 12 | + --accent-cyan: #06b6d4; /* Vibrant Cyan */ |
| 13 | + --accent-purple: #8b5cf6; /* Vibrant Purple */ |
| 14 | + --accent-pink: #ec4899; /* Vibrant Pink */ |
| 15 | + |
| 16 | + --font-family-modern: 'Outfit', -apple-system, blinkmacsystemfont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; |
| 17 | + --transition-speed: 0.3s; |
| 18 | +} |
| 19 | + |
| 20 | +/* 2. Global Resets & Body Styling */ |
| 21 | +body { |
| 22 | + font-family: var(--font-family-modern) !important; |
| 23 | + color: var(--text-primary) !important; |
| 24 | + background: var(--app-bg) !important; |
| 25 | + background-image: |
| 26 | + radial-gradient(at 0% 0%, rgba(6, 182, 212, 0.15) 0px, transparent 50%), |
| 27 | + radial-gradient(at 100% 100%, rgba(139, 92, 246, 0.15) 0px, transparent 50%) !important; |
| 28 | + background-attachment: fixed !important; |
| 29 | + margin: 0; |
| 30 | + -webkit-font-smoothing: antialiased; |
| 31 | +} |
| 32 | + |
| 33 | +/* AdminLTE wrapper overrides */ |
| 34 | +.wrapper, .content-wrapper, .main-header, .main-footer { |
| 35 | + background: transparent !important; |
| 36 | + border: none !important; |
| 37 | + color: var(--text-primary) !important; |
| 38 | +} |
| 39 | + |
| 40 | +.main-header .nav-link { |
| 41 | + color: var(--text-primary) !important; |
| 42 | +} |
| 43 | + |
| 44 | +.main-header .nav-link:hover { |
| 45 | + color: var(--accent-cyan) !important; |
| 46 | +} |
| 47 | + |
| 48 | +/* Headers */ |
| 49 | +h1, h2, h3, h4, h5, h6, .card-title, .info-box-number { |
| 50 | + font-family: var(--font-family-modern) !important; |
| 51 | + font-weight: 600 !important; |
| 52 | + color: var(--text-primary) !important; |
| 53 | +} |
| 54 | + |
| 55 | +p, span, div { |
| 56 | + color: var(--text-secondary); |
| 57 | +} |
| 58 | + |
| 59 | +blockquote, blockquote p, blockquote span, blockquote div { |
| 60 | + color: #000 !important; |
| 61 | +} |
| 62 | + |
| 63 | +/* 3. Glassmorphism Utilities */ |
| 64 | +.glass-card, .card, .info-box { |
| 65 | + background: var(--card-bg) !important; |
| 66 | + backdrop-filter: blur(12px) !important; |
| 67 | + -webkit-backdrop-filter: blur(12px) !important; |
| 68 | + border: 1px solid var(--card-border) !important; |
| 69 | + border-radius: 16px !important; |
| 70 | + box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3) !important; |
| 71 | + transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease, border-color var(--transition-speed) ease; |
| 72 | +} |
| 73 | + |
| 74 | +.glass-card:hover, .info-box:hover, .card:not(.card-widget):hover { |
| 75 | + transform: translateY(-5px); |
| 76 | + box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.5) !important; |
| 77 | + border-color: rgba(255, 255, 255, 0.2) !important; |
| 78 | +} |
| 79 | + |
| 80 | +/* AdminLTE Card Headers */ |
| 81 | +.card-header, .card-footer { |
| 82 | + background-color: transparent !important; |
| 83 | + border-bottom: 1px solid var(--card-border) !important; |
| 84 | + border-top: 1px solid var(--card-border) !important; |
| 85 | +} |
| 86 | + |
| 87 | +/* 4. Badges & Ribbons Overrides */ |
| 88 | +.badge { |
| 89 | + font-weight: 600 !important; |
| 90 | + border-radius: 8px !important; |
| 91 | + padding: 0.4em 0.7em !important; |
| 92 | + box-shadow: 0 2px 5px rgba(0,0,0,0.2) !important; |
| 93 | + text-transform: uppercase !important; |
| 94 | + letter-spacing: 0.5px !important; |
| 95 | + font-size: 0.75rem !important; |
| 96 | +} |
| 97 | + |
| 98 | +.badge-primary, .bg-primary { background: linear-gradient(135deg, #3b82f6, #2563eb) !important; border: none !important; color: white !important; } |
| 99 | +.badge-secondary, .bg-secondary { background: linear-gradient(135deg, #64748b, #475569) !important; border: none !important; color: white !important; } |
| 100 | +.badge-success, .bg-success { background: linear-gradient(135deg, #10b981, #059669) !important; border: none !important; color: white !important; } |
| 101 | +.badge-danger, .bg-danger { background: linear-gradient(135deg, #ef4444, #dc2626) !important; border: none !important; color: white !important; } |
| 102 | +.badge-warning, .bg-warning { background: linear-gradient(135deg, #f59e0b, #d97706) !important; border: none !important; color: white !important; } |
| 103 | +.badge-info, .bg-info { background: linear-gradient(135deg, #06b6d4, #0891b2) !important; border: none !important; color: white !important; } |
| 104 | +.badge-dark, .bg-dark { background: linear-gradient(135deg, #334155, #1e293b) !important; border: 1px solid rgba(255,255,255,0.1) !important; color: white !important;} |
| 105 | + |
| 106 | +/* Info Boxes (About me page) */ |
| 107 | +.info-box-icon { |
| 108 | + background: transparent !important; |
| 109 | +} |
| 110 | + |
| 111 | +/* 5. Smooth SPAs Transitions */ |
| 112 | +@keyframes fadeInScale { |
| 113 | + 0% { opacity: 0; transform: scale(0.98); } |
| 114 | + 100% { opacity: 1; transform: scale(1); } |
| 115 | +} |
| 116 | + |
| 117 | +.page-transition { |
| 118 | + animation: fadeInScale 0.4s ease-out forwards; |
| 119 | +} |
| 120 | + |
| 121 | +/* 6. Sidebar & Header */ |
| 122 | +.main-sidebar { |
| 123 | + background: rgba(15, 23, 42, 0.85) !important; |
| 124 | + backdrop-filter: blur(10px) !important; |
| 125 | + border-right: 1px solid var(--card-border) !important; |
| 126 | +} |
| 127 | + |
| 128 | +.nav-sidebar .nav-link { |
| 129 | + color: var(--text-secondary); |
| 130 | + font-weight: 500 !important; |
| 131 | + transition: all 0.2s ease; |
| 132 | +} |
| 133 | + |
| 134 | +.nav-sidebar .nav-link p { |
| 135 | + color: inherit; |
| 136 | +} |
| 137 | + |
| 138 | +.nav-sidebar .nav-link:hover, .nav-sidebar .nav-link.active { |
| 139 | + background: rgba(255, 255, 255, 0.1) !important; |
| 140 | + color: var(--text-primary); |
| 141 | + transform: translateX(4px); |
| 142 | +} |
| 143 | + |
| 144 | +.brand-link { |
| 145 | + border-bottom: 1px solid var(--card-border) !important; |
| 146 | + color: var(--text-primary) !important; |
| 147 | +} |
| 148 | + |
| 149 | +/* 7. Timeline specific tweaks */ |
| 150 | +.timeline::before { |
| 151 | + background: var(--card-border) !important; |
| 152 | +} |
| 153 | + |
| 154 | +.timeline > div > .timeline-item { |
| 155 | + background: var(--card-bg) !important; |
| 156 | + backdrop-filter: blur(12px) !important; |
| 157 | + border: 1px solid var(--card-border) !important; |
| 158 | + color: var(--text-secondary) !important; |
| 159 | + border-radius: 12px !important; |
| 160 | + box-shadow: 0 4px 16px rgba(0,0,0,0.2) !important; |
| 161 | +} |
| 162 | + |
| 163 | +.timeline-header { |
| 164 | + border-bottom: 1px solid var(--card-border) !important; |
| 165 | + color: var(--text-primary) !important; |
| 166 | +} |
| 167 | + |
| 168 | +.time-label span { |
| 169 | + border-radius: 8px !important; |
| 170 | + padding: 0.4em 1em !important; |
| 171 | + font-weight: 600 !important; |
| 172 | +} |
| 173 | + |
| 174 | +/* 8. Modern Project Cards Details */ |
| 175 | +.article-image img { |
| 176 | + border-radius: 12px !important; |
| 177 | + box-shadow: 0 4px 15px rgba(0,0,0,0.4) !important; |
| 178 | + transition: transform 0.4s ease !important; |
| 179 | +} |
| 180 | + |
| 181 | +.article-link:hover .article-image img { |
| 182 | + transform: scale(1.05) !important; |
| 183 | +} |
| 184 | + |
| 185 | +.ribbon-wrapper { |
| 186 | + z-index: 10; |
| 187 | +} |
| 188 | + |
| 189 | +/* Fixes for dark elements */ |
| 190 | +.description-text { color: var(--text-secondary) !important; } |
| 191 | +.description-header { color: var(--text-primary) !important; } |
| 192 | +.username a { color: var(--accent-cyan) !important; font-weight: 600; } |
| 193 | +a { color: var(--accent-cyan); transition: color 0.2s ease; } |
| 194 | +a:hover { color: var(--accent-purple); } |
| 195 | + |
| 196 | +/* Progress bars */ |
| 197 | +.progress { |
| 198 | + background-color: rgba(255,255,255,0.1) !important; |
| 199 | + border-radius: 10px !important; |
| 200 | + overflow: hidden !important; |
| 201 | +} |
| 202 | + |
| 203 | +.progress-bar { |
| 204 | + border-radius: 10px !important; |
| 205 | +} |
| 206 | + |
| 207 | +/* Tables */ |
| 208 | +table, .table { |
| 209 | + color: var(--text-secondary) !important; |
| 210 | +} |
| 211 | + |
| 212 | +.table-striped tbody tr:nth-of-type(odd) { |
| 213 | + background-color: rgba(255, 255, 255, 0.02) !important; |
| 214 | +} |
| 215 | + |
| 216 | +.table-hover tbody tr:hover { |
| 217 | + background-color: rgba(255, 255, 255, 0.05) !important; |
| 218 | +} |
| 219 | + |
| 220 | +th { |
| 221 | + color: var(--text-primary) !important; |
| 222 | + border-top: none !important; |
| 223 | + border-bottom: 1px solid var(--card-border) !important; |
| 224 | +} |
| 225 | + |
| 226 | +td { |
| 227 | + border-top: 1px solid var(--card-border) !important; |
| 228 | +} |
| 229 | + |
| 230 | +/* Widget overrides */ |
| 231 | +.widget-user-header { background-color: transparent !important; border-bottom: 1px solid var(--card-border) !important; border-radius: 16px 16px 0 0 !important; } |
| 232 | +.widget-user-image img { border: 3px solid var(--card-bg) !important; box-shadow: 0 4px 12px rgba(0,0,0,0.5) !important;} |
| 233 | + |
| 234 | +/* 9. Mermaid SVG Dark Mode Overrides */ |
| 235 | +.mermaid svg text, |
| 236 | +.mermaid svg tspan { |
| 237 | + fill: var(--text-primary) !important; |
| 238 | + color: var(--text-primary) !important; |
| 239 | +} |
| 240 | + |
| 241 | +.mermaid svg .actor { |
| 242 | + fill: rgba(255, 255, 255, 0.05) !important; |
| 243 | + stroke: var(--accent-cyan) !important; |
| 244 | +} |
| 245 | + |
| 246 | +.mermaid svg .actor-line { |
| 247 | + stroke: rgba(255, 255, 255, 0.2) !important; |
| 248 | +} |
| 249 | + |
| 250 | +.mermaid svg path, |
| 251 | +.mermaid svg line { |
| 252 | + stroke: var(--text-secondary) !important; |
| 253 | +} |
| 254 | + |
| 255 | +/* Arrowheads */ |
| 256 | +.mermaid svg marker path { |
| 257 | + fill: var(--text-secondary) !important; |
| 258 | + stroke: none !important; |
| 259 | +} |
| 260 | + |
| 261 | +.mermaid svg .note { |
| 262 | + fill: rgba(139, 92, 246, 0.2) !important; |
| 263 | + stroke: var(--accent-purple) !important; |
| 264 | +} |
| 265 | + |
| 266 | +.mermaid svg .labelBox { |
| 267 | + fill: var(--app-bg) !important; |
| 268 | + stroke: var(--card-border) !important; |
| 269 | +} |
0 commit comments