Spaces:
Sleeping
Sleeping
| @import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;800&display=swap'); | |
| :root { | |
| --bg-gradient: linear-gradient(135deg, #09090b 0%, #1e1b4b 100%); | |
| --glass-bg: rgba(15, 23, 42, 0.4); | |
| --glass-border: rgba(255, 255, 255, 0.08); | |
| --neon-blue: #38bdf8; | |
| --neon-blue-glow: rgba(56, 189, 248, 0.6); | |
| --neon-pink: #f472b6; | |
| --neon-pink-glow: rgba(244, 114, 182, 0.6); | |
| --neon-purple: #c084fc; | |
| --neon-purple-glow: rgba(192, 132, 252, 0.6); | |
| --neon-green: #34d399; | |
| --neon-green-glow: rgba(52, 211, 153, 0.6); | |
| --asphalt: #18181b; | |
| --line-color: rgba(255,255,255,0.15); | |
| --stop-line: #cbd5e1; | |
| } | |
| body { | |
| margin: 0; padding: 0; | |
| font-family: 'Outfit', sans-serif; | |
| background: var(--bg-gradient); | |
| color: white; | |
| min-height: 100vh; | |
| overflow-x: hidden; | |
| } | |
| * { box-sizing: border-box; } | |
| /* Moving background blobs */ | |
| .bg-blob { position: fixed; border-radius: 50%; filter: blur(100px); z-index: -1; opacity: 0.4; animation: float 10s infinite alternate; } | |
| .blob-1 { width: 400px; height: 400px; background: rgba(56, 189, 248, 0.2); top: 10%; left: 10%; } | |
| .blob-2 { width: 500px; height: 500px; background: rgba(192, 132, 252, 0.15); bottom: 10%; right: 10%; } | |
| .blob-3 { width: 300px; height: 300px; background: rgba(52, 211, 153, 0.15); bottom: 50%; left: 40%; animation-delay: -5s; } | |
| @keyframes float { 100% { transform: translateY(50px) translateX(50px); } } | |
| /* Layout */ | |
| .app-container { max-width: 1400px; margin: 0 auto; padding: 2rem; } | |
| .premium-header { | |
| display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; | |
| padding: 1.5rem 2rem; background: var(--glass-bg); border: 1px solid var(--glass-border); | |
| border-radius: 16px; backdrop-filter: blur(20px); | |
| } | |
| .header-brand { display: flex; align-items: center; gap: 1rem; } | |
| .icon-wrapper { background: rgba(56,189,248,0.1); color: var(--neon-blue); padding: 12px; border-radius: 12px; border: 1px solid rgba(56,189,248,0.2); } | |
| .header-brand h1 { margin: 0; font-size: 1.5rem; font-weight: 800; letter-spacing: 1px; } | |
| .header-brand p { margin: 0; color: #94a3b8; font-size: 0.875rem; font-weight: 300; } | |
| .header-status { display: flex; align-items: center; gap: 0.75rem; background: rgba(0,0,0,0.3); padding: 0.5rem 1.25rem; border-radius: 999px; border: 1px solid var(--glass-border); font-size: 0.875rem; font-weight: 600; letter-spacing: 1px; } | |
| .pulse-dot { width: 8px; height: 8px; background: var(--neon-green); border-radius: 50%; box-shadow: 0 0 10px var(--neon-green); animation: pulse 2s infinite; } | |
| @keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.3; } 100% { opacity: 1; } } | |
| .main-layout { display: grid; grid-template-columns: 1fr 380px; gap: 2rem; } | |
| /* INTERSECTION CENTERPIECE */ | |
| .intersection-wrapper { | |
| position: relative; border-radius: 24px; padding: 2rem; display: flex; flex-direction: column; align-items: center; | |
| background: rgba(0,0,0,0.2); border: 1px solid var(--glass-border); box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5); | |
| overflow: hidden; | |
| } | |
| .intersection-container { | |
| position: relative; width: 600px; height: 600px; background: #000; border-radius: 20px; | |
| box-shadow: inset 0 0 50px rgba(0,0,0,0.8); overflow: hidden; margin-bottom: 2rem; | |
| } | |
| .road { position: absolute; background: var(--asphalt); } | |
| .road-vertical { width: 160px; height: 100%; left: 50%; transform: translateX(-50%); border-left: 2px solid var(--line-color); border-right: 2px solid var(--line-color); } | |
| .road-horizontal { width: 100%; height: 160px; top: 50%; transform: translateY(-50%); border-top: 2px solid var(--line-color); border-bottom: 2px solid var(--line-color); } | |
| .lane-divider { position: absolute; } | |
| .vertical-left, .vertical-right { width: 2px; height: 100%; background: var(--line-color); background-image: linear-gradient(to bottom, var(--line-color) 50%, transparent 50%); background-size: 100% 30px; } | |
| .vertical-left { left: 53px; } | |
| .vertical-right { left: 106px; } | |
| .horizontal-top, .horizontal-bottom { width: 100%; height: 2px; background: var(--line-color); background-image: linear-gradient(to right, var(--line-color) 50%, transparent 50%); background-size: 30px 100%; } | |
| .horizontal-top { top: 53px; } | |
| .horizontal-bottom { top: 106px; } | |
| .stop-line { position: absolute; background: var(--stop-line); } | |
| .sl-top { width: 160px; height: 4px; top: 220px; } | |
| .sl-bottom { width: 160px; height: 4px; bottom: 220px; } | |
| .sl-left { height: 160px; width: 4px; left: 220px; } | |
| .sl-right { height: 160px; width: 4px; right: 220px; } | |
| .intersection-center { | |
| position: absolute; width: 160px; height: 160px; background: var(--asphalt); | |
| left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; | |
| display: flex; align-items: center; justify-content: center; | |
| } | |
| .center-logo { | |
| width: 80px; height: 80px; border-radius: 50%; border: 2px dashed rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center; | |
| } | |
| /* Premium Traffic Lights */ | |
| .traffic-fixture { | |
| position: absolute; display: flex; background: #27272a; padding: 8px; border-radius: 12px; | |
| gap: 8px; z-index: 10; border: 2px solid #3f3f46; box-shadow: 0 10px 20px rgba(0,0,0,0.5), inset 0 2px 5px rgba(255,255,255,0.1); | |
| } | |
| .t-light { width: 16px; height: 16px; border-radius: 50%; background: #000; box-shadow: inset 0 2px 4px rgba(0,0,0,0.8); transition: all 0.3s; } | |
| .t-light.red.active { background: #ef4444; box-shadow: 0 0 20px #ef4444, inset 0 0 5px #fff; } | |
| .t-light.green.active { background: #10b981; box-shadow: 0 0 20px #10b981, inset 0 0 5px #fff; } | |
| .tf-north { flex-direction: column; top: 120px; left: 140px; } | |
| .tf-south { flex-direction: column; bottom: 120px; right: 140px; } | |
| .tf-east { top: 140px; right: 120px; } | |
| .tf-west { bottom: 140px; left: 120px; } | |
| /* Vehicles */ | |
| .queue { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 5; pointer-events: none; } | |
| .car { position: absolute; border-radius: 6px; display: flex; justify-content: center; align-items: center; } | |
| .car-glow { width: 100%; height: 100%; border-radius: inherit; } | |
| .car-n { width: 22px; height: 40px; } | |
| .car-n .car-glow { background: linear-gradient(180deg, var(--neon-blue) 0%, #1e40af 100%); box-shadow: 0 0 15px var(--neon-blue-glow); } | |
| .car-n.straight { bottom: calc(50% + 80px + (var(--idx) * 45px)); left: calc(50% - 66px); } | |
| .car-n.left-turn { bottom: calc(50% + 80px + (var(--idx) * 45px)); left: calc(50% - 14px); } | |
| .car-s { width: 22px; height: 40px; } | |
| .car-s .car-glow { background: linear-gradient(0deg, var(--neon-pink) 0%, #9d174d 100%); box-shadow: 0 0 15px var(--neon-pink-glow); } | |
| .car-s.straight { top: calc(50% + 80px + (var(--idx) * 45px)); left: calc(50% + 44px); } | |
| .car-s.left-turn { top: calc(50% + 80px + (var(--idx) * 45px)); left: calc(50% - 8px); } | |
| .car-e { width: 40px; height: 22px; } | |
| .car-e .car-glow { background: linear-gradient(270deg, var(--neon-purple) 0%, #5b21b6 100%); box-shadow: 0 0 15px var(--neon-purple-glow); } | |
| .car-e.straight { left: calc(50% + 80px + (var(--idx) * 45px)); top: calc(50% - 66px); } | |
| .car-e.left-turn { left: calc(50% + 80px + (var(--idx) * 45px)); top: calc(50% - 14px); } | |
| .car-w { width: 40px; height: 22px; } | |
| .car-w .car-glow { background: linear-gradient(90deg, var(--neon-green) 0%, #065f46 100%); box-shadow: 0 0 15px var(--neon-green-glow); } | |
| .car-w.straight { right: calc(50% + 80px + (var(--idx) * 45px)); top: calc(50% + 44px); } | |
| .car-w.left-turn { right: calc(50% + 80px + (var(--idx) * 45px)); top: calc(50% - 8px); } | |
| /* Animations */ | |
| @keyframes pSV { to { transform: translateY(300px); opacity: 0; } } | |
| @keyframes pSVU { to { transform: translateY(-300px); opacity: 0; } } | |
| @keyframes pSH { to { transform: translateX(-300px); opacity: 0; } } | |
| @keyframes pSHR { to { transform: translateX(300px); opacity: 0; } } | |
| @keyframes tLN { to { transform: translate(150px, 150px) rotate(-90deg); opacity: 0; } } | |
| @keyframes tLS { to { transform: translate(-150px, -150px) rotate(-90deg); opacity: 0; } } | |
| @keyframes tLE { to { transform: translate(-150px, 150px) rotate(-90deg); opacity: 0; } } | |
| @keyframes tLW { to { transform: translate(150px, -150px) rotate(-90deg); opacity: 0; } } | |
| .car-n.straight.animating { animation: pSV 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards; } | |
| .car-n.left-turn.animating { animation: tLN 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards; } | |
| .car-s.straight.animating { animation: pSVU 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards; } | |
| .car-s.left-turn.animating { animation: tLS 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards; } | |
| .car-e.straight.animating { animation: pSH 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards; } | |
| .car-e.left-turn.animating { animation: tLE 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards; } | |
| .car-w.straight.animating { animation: pSHR 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards; } | |
| .car-w.left-turn.animating { animation: tLW 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards; } | |
| /* Control Bar */ | |
| .premium-controls { | |
| display: flex; gap: 1rem; background: rgba(0,0,0,0.4); padding: 1rem 2rem; border-radius: 999px; | |
| border: 1px solid var(--glass-border); box-shadow: 0 10px 30px rgba(0,0,0,0.5); backdrop-filter: blur(10px); | |
| } | |
| .p-btn { | |
| display: flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.5rem; border: none; border-radius: 999px; | |
| font-weight: 700; cursor: pointer; transition: all 0.2s; font-family: 'Outfit', sans-serif; letter-spacing: 1px; | |
| } | |
| .btn-play { background: var(--neon-blue); color: #000; box-shadow: 0 0 15px var(--neon-blue-glow); } | |
| .btn-play:hover { transform: translateY(-2px); box-shadow: 0 0 25px var(--neon-blue-glow); } | |
| .btn-pause { background: var(--neon-pink); color: #000; box-shadow: 0 0 15px var(--neon-pink-glow); } | |
| .btn-ghost { background: transparent; color: white; border: 1px solid rgba(255,255,255,0.2); } | |
| .btn-ghost:hover:not(:disabled) { background: rgba(255,255,255,0.1); } | |
| .btn-ghost:disabled { opacity: 0.3; cursor: not-allowed; } | |
| .control-divider { width: 1px; background: rgba(255,255,255,0.1); margin: 0 0.5rem; } | |
| .p-select { background: transparent; color: white; border: none; outline: none; font-family: 'Outfit'; font-weight: 600; cursor: pointer; } | |
| .p-select option { background: #18181b; } | |
| /* Sidebar Metrics */ | |
| .metrics-sidebar { display: flex; flex-direction: column; gap: 1.5rem; } | |
| .glass-card { background: var(--glass-bg); backdrop-filter: blur(20px); border: 1px solid var(--glass-border); border-radius: 20px; padding: 1.5rem; } | |
| .glass-card h3 { margin: 0 0 1rem 0; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 2px; color: #94a3b8; } | |
| .primary-card { background: linear-gradient(135deg, rgba(56, 189, 248, 0.1) 0%, rgba(15, 23, 42, 0.4) 100%); border: 1px solid rgba(56,189,248,0.3); } | |
| .big-metric { display: flex; flex-direction: column; margin-bottom: 1rem; } | |
| .big-metric .value { font-size: 3.5rem; font-weight: 800; line-height: 1; color: var(--neon-blue); text-shadow: 0 0 20px var(--neon-blue-glow); } | |
| .big-metric .label { font-size: 0.875rem; color: #cbd5e1; margin-top: 0.5rem; font-weight: 300; } | |
| .mini-progress { width: 100%; height: 4px; background: rgba(0,0,0,0.3); border-radius: 2px; overflow: hidden; margin-bottom: 0.5rem; } | |
| .mini-progress .fill { height: 100%; background: var(--neon-blue); box-shadow: 0 0 10px var(--neon-blue); transition: width 0.3s; } | |
| .step-count { font-size: 0.75rem; color: #64748b; font-weight: 600; } | |
| .reward-value { font-size: 2.5rem; font-weight: 800; } | |
| .reward-value.positive { color: var(--neon-green); text-shadow: 0 0 15px var(--neon-green-glow); } | |
| .reward-value.negative { color: var(--neon-pink); text-shadow: 0 0 15px var(--neon-pink-glow); } | |
| .reward-desc { font-size: 0.875rem; color: #94a3b8; margin: 0.5rem 0 0 0; line-height: 1.4; } | |
| .telemetry-grid { display: flex; flex-direction: column; gap: 0.75rem; } | |
| .t-item { background: rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.05); padding: 1rem; border-radius: 12px; display: flex; justify-content: space-between; align-items: center; transition: all 0.3s; } | |
| .t-item.active-lane { background: rgba(52, 211, 153, 0.1); border-color: rgba(52, 211, 153, 0.3); box-shadow: 0 0 20px rgba(52, 211, 153, 0.1); } | |
| .t-head { font-weight: 700; letter-spacing: 1px; color: #cbd5e1; } | |
| .t-item.active-lane .t-head { color: var(--neon-green); } | |
| .t-data { font-family: monospace; font-size: 1.1rem; } | |
| .t-data span { color: #475569; margin: 0 0.5rem; } | |