File size: 4,711 Bytes
e8c4962
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
* { box-sizing: border-box; }
html, body, #root { height: 100%; margin: 0; }
body { font: 14px/1.45 system-ui, -apple-system, sans-serif; background: #0f172a; color: #e2e8f0; }

.app {
  display: grid;
  grid-template-columns: 380px 1fr;
  grid-template-rows: 48px 1fr;
  height: 100%;
}

header {
  grid-column: 1 / 3; grid-row: 1;
  display: flex; align-items: center; gap: 12px;
  padding: 0 14px;
  background: #1e293b; border-bottom: 1px solid #334155;
}
.brand { font-weight: 700; margin-right: auto; }
.conn { font-size: 12px; padding: 2px 10px; border-radius: 999px; }
.conn.on { background: #064e3b; color: #6ee7b7; }
.conn.off { background: #7f1d1d; color: #fca5a5; }

aside {
  grid-column: 1; grid-row: 2;
  overflow-y: auto; padding: 10px;
  display: flex; flex-direction: column; gap: 10px;
  border-right: 1px solid #334155;
}
.map { grid-column: 2; grid-row: 2; height: 100%; background: #0b1220; }

.panel { background: #1e293b; border: 1px solid #334155; border-radius: 10px; padding: 12px; }
.panel h2 { margin: 0 0 10px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: #94a3b8; }
.panel h3 { margin: 14px 0 8px; font-size: 13px; color: #cbd5e1; }

.muted { color: #94a3b8; }
.small { font-size: 12px; }
.error { color: #fca5a5; font-size: 13px; }

button {
  background: #2563eb; color: #fff; border: 0; border-radius: 8px;
  padding: 8px 12px; cursor: pointer; font: inherit;
}
button:hover:not(:disabled) { filter: brightness(1.12); }
button:disabled { opacity: .45; cursor: default; }
button.secondary { background: #334155; }
button.small-btn { padding: 3px 8px; font-size: 12px; }

input, select {
  background: #0f172a; color: #e2e8f0;
  border: 1px solid #334155; border-radius: 8px;
  padding: 8px; font: inherit; width: 100%; margin-bottom: 8px;
}

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; color: #94a3b8; font-weight: 600; font-size: 11px; text-transform: uppercase; }
th, td { padding: 6px 6px 6px 0; border-bottom: 1px solid #334155; vertical-align: top; }

.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #475569; }
.dot.online { background: #22c55e; }

.chip-label { color: var(--c, #64748b); font-weight: 600; font-size: 12px; }

.badge {
  display: inline-block; min-width: 20px; text-align: center;
  background: #dc2626; color: #fff; border-radius: 999px;
  font-size: 11px; padding: 2px 6px;
}

.sos-item {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 8px; border-radius: 8px; margin-bottom: 6px;
  background: rgba(127, 29, 29, .35); border-left: 3px solid #ef4444;
}
.sos-item.ack { background: rgba(120, 53, 15, .35); border-left-color: #f59e0b; }
.sos-item.resolved { background: #0f172a; border-left-color: #475569; opacity: .7; }

.tabs { display: flex; gap: 6px; }
.tabs button { flex: 1; background: #1e293b; color: #94a3b8; border: 1px solid #334155; }
.tabs button.active { background: #2563eb; color: #fff; border-color: #2563eb; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.chip {
  background: #0f172a; border: 1px solid var(--c, #334155);
  color: var(--c, #e2e8f0); border-radius: 999px; padding: 4px 12px;
}
.chip.active { background: var(--c, #2563eb); color: #fff; }

.floor {
  min-height: 42px; display: flex; align-items: center;
  padding: 8px 10px; margin-bottom: 10px;
  background: #0f172a; border-radius: 8px;
}
.talking { color: #f87171; font-weight: 600; }

.ptt {
  width: 100%; padding: 20px;
  font-size: 16px; font-weight: 700; border-radius: 12px;
  background: #dc2626; user-select: none; touch-action: none;
}
.ptt:active { background: #991b1b; }

.row { display: flex; gap: 8px; }

/* leaflet markers */
.marker-wrap { background: none; border: none; }
.marker {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--c, #3b82f6);
  border: 2px solid #e2e8f0;
  box-shadow: 0 0 4px rgba(0, 0, 0, .6);
}
.marker.offline { background: #475569; opacity: .55; }
.marker.sos { border-color: #ef4444; animation: pulse 1s infinite; }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(239, 68, 68, .7); }
  70%  { box-shadow: 0 0 0 14px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: #1e293b; color: #e2e8f0; }

/* login */
.login-wrap { height: 100%; display: flex; align-items: center; justify-content: center; }
.login {
  width: 320px; padding: 24px;
  background: #1e293b; border: 1px solid #334155; border-radius: 12px;
  display: flex; flex-direction: column;
}
.login h1 { font-size: 18px; margin: 0 0 16px; text-align: center; }