feat(ui): implement Eco-Joy Analytics light-mode UI/UX redesign with custom fonts, colors, Voyager map, and micro-animations
Browse filesFiles changed (3)
- frontend/app.js+3-3
- frontend/index.html+1-1
- frontend/style.css+497-619
240 unmodified lines241242243244245246247594 unmodified lines84284384484584684784819 unmodified lines868869870871872873874240 unmodified linesminZoom: 9}).setView([-6.175, 106.825], 11.5);L.tileLayer('https://{s}.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}{r}.png', {maxZoom: 20}).addTo(map);594 unmodified lines}}draw() {ctx.fillStyle = `rgba(0, 240, 255, ${this.alpha})`;ctx.beginPath();ctx.arc(this.x, this.y, this.size, 0, Math.PI * 2);ctx.fill();19 unmodified lines}}draw() {ctx.strokeStyle = `rgba(0, 240, 255, ${this.alpha})`;ctx.lineWidth = this.weight;ctx.beginPath();ctx.moveTo(this.x, this.y);240 unmodified lines241242243244245246247594 unmodified lines84284384484584684784819 unmodified lines868869870871872873874240 unmodified linesminZoom: 9}).setView([-6.175, 106.825], 11.5);L.tileLayer('https://{s}.basemaps.cartocdn.com/rastertiles/voyager/{z}/{x}/{y}{r}.png', {maxZoom: 20}).addTo(map);594 unmodified lines}}draw() {ctx.fillStyle = `rgba(0, 107, 95, ${this.alpha})`;ctx.beginPath();ctx.arc(this.x, this.y, this.size, 0, Math.PI * 2);ctx.fill();19 unmodified lines}}draw() {ctx.strokeStyle = `rgba(0, 107, 95, ${this.alpha})`;ctx.lineWidth = this.weight;ctx.beginPath();ctx.moveTo(this.x, this.y);
51 unmodified lines5253545556575851 unmodified lines<!-- Google Fonts --><link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin><link href="https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Space+Grotesk:wght@300;400;500;600;700&family=JetBrains+Mono:wght@300;400;700&display=swap" rel="stylesheet"><!-- Leaflet.js Map Library --><link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css" integrity="sha256-p4NxAoJBhIIN+hmNHrzRCf9tD/miZyoHS5obTRR9BMY=" crossorigin="" />51 unmodified lines5253545556575851 unmodified lines<!-- Google Fonts --><link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin><link href="https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;600;700;800&family=Be+Vietnam+Pro:wght@300;400;500;600;700&family=JetBrains+Mono:wght@300;400;700&display=swap" rel="stylesheet"><!-- Leaflet.js Map Library --><link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css" integrity="sha256-p4NxAoJBhIIN+hmNHrzRCf9tD/miZyoHS5obTRR9BMY=" crossorigin="" />
1234567891011121314151617181920212223242526272829304 unmodified lines3536373839409 unmodified lines50515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021033 unmodified lines1071081091101111121131141151161171181191201 unmodified line1221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831844 unmodified lines1891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412424 unmodified lines2472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792804 unmodified lines2852862872882892902912922932942 unmodified lines2972982993003013023033043053063073083093103115 unmodified lines3173183193203213223233243253263271 unmodified line3293303313323333343353363373383393403413423431 unmodified line3453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334345 unmodified lines4404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974 unmodified lines5025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775781 unmodified line5805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126131 unmodified line61561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764810 unmodified lines6596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047054 unmodified lines7107117127137147157167177187197207217227237247257267277287297307317 unmodified lines7397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787795 unmodified lines7857867877887897903 unmodified lines7947957967977987998008018028038048058068078088098108118128138148158163 unmodified lines8208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718727 unmodified lines8808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299301 unmodified line9329339349359369379389399409419429439449459469479489499501 unmodified line9529539549559569579589599609619629636 unmodified lines9709719729739749759761 unmodified line9789799809819829839849859869879889899909919929939942 unmodified lines99799899910001001100210032 unmodified lines1006100710081009101010111012101310142 unmodified lines1017101810191020102110221023102410251026102710281029103010311032103310341035103610373 unmodified lines1041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610676 unmodified lines107410751076107710781079108010811082108310842 unmodified lines10871088108910901091109210931094109510961097109810991100110111029 unmodified lines11121113111411151116111711181119112011213 unmodified lines1125112611271128112911301131113211331 unmodified line1135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811793 unmodified lines1183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213235 unmodified lines132913301331133213331334133513361337133813391340134113422 unmodified lines134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141116 unmodified lines1428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691 unmodified line1471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528/* CSS Variables for Theming */:root {--bg-void: #02040a;--bg-panel: rgba(6, 10, 22, 0.75);--border-color: rgba(0, 240, 255, 0.12);--border-hover: rgba(0, 240, 255, 0.3);--text-main: #E1E3E8;--text-muted: #8c93a3;/* Neon Colors */--cyan: #00F0FF;--cyan-glow: rgba(0, 240, 255, 0.45);--green: #39FF14;--green-glow: rgba(57, 255, 20, 0.35);--yellow: #FFE600;--yellow-glow: rgba(255, 230, 0, 0.35);--red: #FF0055;--red-glow: rgba(255, 0, 85, 0.45);/* Fonts */--font-display: 'Outfit', 'Space Grotesk', system-ui, sans-serif;--font-body: 'Space Grotesk', system-ui, sans-serif;--font-mono: 'JetBrains Mono', monospace;}/* Base resets */* {box-sizing: border-box;margin: 0;4 unmodified linesbackground-color: var(--bg-void);color: var(--text-main);font-family: var(--font-body);overflow-x: hidden;min-height: 100vh;display: flex;9 unmodified linesheight: 100%;z-index: 0;pointer-events: none;opacity: 0.45;}/* Header */header {width: 100%;padding: 1.5rem 2.5rem;background: linear-gradient(to bottom, rgba(2, 4, 10, 0.95) 60%, transparent);display: flex;justify-content: space-between;align-items: center;border-bottom: 1px solid rgba(255, 255, 255, 0.03);z-index: 10;position: relative;}.logo-container {display: flex;align-items: baseline;gap: 10px;}.logo-text {font-family: var(--font-display);font-size: 1.8rem;font-weight: 800;letter-spacing: 2px;background: linear-gradient(135deg, #FFF 40%, var(--cyan) 100%);-webkit-background-clip: text;-webkit-text-fill-color: transparent;text-shadow: 0 0 20px rgba(0, 240, 255, 0.15);}.logo-text .highlight {font-weight: 300;letter-spacing: 0px;color: var(--cyan);margin-left: 4px;}.version-tag {font-family: var(--font-mono);font-size: 0.75rem;color: var(--text-muted);background: rgba(255, 255, 255, 0.05);padding: 2px 8px;border-radius: 4px;border: 1px solid rgba(255, 255, 255, 0.08);}.system-status {3 unmodified lines}.status-indicator {width: 8px;height: 8px;border-radius: 50%;}.status-indicator.online {background-color: var(--green);box-shadow: 0 0 10px var(--green-glow), 0 0 20px var(--green-glow);animation: pulse-green 2s infinite;}1 unmodified linefont-family: var(--font-mono);font-size: 0.8rem;color: var(--text-muted);}/* Grid Layout */.dashboard-grid {display: grid;grid-template-columns: 320px 1fr 340px;gap: 1.5rem;padding: 1.5rem 2.5rem;flex: 1;z-index: 5;position: relative;}@media (max-width: 1200px) {.dashboard-grid {grid-template-columns: 1fr;}}/* Panels */.panel {background: var(--bg-panel);border: 1px solid var(--border-color);border-radius: 12px;padding: 1.5rem;backdrop-filter: blur(16px);box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);transition: border-color 0.3s, box-shadow 0.3s;}.panel:hover {border-color: var(--border-hover);box-shadow: 0 8px 32px 0 rgba(0, 240, 255, 0.05);}.panel-title {font-family: var(--font-display);font-size: 0.95rem;font-weight: 600;letter-spacing: 1.5px;color: var(--text-main);margin-bottom: 1.2rem;border-left: 3px solid var(--cyan);padding-left: 8px;text-transform: uppercase;}.panel-subtitle {font-family: var(--font-display);font-size: 0.85rem;font-weight: 600;color: var(--cyan);margin-bottom: 1rem;text-transform: uppercase;}/* Controls */.control-group {margin-bottom: 1.2rem;}4 unmodified linescolor: var(--text-muted);margin-bottom: 6px;text-transform: uppercase;font-family: var(--font-mono);}.form-control {width: 100%;background: rgba(0, 0, 0, 0.4);border: 1px solid var(--border-color);color: var(--text-main);padding: 10px 14px;border-radius: 8px;outline: none;font-family: var(--font-body);font-size: 0.9rem;transition: border-color 0.3s;}.form-control:focus {border-color: var(--cyan);}.slider {width: 100%;-webkit-appearance: none;height: 6px;border-radius: 3px;background: rgba(255, 255, 255, 0.1);outline: none;}.slider::-webkit-slider-thumb {-webkit-appearance: none;width: 16px;height: 16px;border-radius: 50%;background: var(--cyan);box-shadow: 0 0 10px var(--cyan-glow);cursor: pointer;transition: transform 0.1s;}.slider::-webkit-slider-thumb:hover {transform: scale(1.25);}.value-display, .override-display {font-family: var(--font-mono);color: var(--cyan);font-weight: bold;float: right;}4 unmodified lines}.divider {height: 1px;background: rgba(255, 255, 255, 0.05);margin: 1.5rem 0;}/* Buttons */.action-btn {width: 100%;padding: 12px;background: rgba(0, 240, 255, 0.06);border: 1px solid var(--cyan);color: var(--cyan);font-family: var(--font-mono);font-size: 0.90rem;font-weight: bold;border-radius: 8px;cursor: pointer;position: relative;overflow: hidden;transition: background 0.3s, box-shadow 0.3s;}.action-btn:hover {background: rgba(0, 240, 255, 0.15);box-shadow: 0 0 20px var(--cyan-glow);}/* Map Panel with Leaflet Map */.map-panel {display: flex;flex-direction: column;4 unmodified lines.map-container {flex: 1;position: relative;background: rgba(0, 0, 0, 0.3);border-radius: 8px;overflow: hidden;border: 1px solid var(--border-color);}#map {2 unmodified linesbackground: var(--bg-void) !important;}/* Custom Marker Styling for Leaflet */.leaflet-custom-marker {position: absolute;width: 24px !important;height: 24px !important;/* Allow Leaflet's dynamic engine to set margins from iconAnchor without CSS overrides */transform-origin: center center;backface-visibility: hidden;-webkit-backface-visibility: hidden;cursor: pointer;}5 unmodified linesheight: 28px;margin-left: -14px;margin-top: -14px;background: var(--cyan);border-radius: 50%;opacity: 0.15;transform: scale(1);animation: pulse-node 2s infinite;pointer-events: none;}1 unmodified lineposition: absolute;top: 50%;left: 50%;width: 12px;height: 12px;margin-left: -6px;margin-top: -6px;background: var(--cyan);border: 2px solid #FFF;border-radius: 50%;box-shadow: 0 0 10px var(--cyan-glow);transition: transform 0.2s, background 0.3s;}.leaflet-custom-marker .marker-label {1 unmodified linetop: -24px;left: 50%;transform: translateX(-50%);font-family: var(--font-mono);font-size: 10px;font-weight: bold;color: var(--text-muted);background: rgba(0, 0, 0, 0.85);padding: 2px 6px;border-radius: 4px;border: 1px solid rgba(255, 255, 255, 0.15);white-space: nowrap;pointer-events: none;transition: color 0.3s, border-color 0.3s;}/* Hover and Active State */.leaflet-custom-marker:hover .marker-core {transform: scale(1.2);}.leaflet-custom-marker.active .marker-core {transform: scale(1.3);background: var(--cyan);box-shadow: 0 0 15px var(--cyan), 0 0 25px var(--cyan-glow);}.leaflet-custom-marker.active .marker-label {color: var(--cyan);border-color: var(--cyan);box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);}/* Risk indicator classes for Leaflet Markers */.leaflet-custom-marker.safe .marker-core {background: var(--green);box-shadow: 0 0 10px var(--green-glow);}.leaflet-custom-marker.safe .marker-pulse {background: var(--green);}.leaflet-custom-marker.warning .marker-core {background: var(--yellow);box-shadow: 0 0 10px var(--yellow-glow);}.leaflet-custom-marker.warning .marker-pulse {background: var(--yellow);}.leaflet-custom-marker.critical .marker-core {background: var(--red);box-shadow: 0 0 10px var(--red-glow);}.leaflet-custom-marker.critical .marker-pulse {background: var(--red);}/* Leaflet Layout UI Overrides */.leaflet-bar {border: 1px solid var(--border-color) !important;border-radius: 8px !important;overflow: hidden;box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6) !important;}.leaflet-bar a {background-color: rgba(6, 10, 22, 0.85) !important;color: var(--text-main) !important;border-bottom: 1px solid var(--border-color) !important;transition: background-color 0.2s, color 0.2s;}.leaflet-bar a:hover {background-color: rgba(0, 240, 255, 0.15) !important;color: var(--cyan) !important;}.leaflet-container {background: var(--bg-void) !important;}/* Stats Cards */.stats-row {display: grid;grid-template-columns: repeat(3, 1fr);gap: 1.5rem;}.stat-card {5 unmodified lines}.card-label {font-family: var(--font-mono);font-size: 0.7rem;color: var(--text-muted);margin-bottom: 6px;text-transform: uppercase;}.card-value {font-family: var(--font-display);font-size: 1.5rem;font-weight: 800;color: #FFF;}.card-value .unit {font-size: 0.85rem;font-weight: 400;color: var(--text-muted);}.status-badge {display: inline-block;padding: 4px 12px;border-radius: 6px;font-size: 0.95rem;font-weight: bold;text-align: center;width: fit-content;}.status-badge.safe {background: rgba(57, 255, 20, 0.08);border: 1px solid var(--green);color: var(--green);text-shadow: 0 0 10px var(--green-glow);}.status-badge.warning {background: rgba(255, 230, 0, 0.08);border: 1px solid var(--yellow);color: var(--yellow);text-shadow: 0 0 10px var(--yellow-glow);}.status-badge.critical {background: rgba(255, 0, 85, 0.08);border: 1px solid var(--red);color: var(--red);text-shadow: 0 0 10px var(--red-glow);}/* Composition / Progress bars */.progress-item {margin-bottom: 1.2rem;}4 unmodified linesfont-size: 0.8rem;color: var(--text-muted);margin-bottom: 6px;font-family: var(--font-mono);}.progress-bar-bg {width: 100%;height: 8px;background: rgba(255, 255, 255, 0.05);border-radius: 4px;overflow: hidden;}.progress-bar-fill {height: 100%;border-radius: 4px;width: 0%;transition: width 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);}.progress-bar-fill.organic {background: linear-gradient(to right, #4CAF50, #8BC34A);box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);}.progress-bar-fill.plastic {background: linear-gradient(to right, var(--cyan), #00BCD4);box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);}.progress-bar-fill.paper {background: linear-gradient(to right, var(--yellow), #FF9900);box-shadow: 0 0 10px rgba(255, 230, 0, 0.3);}.progress-bar-fill.glass {background: linear-gradient(to right, var(--red), #E040FB);box-shadow: 0 0 10px rgba(255, 0, 85, 0.3);}.progress-bar-fill.textile {background: linear-gradient(to right, #CC66FF, #2196F3);box-shadow: 0 0 10px rgba(204, 102, 255, 0.3);}.progress-bar-fill.metal {background: linear-gradient(to right, #E1E3E8, var(--cyan));box-shadow: 0 0 10px rgba(225, 227, 232, 0.3);}/* Weather & Event Panel */.weather-grid {display: flex;justify-content: space-between;align-items: center;background: rgba(0, 0, 0, 0.25);padding: 12px;border-radius: 8px;border: 1px solid rgba(255, 255, 255, 0.03);margin-bottom: 1rem;}.weather-temp {font-family: var(--font-display);font-size: 1.2rem;font-weight: 700;color: #FFF;}.weather-label {display: block;font-size: 0.75rem;color: var(--text-muted);}.weather-details {1 unmodified linefont-size: 0.75rem;text-align: right;line-height: 1.4;}.weather-details .highlight {color: var(--cyan);}.event-box {padding: 10px;background: rgba(255, 230, 0, 0.03);border-left: 3px solid var(--yellow);border-radius: 0 6px 6px 0;}.event-title {display: block;font-size: 0.75rem;font-weight: bold;color: var(--yellow);font-family: var(--font-mono);margin-bottom: 4px;}.event-desc {font-size: 0.8rem;color: var(--text-main);}/* Logistics Grid */.logistics-grid {display: grid;grid-template-columns: 1fr 1fr;1 unmodified line}.log-item {background: rgba(0, 0, 0, 0.2);border: 1px solid rgba(255, 255, 255, 0.03);border-radius: 8px;padding: 10px;display: flex;flex-direction: column;}.log-label {font-family: var(--font-mono);font-size: 0.65rem;color: var(--text-muted);text-transform: uppercase;margin-bottom: 4px;}.log-value {font-size: 0.95rem;font-weight: bold;color: #FFF;}.log-value.highlight {color: var(--cyan);text-shadow: 0 0 10px var(--cyan-glow);}/* Timeline Container */.timeline-container {margin-top: 1.5rem;padding: 0 2.5rem;10 unmodified lines.timeline-card {min-width: 140px;background: rgba(0, 0, 0, 0.4);border: 1px solid var(--border-color);border-radius: 8px;padding: 12px;display: flex;flex-direction: column;align-items: center;text-align: center;transition: transform 0.2s, border-color 0.2s;}.timeline-card:hover {transform: translateY(-4px);border-color: var(--cyan);}.timeline-date {font-family: var(--font-mono);font-size: 0.7rem;color: var(--text-muted);margin-bottom: 6px;}.timeline-vol {font-family: var(--font-display);font-size: 1.1rem;font-weight: bold;color: #FFF;margin-bottom: 6px;}.timeline-status {font-size: 0.7rem;padding: 2px 8px;border-radius: 4px;font-weight: bold;}.timeline-status.safe { background: rgba(57, 255, 20, 0.1); color: var(--green); }.timeline-status.warning { background: rgba(255, 230, 0, 0.1); color: var(--yellow); }.timeline-status.critical { background: rgba(255, 0, 85, 0.1); color: var(--red); }.empty-timeline {width: 100%;4 unmodified linesfont-size: 0.9rem;}/* Hourly Breakdown Container */.hourly-container {margin-top: 1.5rem;padding: 0 2.5rem;z-index: 5;position: relative;margin-bottom: 2rem;}.hourly-grid {display: grid;grid-template-columns: repeat(24, 1fr);gap: 4px;background: rgba(0, 0, 0, 0.3);padding: 10px;border-radius: 8px;overflow-x: auto;}7 unmodified lines.cell-block {width: 100%;height: 40px;border-radius: 4px;transition: opacity 0.3s;}.cell-block.low { background-color: rgba(57, 255, 20, 0.35); border: 1px solid var(--green); }.cell-block.medium { background-color: rgba(255, 230, 0, 0.35); border: 1px solid var(--yellow); }.cell-block.high { background-color: rgba(255, 0, 85, 0.35); border: 1px solid var(--red); }.cell-time {font-family: var(--font-mono);font-size: 8px;color: var(--text-muted);}/* Footer */footer {width: 100%;padding: 1.5rem;text-align: center;border-top: 1px solid rgba(255, 255, 255, 0.03);color: var(--text-muted);font-size: 0.75rem;font-family: var(--font-mono);margin-top: auto;}/* Animations */@keyframes pulse-green {0% { box-shadow: 0 0 0 0 rgba(57, 255, 20, 0.4); }70% { box-shadow: 0 0 0 8px rgba(57, 255, 20, 0); }100% { box-shadow: 0 0 0 0 rgba(57, 255, 20, 0); }}@keyframes pulse-node {0% { transform: scale(0.9); opacity: 0.35; }70% { transform: scale(1.6); opacity: 0; }100% { transform: scale(0.9); opacity: 0; }}5 unmodified linesmargin-top: 6px;display: block;text-transform: uppercase;}.button-row {3 unmodified lines}.secondary-btn {background: rgba(57, 255, 20, 0.04) !important;border: 1px solid var(--green) !important;color: var(--green) !important;}.secondary-btn:hover {background: rgba(57, 255, 20, 0.12) !important;box-shadow: 0 0 20px var(--green-glow) !important;}/* SPA Multi-Page Styling */.page-container {display: none;opacity: 0;transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);animation: fade-in 0.4s forwards;padding: 1.5rem 2.5rem;flex: 1;z-index: 5;3 unmodified lines.page-container.active {display: block;opacity: 1;}@keyframes fade-in {from { opacity: 0; transform: translateY(8px); }to { opacity: 1; transform: translateY(0); }}/* Nav Links in Header */.nav-links {display: flex;gap: 1.25rem;background: rgba(255, 255, 255, 0.03);border: 1px solid rgba(255, 255, 255, 0.06);padding: 4px;border-radius: 8px;}.nav-btn {background: transparent;border: none;color: var(--text-muted);font-family: var(--font-display);font-size: 0.85rem;font-weight: 600;letter-spacing: 1px;padding: 8px 16px;cursor: pointer;border-radius: 6px;transition: color 0.3s, background 0.3s, box-shadow 0.3s;}.nav-btn:hover {color: var(--cyan);background: rgba(255, 255, 255, 0.02);}.nav-btn.active {color: var(--bg-void);background: var(--cyan);box-shadow: 0 0 15px var(--cyan-glow);}/* Hero Section */.hero-section {display: grid;grid-template-columns: 1.2fr 0.8fr;gap: 2rem;align-items: center;padding: 3rem 0;}7 unmodified lines.hero-content {display: flex;flex-direction: column;gap: 1.5rem;}.hero-title {font-family: var(--font-display);font-size: 3rem;font-weight: 800;letter-spacing: 2px;line-height: 1.1;background: linear-gradient(135deg, #FFF 40%, var(--cyan) 100%);-webkit-background-clip: text;-webkit-text-fill-color: transparent;text-shadow: 0 0 30px rgba(0, 240, 255, 0.15);}.hero-subtitle {font-size: 1.1rem;color: var(--text-muted);line-height: 1.6;}.hero-actions {display: flex;gap: 1rem;max-width: 400px;}.hero-stats-panel {display: flex;flex-direction: column;gap: 1rem;background: rgba(6, 10, 22, 0.6) !important;}.hero-stat-grid {display: grid;grid-template-columns: 1fr 1fr;gap: 1rem;}.hero-stat-card {background: rgba(0, 0, 0, 0.25);border: 1px solid rgba(255, 255, 255, 0.05);padding: 1.2rem;border-radius: 8px;display: flex;flex-direction: column;gap: 4px;1 unmodified line.h-stat-label {font-size: 0.75rem;font-family: var(--font-mono);color: var(--text-muted);text-transform: uppercase;}.h-stat-value {font-size: 1.8rem;font-family: var(--font-display);font-weight: 800;color: #FFF;}/* Features Grid */.features-section {padding: 2rem 0;}1 unmodified line.section-title {font-family: var(--font-display);font-size: 1.4rem;font-weight: 700;letter-spacing: 1.5px;margin-bottom: 2rem;color: #FFF;border-left: 3px solid var(--cyan);padding-left: 10px;}.features-grid {6 unmodified linesdisplay: flex;flex-direction: column;gap: 1rem;transition: transform 0.3s;}.feature-card:hover {1 unmodified line}.feature-icon {font-size: 2rem;font-weight: 800;color: rgba(0, 240, 255, 0.25);text-shadow: 0 0 10px rgba(0, 240, 255, 0.05);}.feature-name {font-family: var(--font-display);font-size: 1.05rem;font-weight: 600;color: var(--cyan);}.feature-desc {2 unmodified linesline-height: 1.6;}/* Page Headers */.page-header-section {padding: 2rem 0 1rem 0;}2 unmodified linesfont-size: 0.95rem;color: var(--text-muted);margin-top: 6px;}/* News Page Styling */.news-grid {display: grid;grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));2 unmodified lines}.news-card {background: var(--bg-panel);border: 1px solid var(--border-color);border-radius: 12px;padding: 1.5rem;backdrop-filter: blur(16px);display: flex;flex-direction: column;gap: 1rem;transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;}.news-card:hover {transform: translateY(-3px);border-color: var(--border-hover);box-shadow: 0 8px 32px 0 rgba(0, 240, 255, 0.05);}.news-card-header {3 unmodified lines}.news-source {font-family: var(--font-mono);font-size: 0.75rem;background: rgba(0, 240, 255, 0.08);color: var(--cyan);padding: 2px 8px;border-radius: 4px;border: 1px solid rgba(0, 240, 255, 0.2);}.news-date {font-family: var(--font-mono);font-size: 0.75rem;color: var(--text-muted);}.news-title {font-family: var(--font-display);font-size: 1.1rem;font-weight: 600;color: #FFF;line-height: 1.4;}.news-summary {6 unmodified linesmargin-top: auto;display: inline-flex;align-items: center;color: var(--cyan);text-decoration: none;font-family: var(--font-mono);font-size: 0.8rem;font-weight: bold;gap: 6px;transition: gap 0.2s;}2 unmodified linesgap: 10px;}.loading-news, .loading-alerts {grid-column: 1 / -1;text-align: center;padding: 3rem;color: var(--text-muted);font-family: var(--font-mono);font-size: 0.9rem;}/* Alerts Page Styling */.alerts-summary {margin-top: 1.5rem;}9 unmodified linesgrid-template-columns: 120px 180px 100px 1fr;gap: 1rem;align-items: center;background: rgba(0, 0, 0, 0.2);border: 1px solid rgba(255, 255, 255, 0.04);padding: 1rem 1.5rem;border-radius: 8px;transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);cursor: pointer;}3 unmodified lines}.alert-row:hover {background: rgba(0, 240, 255, 0.04) !important;border-color: var(--cyan) !important;box-shadow: 0 0 15px rgba(0, 240, 255, 0.1) !important;transform: translateX(6px);}1 unmodified linefont-family: var(--font-mono);font-size: 0.85rem;color: var(--text-muted);}.alert-location {font-family: var(--font-display);font-weight: 600;color: #FFF;}.alert-badge {font-family: var(--font-mono);font-size: 0.75rem;font-weight: bold;padding: 3px 8px;border-radius: 4px;text-align: center;}.alert-badge.critical {background: rgba(255, 0, 85, 0.12);color: var(--red);border: 1px solid var(--red);box-shadow: 0 0 10px rgba(255, 0, 85, 0.1);}.alert-badge.warning {background: rgba(255, 230, 0, 0.12);color: var(--yellow);border: 1px solid var(--yellow);box-shadow: 0 0 10px rgba(255, 230, 0, 0.1);}.alert-desc {font-size: 0.85rem;color: var(--text-muted);}/* ==========================================CUSTOM CYBER HUD CURSOR & INTERACTIVITY========================================== */#cursor-dot,#cursor-ring {position: fixed;3 unmodified linesz-index: 10000;border-radius: 50%;display: none;backface-visibility: hidden;}#cursor-dot {width: 6px;height: 6px;background: var(--cyan);box-shadow: 0 0 10px var(--cyan);}#cursor-ring {width: 40px;height: 40px;border: 1px solid var(--border-hover);transition: width 0.25s cubic-bezier(0.25, 1, 0.5, 1),height 0.25s cubic-bezier(0.25, 1, 0.5, 1),border-color 0.25s ease,background 0.25s ease;}/* Hover state on buttons/interactive elements */#cursor-ring.hover-state {width: 55px;height: 55px;border-color: var(--cyan);background: rgba(0, 240, 255, 0.04);box-shadow: 0 0 15px rgba(0, 240, 255, 0.15);}@media (pointer: coarse) {#cursor-dot,#cursor-ring {display: none !important;}* {cursor: auto !important;}}/* Hide default cursor on desktops for the custom cursor feel */@media (pointer: fine) {body, a, button, select, input, [role="button"], .leaflet-interactive {cursor: none !important;}}/* ==========================================RADAR SWEEP EFFECT (ON MAP OVERLAY)========================================== */.map-container {position: relative;}.map-container::after {content: '';position: absolute;inset: 0;pointer-events: none;z-index: 1000;background: conic-gradient(from 0deg at 50% 50%, rgba(0, 240, 255, 0.08) 0deg, transparent 90deg, transparent 360deg);animation: radar-sweep 8s linear infinite;opacity: 0.7;border-radius: 8px;mix-blend-mode: screen;}@keyframes radar-sweep {from {transform: rotate(0deg);}to {transform: rotate(360deg);}}/* ==========================================AMBIENT GLOWS & GLASSMORPHISM UPGRADES========================================== */body::before {content: '';position: fixed;top: -10%;left: -10%;width: 50%;height: 50%;background: radial-gradient(circle, rgba(0, 240, 255, 0.05) 0%, transparent 70%);z-index: 0;pointer-events: none;}body::after {content: '';position: fixed;bottom: -10%;right: -10%;width: 60%;height: 60%;background: radial-gradient(circle, rgba(0, 102, 255, 0.04) 0%, transparent 70%);z-index: 0;pointer-events: none;}/* Neon glow for progress bars */.progress-bar-fill.organic {box-shadow: 0 0 8px var(--green-glow);}.progress-bar-fill.plastic {box-shadow: 0 0 8px var(--cyan-glow);}.progress-bar-fill.paper {box-shadow: 0 0 8px var(--yellow-glow);}.progress-bar-fill.glass {box-shadow: 0 0 8px rgba(0, 240, 255, 0.25);}.progress-bar-fill.textile {box-shadow: 0 0 8px rgba(255, 0, 85, 0.25);}.progress-bar-fill.metal {box-shadow: 0 0 8px rgba(255, 255, 255, 0.25);}/* Logo Reflective Polish */.logo-text {position: relative;-webkit-box-reflect: below -4px linear-gradient(transparent, rgba(255, 255, 255, 0.08));}/* ==========================================DEVELOPMENT TEAM STYLING========================================== */.developers-section {padding: 2.5rem 0;margin-top: 3.5rem;border-top: 1px solid rgba(255, 255, 255, 0.05);}.developers-grid {5 unmodified lines.developer-card {position: relative;background: rgba(6, 10, 22, 0.5) !important;border: 1px solid var(--border-color) !important;border-radius: 12px;padding: 2.2rem;text-align: center;transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);overflow: hidden;backdrop-filter: blur(16px);}.developer-card::before {2 unmodified linestop: 0;left: 0;right: 0;height: 3px;background: linear-gradient(90deg, transparent, var(--cyan), transparent);opacity: 0.7;}.developer-card:hover {transform: translateY(-6px);border-color: var(--cyan) !important;box-shadow: 0 10px 25px rgba(0, 240, 255, 0.15) !important;}.dev-role {font-size: 0.75rem;text-transform: uppercase;letter-spacing: 2px;color: var(--cyan);font-weight: 700;margin-bottom: 0.6rem;font-family: var(--font-mono);}.dev-name {font-size: 1.25rem;color: #FFF;font-weight: 800;margin-bottom: 0.8rem;font-family: var(--font-display);text-shadow: 0 0 10px rgba(255, 255, 255, 0.15);}.dev-desc {font-size: 0.82rem;color: var(--text-muted);line-height: 1.6;}/* ==========================================COMPREHENSIVE LAYOUT RESPONSIVENESS========================================== */@media (max-width: 1200px) {.dashboard-grid {display: flex !important;flex-direction: column !important;height: auto !important;overflow: visible !important;gap: 1.5rem !important;}/* Smart re-ordering for mobile: Show Map & Stats first, then Config Panel, then Charts */.map-and-stats {order: -1 !important;}.control-panel {order: 0 !important;}.analysis-panel {order: 1 !important;}.page-container {height: auto !important;overflow: visible !important;}}@media (max-width: 992px) {16 unmodified linesflex-direction: column !important;gap: 1.2rem !important;padding: 1.2rem 1.5rem !important;text-align: center;}.logo-container {justify-content: center;flex-wrap: wrap;}/* Sleek Equal-width Segmented Tab-bar on Mobile */.nav-links {display: grid !important;grid-template-columns: repeat(3, 1fr) !important;gap: 0.5rem !important;width: 100% !important;background: rgba(0, 0, 0, 0.4);padding: 4px;border-radius: 8px;border: 1px solid rgba(255, 255, 255, 0.05);}.nav-btn {width: 100% !important;padding: 8px 4px !important;font-size: 0.72rem !important;text-align: center !important;justify-content: center !important;margin: 0 !important;}.system-status {justify-content: center;width: 100%;margin-top: 0.2rem;}.page-container {padding: 1rem 1.2rem !important;}.stats-row {grid-template-columns: 1fr !important;gap: 1rem !important;}.hero-stat-grid {grid-template-columns: 1fr !important;1 unmodified line.hero-title {font-size: 2.2rem !important;}.hero-subtitle {font-size: 0.95rem !important;}.map-panel {height: 350px !important;}.logistics-grid {grid-template-columns: 1fr !important;}/* Stack progress bars in 1 column to prevent text clipping */.progress-container {grid-template-columns: 1fr !important;gap: 1rem !important;}/* Flex stack alerts to fit narrow viewports beautifully */.alert-row, .autopilot-row {display: flex !important;flex-direction: column !important;align-items: flex-start !important;gap: 0.5rem !important;padding: 1rem 1.2rem !important;}.alert-row > *, .autopilot-row > * {width: auto !important;margin: 0 !important;text-align: left !important;}.alert-desc, .alert-location {font-size: 0.8rem !important;word-break: break-word !important;line-height: 1.4 !important;}.alert-badge {align-self: flex-start !important;}}@media (max-width: 480px) {.logo-text {font-size: 1.5rem !important;}.nav-btn {font-size: 0.68rem !important;padding: 6px 2px !important;}.section-title {font-size: 1.2rem !important;}.developer-card {padding: 1.5rem !important;}}123456789101112131415161718192021222324252627282930313233343536373839404142434445464 unmodified lines515253545556579 unmodified lines6768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181193 unmodified lines1231241251261271281291301311321331341351361 unmodified line1381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462474 unmodified lines2522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103114 unmodified lines3163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543554 unmodified lines3603613623633643653663673683692 unmodified lines3723733743753763773783793803813823833843853863873883893903913923933943953963973983994005 unmodified lines4064074084094104114124134144154161 unmodified line4184194204214224234244254264274284294304314321 unmodified line4344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055 unmodified lines5115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665674 unmodified lines5725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276281 unmodified line6306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686691 unmodified line67167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370410 unmodified lines7157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667674 unmodified lines7727737747757767777787797807817827837847857867877887897907917927937947 unmodified lines8028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448455 unmodified lines8518528538548558568573 unmodified lines8618628638648658668678688698708718728738748758768778788798808818823 unmodified lines8868878888898908918928938948958968978988999009019029039047 unmodified lines9129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629631 unmodified line9659669679689699709719729739749759769779789799809819829839841 unmodified line986987988989990991992993994995996997998999100010011002100310041005100610076 unmodified lines10141015101610171018101910201 unmodified line102210231024102510261027102810291030103110321033103410351036103710382 unmodified lines10411042104310441045104610472 unmodified lines10501051105210531054105510561057105810592 unmodified lines106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310843 unmodified lines108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511166 unmodified lines112311241125112611271128112911301131113211332 unmodified lines11361137113811391140114111429 unmodified lines115211531154115511561157115811591160116111623 unmodified lines1166116711681169117011711172117311741 unmodified line117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812193 unmodified lines122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112725 unmodified lines127812791280128112821283128412851286128712881289129012912 unmodified lines1294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134316 unmodified lines136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881 unmodified line13901391139213931394139513961397139813991400140114021403140414051406/* CSS Variables for Theming - Eco-Joy Analytics */:root {/* Color Palette */--background: #f4fbf8; /* Soft minty void */--bg-void: #f4fbf8;--bg-panel: #ffffff; /* Clean white containers */--border-color: #bacac5; /* Soft outline-variant */--border-hover: #006b5f; /* Primary highlight */--text-main: #161d1b; /* deep dark gray-green */--text-muted: #6b7a76; /* warm outline / secondary gray *//* Core Brand Accents */--primary: #006b5f; /* Eco-Teal */--primary-glow: rgba(0, 107, 95, 0.06);--secondary: #735c00; /* Sunny Yellow */--secondary-container: #fed01b; /* Warm accent yellow */--secondary-glow: rgba(254, 208, 27, 0.06);/* Semantics */--cyan: #006b5f; /* Action items */--cyan-glow: rgba(0, 107, 95, 0.15);--green: #4ADE80; /* Leaf Green success */--green-glow: rgba(74, 222, 128, 0.15);--yellow: #fed01b; /* Warning yellow */--yellow-glow: rgba(254, 208, 27, 0.15);--red: #ba1a1a; /* Alert / Error red */--red-glow: rgba(186, 26, 26, 0.15);--sky-blue: #38BDF8;--leaf-green: #4ADE80;--soft-surface: #F8FAFC;/* Typography System */--font-display: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;--font-body: 'Be Vietnam Pro', system-ui, -apple-system, sans-serif;--font-mono: 'JetBrains Mono', monospace;}/* Base resets & layouts */* {box-sizing: border-box;margin: 0;4 unmodified linesbackground-color: var(--bg-void);color: var(--text-main);font-family: var(--font-body);font-weight: 400;overflow-x: hidden;min-height: 100vh;display: flex;9 unmodified linesheight: 100%;z-index: 0;pointer-events: none;opacity: 0.35;}/* Navigation Header */header {width: 100%;padding: 1.2rem 2.5rem;background: #ffffff;display: flex;justify-content: space-between;align-items: center;border-bottom: 2px solid var(--border-color);z-index: 10;position: relative;box-shadow: 0 4px 12px rgba(0, 107, 95, 0.02);}.logo-container {display: flex;align-items: center;gap: 8px;}.logo-text {font-family: var(--font-display);font-size: 1.8rem;font-weight: 800;letter-spacing: -0.02em;background: linear-gradient(135deg, var(--primary) 30%, var(--secondary) 100%);-webkit-background-clip: text;-webkit-text-fill-color: transparent;}.logo-text .highlight {font-weight: 400;color: var(--primary);}.version-tag {font-family: var(--font-mono);font-size: 0.7rem;color: var(--text-muted);background: var(--soft-surface);padding: 2px 8px;border-radius: 12px;border: 1px solid var(--border-color);font-weight: 600;}.system-status {3 unmodified lines}.status-indicator {width: 10px;height: 10px;border-radius: 50%;}.status-indicator.online {background-color: var(--green);box-shadow: 0 0 8px var(--green-glow);animation: pulse-green 2s infinite;}1 unmodified linefont-family: var(--font-mono);font-size: 0.8rem;color: var(--text-muted);font-weight: 600;}/* Nav Links Segmented Control */.nav-links {display: flex;gap: 8px;background: var(--soft-surface);border: 2px solid var(--border-color);padding: 4px;border-radius: 24px;}.nav-btn {background: transparent;border: none;color: var(--text-muted);font-family: var(--font-display);font-size: 0.85rem;font-weight: 700;padding: 8px 18px;cursor: pointer;border-radius: 20px;transition: color 0.25s, background-color 0.25s, transform 0.1s;}.nav-btn:hover {color: var(--primary);}.nav-btn:active {transform: scale(0.95);}.nav-btn.active {color: #ffffff;background: var(--primary);box-shadow: 0 4px 10px rgba(0, 107, 95, 0.25);}/* Grid Layout */.dashboard-grid {display: grid;grid-template-columns: 340px 1fr 360px;gap: 24px;padding: 2.5rem;flex: 1;z-index: 5;position: relative;max-width: 1280px;margin: 0 auto;width: 100%;}/* Panels (Tactile Islands) */.panel {background: var(--bg-panel);border: 2px solid var(--border-color);border-radius: 16px;padding: 1.8rem;box-shadow: 0 8px 24px rgba(0, 107, 95, 0.03);transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),border-color 0.3s ease,box-shadow 0.3s ease;}.panel:hover {transform: translateY(-4px);border-color: var(--primary);box-shadow: 0 16px 32px rgba(0, 107, 95, 0.08);}.panel-title {font-family: var(--font-display);font-size: 1rem;font-weight: 800;color: var(--primary);margin-bottom: 1.2rem;text-transform: uppercase;letter-spacing: 0.05em;display: flex;align-items: center;gap: 8px;}.panel-title::before {content: '';display: inline-block;width: 4px;height: 16px;background: var(--secondary-container);border-radius: 2px;}.panel-subtitle {font-family: var(--font-display);font-size: 0.85rem;font-weight: 700;color: var(--text-muted);margin-bottom: 1rem;text-transform: uppercase;}/* Controls & Form Inputs */.control-group {margin-bottom: 1.2rem;}4 unmodified linescolor: var(--text-muted);margin-bottom: 6px;text-transform: uppercase;font-family: var(--font-display);font-weight: 700;}.form-control {width: 100%;background: #ffffff;border: 2px solid var(--border-color);color: var(--text-main);padding: 10px 14px;border-radius: 8px;outline: none;font-family: var(--font-body);font-size: 0.9rem;font-weight: 500;transition: border-color 0.25s, box-shadow 0.25s;}.form-control:focus {border-color: var(--primary);box-shadow: 0 0 0 3px rgba(0, 107, 95, 0.1);}/* Friendly Sliders */.slider {width: 100%;-webkit-appearance: none;height: 8px;border-radius: 4px;background: var(--border-color);outline: none;}.slider::-webkit-slider-thumb {-webkit-appearance: none;width: 20px;height: 20px;border-radius: 50%;background: var(--primary);border: 3px solid #ffffff;box-shadow: 0 4px 8px rgba(0, 107, 95, 0.2);cursor: pointer;transition: transform 0.1s ease, background-color 0.1s;}.slider::-webkit-slider-thumb:hover {transform: scale(1.2);background: var(--secondary-container);}.value-display, .override-display {font-family: var(--font-mono);color: var(--primary);font-weight: 800;float: right;}4 unmodified lines}.divider {height: 2px;background: var(--border-color);margin: 1.5rem 0;opacity: 0.5;}/* Tactile Buttons */.action-btn {width: 100%;padding: 12px 24px;background: var(--primary);border: none;color: #ffffff;font-family: var(--font-display);font-size: 0.95rem;font-weight: 800;border-radius: 24px;cursor: pointer;position: relative;overflow: hidden;box-shadow: 0 4px 12px rgba(0, 107, 95, 0.2);transition: background-color 0.2s, transform 0.1s, box-shadow 0.2s;}.action-btn:hover {background: #00574d;box-shadow: 0 6px 16px rgba(0, 107, 95, 0.3);}.action-btn:active {transform: scale(0.96);}/* Map Panel & Container */.map-panel {display: flex;flex-direction: column;4 unmodified lines.map-container {flex: 1;position: relative;background: #ffffff;border-radius: 12px;overflow: hidden;border: 2px solid var(--border-color);}#map {2 unmodified linesbackground: var(--bg-void) !important;}/* Radar soft scan overlays */.map-container::after {content: '';position: absolute;inset: 0;pointer-events: none;z-index: 1000;background: conic-gradient(from 0deg at 50% 50%, rgba(0, 107, 95, 0.02) 0deg, transparent 90deg, transparent 360deg);animation: radar-sweep 10s linear infinite;border-radius: 12px;}@keyframes radar-sweep {from { transform: rotate(0deg); }to { transform: rotate(360deg); }}/* Map Custom Markers styling */.leaflet-custom-marker {position: absolute;width: 24px !important;height: 24px !important;transform-origin: center center;cursor: pointer;}5 unmodified linesheight: 28px;margin-left: -14px;margin-top: -14px;background: var(--primary);border-radius: 50%;opacity: 0.12;transform: scale(1);animation: pulse-node 2.2s infinite;pointer-events: none;}1 unmodified lineposition: absolute;top: 50%;left: 50%;width: 14px;height: 14px;margin-left: -7px;margin-top: -7px;background: var(--primary);border: 2.5px solid #ffffff;border-radius: 50%;box-shadow: 0 4px 8px rgba(0, 107, 95, 0.25);transition: transform 0.2s, background-color 0.25s;}.leaflet-custom-marker .marker-label {1 unmodified linetop: -24px;left: 50%;transform: translateX(-50%);font-family: var(--font-display);font-size: 10px;font-weight: 700;color: var(--text-main);background: #ffffff;padding: 2px 8px;border-radius: 10px;border: 2px solid var(--border-color);white-space: nowrap;pointer-events: none;box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);transition: color 0.25s, border-color 0.25s, transform 0.2s;}/* Hover / Active Marker states */.leaflet-custom-marker:hover .marker-core {transform: scale(1.2);}.leaflet-custom-marker.active .marker-core {transform: scale(1.3);border-color: var(--secondary-container);box-shadow: 0 0 12px var(--primary);}.leaflet-custom-marker.active .marker-label {color: var(--primary);border-color: var(--primary);transform: translateX(-50%) scale(1.05);}/* Semantic Map indicators */.leaflet-custom-marker.safe .marker-core { background-color: var(--green); }.leaflet-custom-marker.safe .marker-pulse { background-color: var(--green); }.leaflet-custom-marker.warning .marker-core { background-color: var(--yellow); }.leaflet-custom-marker.warning .marker-pulse { background-color: var(--yellow); }.leaflet-custom-marker.critical .marker-core { background-color: var(--red); }.leaflet-custom-marker.critical .marker-pulse { background-color: var(--red); }/* Leaflet Zoom control layout */.leaflet-bar {border: 2px solid var(--border-color) !important;border-radius: 8px !important;overflow: hidden;box-shadow: 0 4px 12px rgba(0, 107, 95, 0.05) !important;}.leaflet-bar a {background-color: #ffffff !important;color: var(--text-main) !important;border-bottom: 2px solid var(--border-color) !important;transition: background-color 0.2s, color 0.2s;}.leaflet-bar a:hover {background-color: var(--soft-surface) !important;color: var(--primary) !important;}/* Stats Cards Section */.stats-row {display: grid;grid-template-columns: repeat(3, 1fr);gap: 16px;}.stat-card {5 unmodified lines}.card-label {font-family: var(--font-display);font-size: 0.75rem;color: var(--text-muted);margin-bottom: 4px;text-transform: uppercase;font-weight: 700;}.card-value {font-family: var(--font-display);font-size: 1.6rem;font-weight: 800;color: var(--text-main);}.card-value .unit {font-size: 0.85rem;font-weight: 600;color: var(--text-muted);}/* Custom Risk Badges */.status-badge {display: inline-block;padding: 6px 16px;border-radius: 20px;font-size: 0.9rem;font-weight: 800;text-align: center;width: fit-content;}.status-badge.safe {background: #eef5f2;border: 2px solid var(--green);color: var(--primary);}.status-badge.warning {background: #fff9db;border: 2px solid var(--yellow);color: var(--secondary);}.status-badge.critical {background: #ffdad6;border: 2px solid var(--red);color: var(--red);}/* Composition bars (Waste composition) */.progress-item {margin-bottom: 1.2rem;}4 unmodified linesfont-size: 0.8rem;color: var(--text-muted);margin-bottom: 6px;font-family: var(--font-display);font-weight: 700;}.progress-bar-bg {width: 100%;height: 10px;background: var(--border-color);border-radius: 5px;overflow: hidden;opacity: 0.75;}.progress-bar-fill {height: 100%;border-radius: 5px;width: 0%;transition: width 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);}.progress-bar-fill.organic { background-color: var(--green); }.progress-bar-fill.plastic { background-color: var(--sky-blue); }.progress-bar-fill.paper { background-color: var(--yellow); }.progress-bar-fill.glass { background-color: var(--red); }.progress-bar-fill.textile { background-color: #a855f7; } /* Purple */.progress-bar-fill.metal { background-color: #94a3b8; } /* Steel gray *//* Live Weather Card */.weather-grid {display: flex;justify-content: space-between;align-items: center;background: var(--soft-surface);padding: 12px;border-radius: 8px;border: 2px solid var(--border-color);margin-bottom: 1rem;}.weather-temp {font-family: var(--font-display);font-size: 1.2rem;font-weight: 800;color: var(--text-main);}.weather-label {display: block;font-size: 0.75rem;color: var(--text-muted);font-weight: 700;}.weather-details {1 unmodified linefont-size: 0.75rem;text-align: right;line-height: 1.4;font-weight: 600;}.weather-details .highlight {color: var(--primary);}.event-box {padding: 10px 14px;background: #fffdf5;border-left: 4px solid var(--yellow);border-radius: 0 8px 8px 0;border-top: 2px solid var(--border-color);border-right: 2px solid var(--border-color);border-bottom: 2px solid var(--border-color);}.event-title {display: block;font-size: 0.75rem;font-weight: 800;color: var(--secondary);font-family: var(--font-display);margin-bottom: 4px;text-transform: uppercase;}.event-desc {font-size: 0.8rem;color: var(--text-main);font-weight: 500;}/* Logistics Cards */.logistics-grid {display: grid;grid-template-columns: 1fr 1fr;1 unmodified line}.log-item {background: var(--soft-surface);border: 2px solid var(--border-color);border-radius: 10px;padding: 10px;display: flex;flex-direction: column;}.log-label {font-family: var(--font-display);font-size: 0.7rem;color: var(--text-muted);text-transform: uppercase;font-weight: 700;margin-bottom: 4px;}.log-value {font-size: 0.95rem;font-weight: 800;color: var(--text-main);}.log-value.highlight {color: var(--primary);}/* Timeline slide-in & cards styling */.timeline-container {margin-top: 1.5rem;padding: 0 2.5rem;10 unmodified lines.timeline-card {min-width: 140px;background: #ffffff;border: 2px solid var(--border-color);border-radius: 12px;padding: 14px;display: flex;flex-direction: column;align-items: center;text-align: center;box-shadow: 0 4px 10px rgba(0, 107, 95, 0.02);transition: transform 0.25s cubic-bezier(0.25, 0.8, 0.25, 1),border-color 0.25s ease,box-shadow 0.25s ease;}.timeline-card:hover {transform: translateY(-4px);border-color: var(--primary);box-shadow: 0 10px 20px rgba(0, 107, 95, 0.06);}.timeline-date {font-family: var(--font-display);font-weight: 700;font-size: 0.75rem;color: var(--text-muted);margin-bottom: 6px;text-transform: uppercase;}.timeline-vol {font-family: var(--font-display);font-size: 1.15rem;font-weight: 800;color: var(--text-main);margin-bottom: 6px;}.timeline-status {font-size: 0.7rem;padding: 2px 8px;border-radius: 10px;font-weight: 800;}.timeline-status.safe { background: #eef5f2; color: var(--primary); }.timeline-status.warning { background: #fff9db; color: var(--secondary); }.timeline-status.critical { background: #ffdad6; color: var(--red); }.empty-timeline {width: 100%;4 unmodified linesfont-size: 0.9rem;}/* Hourly cells */.hourly-container {margin-top: 1.5rem;padding: 0 2.5rem;z-index: 5;position: relative;margin-bottom: 2.5rem;}.hourly-grid {display: grid;grid-template-columns: repeat(24, 1fr);gap: 4px;background: var(--soft-surface);border: 2px solid var(--border-color);padding: 10px;border-radius: 12px;overflow-x: auto;}7 unmodified lines.cell-block {width: 100%;height: 40px;border-radius: 6px;transition: opacity 0.3s;}.cell-block.low { background-color: rgba(74, 222, 128, 0.35); border: 2.5px solid var(--green); }.cell-block.medium { background-color: rgba(254, 208, 27, 0.35); border: 2.5px solid var(--yellow); }.cell-block.high { background-color: rgba(186, 26, 26, 0.35); border: 2.5px solid var(--red); }.cell-time {font-family: var(--font-mono);font-size: 8px;color: var(--text-muted);font-weight: 700;}/* Footer Section */footer {width: 100%;padding: 1.8rem;text-align: center;border-top: 2px solid var(--border-color);background: #ffffff;color: var(--text-muted);font-size: 0.75rem;font-family: var(--font-mono);font-weight: 600;margin-top: auto;}/* Keyframes pulse-indicator */@keyframes pulse-green {0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.4); }70% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }}@keyframes pulse-node {0% { transform: scale(0.9); opacity: 0.3; }70% { transform: scale(1.6); opacity: 0; }100% { transform: scale(0.9); opacity: 0; }}5 unmodified linesmargin-top: 6px;display: block;text-transform: uppercase;font-weight: 700;}.button-row {3 unmodified lines}.secondary-btn {background: var(--secondary-container) !important;color: #574500 !important;border: none;box-shadow: 0 4px 10px rgba(254, 208, 27, 0.2);}.secondary-btn:hover {background: #eec200 !important;box-shadow: 0 6px 14px rgba(254, 208, 27, 0.3) !important;}/* Single-Page Router View Transition */.page-container {display: none;opacity: 0;transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;padding: 1.5rem 2.5rem;flex: 1;z-index: 5;3 unmodified lines.page-container.active {display: block;opacity: 1;animation: slide-fade-in 0.4s forwards cubic-bezier(0.25, 0.8, 0.25, 1);}@keyframes slide-fade-in {from { opacity: 0; transform: translateY(12px); }to { opacity: 1; transform: translateY(0); }}/* Hero UI */.hero-section {display: grid;grid-template-columns: 1.25fr 0.75fr;gap: 24px;align-items: center;padding: 3rem 0;}7 unmodified lines.hero-content {display: flex;flex-direction: column;gap: 1.2rem;}.hero-title {font-family: var(--font-display);font-size: 3.2rem;font-weight: 800;letter-spacing: -0.02em;line-height: 1.15;background: linear-gradient(135deg, var(--primary) 30%, var(--secondary) 100%);-webkit-background-clip: text;-webkit-text-fill-color: transparent;}.hero-subtitle {font-size: 1.1rem;color: var(--text-muted);line-height: 1.6;font-family: var(--font-body);}.hero-actions {display: flex;gap: 12px;max-width: 440px;}.hero-stats-panel {display: flex;flex-direction: column;gap: 1rem;background: #ffffff !important;border: 2px solid var(--border-color) !important;}.hero-stat-grid {display: grid;grid-template-columns: 1fr 1fr;gap: 12px;}.hero-stat-card {background: var(--soft-surface);border: 2px solid var(--border-color);padding: 1.2rem;border-radius: 10px;display: flex;flex-direction: column;gap: 4px;1 unmodified line.h-stat-label {font-size: 0.75rem;font-family: var(--font-display);color: var(--text-muted);text-transform: uppercase;font-weight: 700;}.h-stat-value {font-size: 1.8rem;font-family: var(--font-display);font-weight: 800;color: var(--text-main);}/* Feature list grid */.features-section {padding: 2rem 0;}1 unmodified line.section-title {font-family: var(--font-display);font-size: 1.4rem;font-weight: 800;letter-spacing: -0.01em;margin-bottom: 2rem;color: var(--primary);display: flex;align-items: center;gap: 8px;}.section-title::before {content: '';display: inline-block;width: 5px;height: 22px;background: var(--secondary-container);border-radius: 2px;}.features-grid {6 unmodified linesdisplay: flex;flex-direction: column;gap: 1rem;transition: transform 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);}.feature-card:hover {1 unmodified line}.feature-icon {font-size: 2.2rem;font-weight: 800;color: var(--primary);opacity: 0.8;}.feature-name {font-family: var(--font-display);font-size: 1.1rem;font-weight: 700;color: var(--primary);}.feature-desc {2 unmodified linesline-height: 1.6;}/* Page headers */.page-header-section {padding: 2rem 0 1rem 0;}2 unmodified linesfont-size: 0.95rem;color: var(--text-muted);margin-top: 6px;font-weight: 500;}/* News page container layout */.news-grid {display: grid;grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));2 unmodified lines}.news-card {background: #ffffff;border: 2px solid var(--border-color);border-radius: 12px;padding: 1.6rem;display: flex;flex-direction: column;gap: 1rem;box-shadow: 0 4px 12px rgba(0, 107, 95, 0.02);transition: transform 0.25s cubic-bezier(0.25, 0.8, 0.25, 1),border-color 0.25s ease,box-shadow 0.25s ease;}.news-card:hover {transform: translateY(-4px);border-color: var(--primary);box-shadow: 0 12px 24px rgba(0, 107, 95, 0.08);}.news-card-header {3 unmodified lines}.news-source {font-family: var(--font-display);font-size: 0.75rem;font-weight: 700;background: #eef5f2;color: var(--primary);padding: 2px 10px;border-radius: 12px;border: 1px solid var(--border-color);}.news-date {font-family: var(--font-mono);font-size: 0.75rem;color: var(--text-muted);font-weight: 600;}.news-title {font-family: var(--font-display);font-size: 1.15rem;font-weight: 800;color: var(--text-main);line-height: 1.35;}.news-summary {6 unmodified linesmargin-top: auto;display: inline-flex;align-items: center;color: var(--primary);text-decoration: none;font-family: var(--font-display);font-size: 0.85rem;font-weight: 800;gap: 6px;transition: gap 0.2s;}2 unmodified linesgap: 10px;}/* Alerts Page container lists */.alerts-summary {margin-top: 1.5rem;}9 unmodified linesgrid-template-columns: 120px 180px 100px 1fr;gap: 1rem;align-items: center;background: #ffffff;border: 2px solid var(--border-color);padding: 1.1rem 1.6rem;border-radius: 12px;box-shadow: 0 4px 10px rgba(0, 107, 95, 0.01);transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);cursor: pointer;}3 unmodified lines}.alert-row:hover {background: var(--soft-surface) !important;border-color: var(--primary) !important;box-shadow: 0 8px 20px rgba(0, 107, 95, 0.06) !important;transform: translateX(6px);}1 unmodified linefont-family: var(--font-mono);font-size: 0.85rem;color: var(--text-muted);font-weight: 600;}.alert-location {font-family: var(--font-display);font-weight: 700;color: var(--text-main);}.alert-badge {font-family: var(--font-display);font-size: 0.75rem;font-weight: 800;padding: 4px 10px;border-radius: 12px;text-align: center;border: 2px solid transparent;}.alert-badge.critical {background: #ffdad6;color: var(--red);border-color: var(--red);}.alert-badge.warning {background: #fff9db;color: var(--secondary);border-color: var(--yellow);}.alert-desc {font-size: 0.85rem;color: var(--text-muted);font-weight: 500;}/* Custom Interactive pointer (Glow Cursor) */#cursor-dot,#cursor-ring {position: fixed;3 unmodified linesz-index: 10000;border-radius: 50%;display: none;}#cursor-dot {width: 6px;height: 6px;background: var(--primary);box-shadow: 0 0 6px var(--primary);}#cursor-ring {width: 40px;height: 40px;border: 2px solid var(--primary);opacity: 0.5;transition: width 0.22s cubic-bezier(0.25, 1, 0.5, 1),height 0.22s cubic-bezier(0.25, 1, 0.5, 1),border-color 0.22s ease,background-color 0.22s ease;}#cursor-ring.hover-state {width: 52px;height: 52px;border-color: var(--primary);background-color: rgba(0, 107, 95, 0.05);opacity: 0.8;}@media (pointer: coarse) {#cursor-dot, #cursor-ring { display: none !important; }* { cursor: auto !important; }}@media (pointer: fine) {body, a, button, select, input, [role="button"], .leaflet-interactive {cursor: none !important;}}/* Developer Credits styling */.developers-section {padding: 2.5rem 0;margin-top: 3.5rem;border-top: 2px solid var(--border-color);}.developers-grid {5 unmodified lines.developer-card {position: relative;background: #ffffff !important;border: 2px solid var(--border-color) !important;border-radius: 16px;padding: 2.2rem;text-align: center;box-shadow: 0 4px 12px rgba(0, 107, 95, 0.01);transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);overflow: hidden;}.developer-card::before {2 unmodified linestop: 0;left: 0;right: 0;height: 4px;background: linear-gradient(90deg, transparent, var(--primary), transparent);}.developer-card:hover {transform: translateY(-6px);border-color: var(--primary) !important;box-shadow: 0 12px 28px rgba(0, 107, 95, 0.08) !important;}.dev-role {font-size: 0.75rem;text-transform: uppercase;letter-spacing: 0.1em;color: var(--primary);font-weight: 800;margin-bottom: 0.6rem;font-family: var(--font-display);}.dev-name {font-size: 1.3rem;color: var(--text-main);font-weight: 800;margin-bottom: 0.8rem;font-family: var(--font-display);}.dev-desc {font-size: 0.85rem;color: var(--text-muted);line-height: 1.6;}/* Responsiveness adjustments */@media (max-width: 1200px) {.dashboard-grid {display: flex !important;flex-direction: column !important;gap: 24px !important;}.map-and-stats { order: -1 !important; }.control-panel { order: 0 !important; }.analysis-panel { order: 1 !important; }}@media (max-width: 992px) {16 unmodified linesflex-direction: column !important;gap: 1.2rem !important;padding: 1.2rem 1.5rem !important;}.logo-container {justify-content: center;}.nav-links {display: grid !important;grid-template-columns: repeat(3, 1fr) !important;gap: 4px !important;width: 100% !important;border-radius: 24px;padding: 4px;}.nav-btn {width: 100% !important;padding: 8px 2px !important;font-size: 0.75rem !important;text-align: center !important;}.page-container {padding: 1.2rem 1.5rem !important;}.stats-row {grid-template-columns: 1fr !important;}.hero-stat-grid {grid-template-columns: 1fr !important;1 unmodified line.hero-title {font-size: 2.2rem !important;}.map-panel {height: 340px !important;}.logistics-grid {grid-template-columns: 1fr !important;}.alert-row, .autopilot-row {display: flex !important;flex-direction: column !important;align-items: flex-start !important;gap: 8px !important;padding: 1.2rem 1.5rem !important;}}
frontend/app.js+3-3
frontend/index.html+1-1
frontend/style.css+497-619