body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  background: #f2f6fc;
}

.layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 240px;
  background: linear-gradient(180deg,#0b5bff,#002f87);
  color: #fff;
  padding: 20px;
}

.sidebar .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 30px;
}

.sidebar ul {
  list-style: none;
  padding: 0;
}

.sidebar li {
  padding: 12px;
  border-radius: 10px;
  cursor: pointer;
  margin-bottom: 8px;
}

.sidebar li:hover,
.sidebar li.active {
  background: rgba(255,255,255,0.15);
}

/* Main */
main {
  flex: 1;
  padding: 20px;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Cards */
.stat {
  color: #fff;
  padding: 20px;
  border-radius: 16px;
}

.stat.blue { background: linear-gradient(135deg,#2196f3,#0d47a1); }
.stat.cyan { background: linear-gradient(135deg,#00bcd4,#006064); }
.stat.navy { background: linear-gradient(135deg,#3f51b5,#1a237e); }
.stat.dark { background: linear-gradient(135deg,#263238,#000); }

.card {
  border-radius: 16px;
  box-shadow: 0 10px 20px rgba(0,0,0,.08);
}

video {
  width: 100%;
  border-radius: 12px;
}
#map{
  height: 560px;
  border-radius: 16px;
  overflow: hidden;
}

.jsonbox{
  background: #0b1220;
  color: #e6edf3;
  padding: 12px;
  border-radius: 12px;
  font-size: 12px;
  max-height: 240px;
  overflow: auto;
}

.preview img, .preview video{
  max-height: 360px;
  object-fit: contain;
  background: #000;
}