|
|
:root { |
|
|
--bg-color: #040408; |
|
|
--panel-bg: rgba(20, 20, 30, 0.6); |
|
|
--glass-border: rgba(255, 255, 255, 0.1); |
|
|
--primary-hsl: 250, 100%, 65%; |
|
|
--primary-color: hsl(var(--primary-hsl)); |
|
|
--accent-color: #00f3ff; |
|
|
--text-main: #ffffff; |
|
|
--text-muted: #8892b0; |
|
|
--font-family: 'Outfit', sans-serif; |
|
|
} |
|
|
|
|
|
* { |
|
|
box-sizing: border-box; |
|
|
margin: 0; |
|
|
padding: 0; |
|
|
} |
|
|
|
|
|
body { |
|
|
background-color: var(--bg-color); |
|
|
background-image: |
|
|
radial-gradient(circle at 10% 20%, rgba(76, 29, 149, 0.2) 0%, transparent 20%), |
|
|
radial-gradient(circle at 90% 80%, rgba(0, 243, 255, 0.1) 0%, transparent 20%); |
|
|
color: var(--text-main); |
|
|
font-family: var(--font-family); |
|
|
min-height: 100vh; |
|
|
overflow-x: hidden; |
|
|
|
|
|
overflow-y: auto; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
.page-wrapper { |
|
|
max-width: 1400px; |
|
|
margin: 0 auto; |
|
|
padding: 2rem; |
|
|
} |
|
|
|
|
|
|
|
|
.hero { |
|
|
text-align: center; |
|
|
padding: 3rem 1rem; |
|
|
margin-bottom: 2rem; |
|
|
} |
|
|
|
|
|
.hero h1 { |
|
|
font-size: 3.5rem; |
|
|
margin-bottom: 1rem; |
|
|
background: linear-gradient(135deg, #fff 0%, #b8b8b8 100%); |
|
|
-webkit-background-clip: text; |
|
|
background-clip: text; |
|
|
-webkit-text-fill-color: transparent; |
|
|
} |
|
|
|
|
|
.hero p { |
|
|
font-size: 1.2rem; |
|
|
color: var(--text-muted); |
|
|
max-width: 600px; |
|
|
margin: 0 auto; |
|
|
line-height: 1.6; |
|
|
} |
|
|
|
|
|
|
|
|
.app-container { |
|
|
display: grid; |
|
|
grid-template-columns: 350px 1fr; |
|
|
gap: 2rem; |
|
|
height: 800px; |
|
|
|
|
|
margin-bottom: 4rem; |
|
|
} |
|
|
|
|
|
|
|
|
@media (max-width: 900px) { |
|
|
.app-container { |
|
|
grid-template-columns: 1fr; |
|
|
height: auto; |
|
|
} |
|
|
|
|
|
.sidebar { |
|
|
width: 100%; |
|
|
margin-bottom: 2rem; |
|
|
} |
|
|
|
|
|
.viewport { |
|
|
height: 500px; |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
.sidebar { |
|
|
width: 100%; |
|
|
|
|
|
height: 100%; |
|
|
padding: 0; |
|
|
z-index: 10; |
|
|
position: relative; |
|
|
display: flex; |
|
|
flex-direction: column; |
|
|
} |
|
|
|
|
|
.glass-panel { |
|
|
background: var(--panel-bg); |
|
|
backdrop-filter: blur(16px); |
|
|
-webkit-backdrop-filter: blur(16px); |
|
|
border: 1px solid var(--glass-border); |
|
|
border-radius: 24px; |
|
|
padding: 2rem; |
|
|
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4); |
|
|
height: 100%; |
|
|
overflow-y: auto; |
|
|
|
|
|
} |
|
|
|
|
|
h1 { |
|
|
font-size: 1.8rem; |
|
|
font-weight: 600; |
|
|
margin-bottom: 0.5rem; |
|
|
background: linear-gradient(135deg, #fff 0%, #a5a5a5 100%); |
|
|
-webkit-background-clip: text; |
|
|
background-clip: text; |
|
|
-webkit-text-fill-color: transparent; |
|
|
} |
|
|
|
|
|
.subtitle { |
|
|
color: var(--text-muted); |
|
|
font-size: 0.9rem; |
|
|
margin-bottom: 2rem; |
|
|
text-transform: uppercase; |
|
|
letter-spacing: 2px; |
|
|
} |
|
|
|
|
|
.control-group { |
|
|
margin-bottom: 1.5rem; |
|
|
} |
|
|
|
|
|
label { |
|
|
display: block; |
|
|
margin-bottom: 0.5rem; |
|
|
color: var(--text-muted); |
|
|
font-size: 0.9rem; |
|
|
} |
|
|
|
|
|
.input-wrapper input { |
|
|
width: 100%; |
|
|
padding: 12px 16px; |
|
|
background: rgba(0, 0, 0, 0.3); |
|
|
border: 1px solid var(--glass-border); |
|
|
border-radius: 12px; |
|
|
color: white; |
|
|
font-family: var(--font-family); |
|
|
font-size: 1rem; |
|
|
transition: all 0.3s ease; |
|
|
} |
|
|
|
|
|
.input-wrapper input:focus { |
|
|
outline: none; |
|
|
border-color: var(--accent-color); |
|
|
box-shadow: 0 0 15px rgba(0, 243, 255, 0.2); |
|
|
} |
|
|
|
|
|
button { |
|
|
width: 100%; |
|
|
padding: 14px; |
|
|
border-radius: 12px; |
|
|
font-family: var(--font-family); |
|
|
font-weight: 600; |
|
|
font-size: 1rem; |
|
|
cursor: pointer; |
|
|
border: none; |
|
|
margin-bottom: 1rem; |
|
|
position: relative; |
|
|
overflow: hidden; |
|
|
transition: transform 0.2s; |
|
|
} |
|
|
|
|
|
button:active { |
|
|
transform: scale(0.98); |
|
|
} |
|
|
|
|
|
.primary-btn { |
|
|
background: linear-gradient(135deg, var(--primary-color), #8a2be2); |
|
|
color: white; |
|
|
box-shadow: 0 4px 15px rgba(138, 43, 226, 0.4); |
|
|
} |
|
|
|
|
|
.primary-btn:hover { |
|
|
box-shadow: 0 6px 20px rgba(138, 43, 226, 0.6); |
|
|
} |
|
|
|
|
|
.primary-btn:disabled, |
|
|
.primary-btn.disabled { |
|
|
background: #444; |
|
|
color: #888; |
|
|
box-shadow: none; |
|
|
cursor: not-allowed; |
|
|
transform: none; |
|
|
} |
|
|
|
|
|
.secondary-btn { |
|
|
background: rgba(255, 255, 255, 0.1); |
|
|
color: var(--text-main); |
|
|
} |
|
|
|
|
|
.secondary-btn:hover:not(:disabled) { |
|
|
background: rgba(255, 255, 255, 0.2); |
|
|
} |
|
|
|
|
|
.secondary-btn:disabled { |
|
|
opacity: 0.5; |
|
|
cursor: not-allowed; |
|
|
} |
|
|
|
|
|
.stats { |
|
|
margin-top: 1rem; |
|
|
padding-top: 1rem; |
|
|
border-top: 1px solid var(--glass-border); |
|
|
display: grid; |
|
|
grid-template-columns: 1fr 1fr; |
|
|
gap: 1rem; |
|
|
} |
|
|
|
|
|
.stat-item { |
|
|
display: flex; |
|
|
flex-direction: column; |
|
|
} |
|
|
|
|
|
.stat-item .label { |
|
|
font-size: 0.75rem; |
|
|
color: var(--text-muted); |
|
|
text-transform: uppercase; |
|
|
} |
|
|
|
|
|
.stat-item .value { |
|
|
font-size: 1.2rem; |
|
|
font-weight: 600; |
|
|
color: var(--accent-color); |
|
|
} |
|
|
|
|
|
.viewport { |
|
|
flex: 1; |
|
|
position: relative; |
|
|
display: flex; |
|
|
align-items: center; |
|
|
justify-content: center; |
|
|
padding: 2rem; |
|
|
} |
|
|
|
|
|
#canvas-wrapper { |
|
|
width: 100%; |
|
|
height: 100%; |
|
|
position: relative; |
|
|
border-radius: 24px; |
|
|
overflow: hidden; |
|
|
background: rgba(0, 0, 0, 0.2); |
|
|
border: 1px solid var(--glass-border); |
|
|
box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.5); |
|
|
} |
|
|
|
|
|
canvas { |
|
|
display: block; |
|
|
width: 100%; |
|
|
height: 100%; |
|
|
} |
|
|
|
|
|
|
|
|
.legend { |
|
|
margin-top: 2rem; |
|
|
border-top: 1px solid var(--glass-border); |
|
|
padding-top: 1.5rem; |
|
|
} |
|
|
|
|
|
.legend h3 { |
|
|
font-size: 0.85rem; |
|
|
text-transform: uppercase; |
|
|
color: var(--text-muted); |
|
|
letter-spacing: 1.5px; |
|
|
margin-bottom: 1rem; |
|
|
} |
|
|
|
|
|
.legend-item { |
|
|
display: flex; |
|
|
align-items: center; |
|
|
margin-bottom: 0.8rem; |
|
|
font-size: 0.9rem; |
|
|
color: var(--text-main); |
|
|
} |
|
|
|
|
|
.legend-item .icon { |
|
|
width: 12px; |
|
|
height: 12px; |
|
|
border-radius: 50%; |
|
|
margin-right: 12px; |
|
|
display: inline-block; |
|
|
box-shadow: 0 0 5px rgba(0, 0, 0, 0.5); |
|
|
} |
|
|
|
|
|
.legend-item .icon.gateway { |
|
|
background: #00f3ff; |
|
|
box-shadow: 0 0 8px #00f3ff; |
|
|
} |
|
|
|
|
|
.legend-item .icon.head { |
|
|
background: transparent; |
|
|
border: 2px solid var(--primary-color); |
|
|
box-shadow: 0 0 10px var(--primary-color); |
|
|
width: 14px; |
|
|
height: 14px; |
|
|
} |
|
|
|
|
|
.legend-item .icon.high-batt { |
|
|
background: #00ff00; |
|
|
} |
|
|
|
|
|
.legend-item .icon.med-batt { |
|
|
background: #ffff00; |
|
|
} |
|
|
|
|
|
.legend-item .icon.low-batt { |
|
|
background: #ff9900; |
|
|
} |
|
|
|
|
|
.legend-item .icon.dead { |
|
|
width: 10px; |
|
|
height: 10px; |
|
|
background: transparent; |
|
|
position: relative; |
|
|
} |
|
|
|
|
|
.legend-item .icon.dead::before, |
|
|
.legend-item .icon.dead::after { |
|
|
content: ''; |
|
|
position: absolute; |
|
|
top: 50%; |
|
|
left: 50%; |
|
|
width: 100%; |
|
|
height: 2px; |
|
|
background: red; |
|
|
} |
|
|
|
|
|
.legend-item .icon.dead::before { |
|
|
transform: translate(-50%, -50%) rotate(45deg); |
|
|
} |
|
|
|
|
|
.legend-item .icon.dead::after { |
|
|
transform: translate(-50%, -50%) rotate(-45deg); |
|
|
} |
|
|
|
|
|
|
|
|
.analytics-container { |
|
|
max-width: 1200px; |
|
|
margin: 4rem auto; |
|
|
background: rgba(10, 10, 20, 0.6); |
|
|
border: 1px solid var(--glass-border); |
|
|
border-radius: 24px; |
|
|
padding: 3rem; |
|
|
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5); |
|
|
} |
|
|
|
|
|
.analytics-header { |
|
|
text-align: center; |
|
|
margin-bottom: 2rem; |
|
|
} |
|
|
|
|
|
.analytics-header h2 { |
|
|
font-size: 2rem; |
|
|
background: linear-gradient(90deg, #00f3ff, #00ff00); |
|
|
-webkit-background-clip: text; |
|
|
background-clip: text; |
|
|
-webkit-text-fill-color: transparent; |
|
|
margin-bottom: 0.5rem; |
|
|
} |
|
|
|
|
|
.analytics-header p { |
|
|
color: var(--text-muted); |
|
|
} |
|
|
|
|
|
.analytics-content { |
|
|
display: grid; |
|
|
grid-template-columns: 1fr 2fr; |
|
|
gap: 2rem; |
|
|
align-items: start; |
|
|
} |
|
|
|
|
|
|
|
|
.upload-box { |
|
|
border: 2px dashed var(--glass-border); |
|
|
border-radius: 16px; |
|
|
padding: 2rem; |
|
|
text-align: center; |
|
|
cursor: pointer; |
|
|
transition: all 0.3s; |
|
|
background: rgba(255, 255, 255, 0.02); |
|
|
} |
|
|
|
|
|
.upload-box:hover { |
|
|
border-color: var(--accent-color); |
|
|
background: rgba(0, 243, 255, 0.05); |
|
|
} |
|
|
|
|
|
.upload-box .icon { |
|
|
display: block; |
|
|
width: 48px; |
|
|
height: 48px; |
|
|
margin: 0 auto 1rem; |
|
|
background: var(--text-muted); |
|
|
|
|
|
mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='17 8 12 3 7 8'/%3E%3Cline x1='12' y1='3' x2='12' y2='15'/%3E%3C/svg%3E") no-repeat center; |
|
|
-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='17 8 12 3 7 8'/%3E%3Cline x1='12' y1='3' x2='12' y2='15'/%3E%3C/svg%3E") no-repeat center; |
|
|
background-color: var(--accent-color); |
|
|
} |
|
|
|
|
|
.status-box { |
|
|
margin-top: 1rem; |
|
|
text-align: center; |
|
|
color: var(--text-muted); |
|
|
font-size: 0.9rem; |
|
|
} |
|
|
|
|
|
|
|
|
.video-feed-wrapper { |
|
|
width: 100%; |
|
|
aspect-ratio: 16/9; |
|
|
background: #000; |
|
|
border-radius: 16px; |
|
|
overflow: hidden; |
|
|
position: relative; |
|
|
border: 1px solid var(--glass-border); |
|
|
box-shadow: 0 0 30px rgba(0, 243, 255, 0.1); |
|
|
} |
|
|
|
|
|
.video-placeholder { |
|
|
display: flex; |
|
|
align-items: center; |
|
|
justify-content: center; |
|
|
height: 100%; |
|
|
color: var(--text-muted); |
|
|
background: radial-gradient(circle at center, #111 0%, #000 100%); |
|
|
} |
|
|
|
|
|
#detectionFeed { |
|
|
width: 100%; |
|
|
height: 100%; |
|
|
object-fit: contain; |
|
|
} |
|
|
|
|
|
@media (max-width: 900px) { |
|
|
.analytics-content { |
|
|
grid-template-columns: 1fr; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.dashboard-panel { |
|
|
margin-top: 1rem; |
|
|
background: var(--panel-bg); |
|
|
border: 1px solid var(--glass-border); |
|
|
border-radius: 16px; |
|
|
padding: 1.5rem; |
|
|
backdrop-filter: blur(12px); |
|
|
-webkit-backdrop-filter: blur(12px); |
|
|
display: flex; |
|
|
flex-direction: column; |
|
|
gap: 1.5rem; |
|
|
} |
|
|
|
|
|
.dashboard-panel h3 { |
|
|
font-size: 1.1rem; |
|
|
color: var(--text-main); |
|
|
border-bottom: 1px solid var(--glass-border); |
|
|
padding-bottom: 0.5rem; |
|
|
margin-bottom: 0.5rem; |
|
|
} |
|
|
|
|
|
.dashboard-grid { |
|
|
display: grid; |
|
|
grid-template-columns: repeat(2, 1fr); |
|
|
gap: 1rem; |
|
|
} |
|
|
|
|
|
.dash-card { |
|
|
background: rgba(255, 255, 255, 0.05); |
|
|
border-radius: 12px; |
|
|
padding: 1rem; |
|
|
text-align: center; |
|
|
border: 1px solid var(--glass-border); |
|
|
} |
|
|
|
|
|
.dash-label { |
|
|
display: block; |
|
|
font-size: 0.8rem; |
|
|
color: var(--text-muted); |
|
|
margin-bottom: 0.5rem; |
|
|
} |
|
|
|
|
|
.dash-value { |
|
|
font-size: 1.5rem; |
|
|
font-weight: 700; |
|
|
color: #ff4444; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
.dead-nodes-list-container { |
|
|
max-height: 150px; |
|
|
overflow-y: auto; |
|
|
background: rgba(0, 0, 0, 0.2); |
|
|
border-radius: 8px; |
|
|
padding: 0.5rem; |
|
|
} |
|
|
|
|
|
.dead-nodes-list-container h4 { |
|
|
font-size: 0.9rem; |
|
|
color: var(--text-muted); |
|
|
margin-bottom: 0.5rem; |
|
|
position: sticky; |
|
|
top: 0; |
|
|
background: rgba(24, 24, 30, 0.9); |
|
|
padding: 0.2rem 0; |
|
|
} |
|
|
|
|
|
.dead-nodes-list { |
|
|
list-style: none; |
|
|
padding: 0; |
|
|
} |
|
|
|
|
|
.dead-node-item { |
|
|
display: flex; |
|
|
justify-content: space-between; |
|
|
padding: 0.4rem 0.8rem; |
|
|
border-bottom: 1px solid var(--glass-border); |
|
|
font-size: 0.85rem; |
|
|
} |
|
|
|
|
|
.dead-node-item:last-child { |
|
|
border-bottom: none; |
|
|
} |
|
|
|
|
|
.dead-node-id { |
|
|
color: #ff4444; |
|
|
font-weight: 600; |
|
|
} |
|
|
|
|
|
.dead-node-time { |
|
|
color: var(--text-muted); |
|
|
} |