/* RID 无人机实时监控平台样式 */
* { margin:0; padding:0; box-sizing:border-box; }
html,body { height:100%; font-family:"Microsoft YaHei",Arial,sans-serif; background:#0b1220; color:#e5eefb; }
a { color:#7db4ff; text-decoration:none; }

/* 登录 */
.login-body { display:flex; align-items:center; justify-content:center;
  background:radial-gradient(1200px 600px at 70% -10%,#16305c 0,#0b1220 60%); }
.login-box { width:380px; background:#111c30; border:1px solid #233b63; border-radius:14px;
  padding:38px 34px; box-shadow:0 24px 60px rgba(0,0,0,.45); text-align:center; }
.login-logo { width:64px;height:64px;line-height:64px;margin:0 auto 14px;border-radius:16px;
  background:linear-gradient(135deg,#2f7bff,#19c3a5);font-weight:800;font-size:22px;letter-spacing:1px; }
.login-box h1 { font-size:20px; font-weight:700; }
.login-sub { color:#8aa3c4; font-size:12px; margin:8px 0 24px; }
.login-box input { width:100%; height:44px; margin-bottom:14px; padding:0 14px; border-radius:9px;
  border:1px solid #2c466e; background:#0d182b; color:#e5eefb; font-size:14px; outline:none; }
.login-box input:focus { border-color:#2f7bff; }
.login-box button { width:100%; height:46px; border:0; border-radius:9px; cursor:pointer;
  background:linear-gradient(135deg,#2f7bff,#19c3a5); color:#fff; font-size:16px; font-weight:700; }
.login-err { background:#4a1d24; border:1px solid #7f3340; color:#ffb4be; padding:9px;
  border-radius:8px; font-size:13px; margin-bottom:14px; }
.login-foot { margin-top:22px; color:#5f789c; font-size:11px; line-height:1.8; }

/* 主框架 */
.topbar { height:56px; display:flex; align-items:center; padding:0 22px; gap:26px;
  background:#0f1a2e; border-bottom:1px solid #223a5e; }
.topbar .brand { font-weight:800; font-size:17px; letter-spacing:1px; }
.topbar .brand span { color:#19c3a5; }
.topbar nav a { color:#9db6d9; font-size:14px; padding:6px 4px; margin-right:14px; }
.topbar nav a.on, .topbar nav a:hover { color:#fff; }
.topbar .spacer { flex:1; }
.topbar .clock { color:#8aa3c4; font-size:13px; font-variant-numeric:tabular-nums; }
.topbar .logout { color:#8aa3c4; font-size:13px; }

.wrap { display:flex; height:calc(100% - 56px); }
#map { flex:1; height:100%; background:#0a1422; }
.side { width:340px; background:#0f1a2e; border-left:1px solid #223a5e; overflow-y:auto; }
.panel { padding:14px 16px; border-bottom:1px solid #1c3050; }
.panel h3 { font-size:13px; color:#7db4ff; margin-bottom:10px; font-weight:700; display:flex; justify-content:space-between; }
.panel h3 em { font-style:normal; color:#19c3a5; }
.stat-row { display:flex; gap:10px; margin-bottom:10px; }
.stat { flex:1; background:#13233c; border:1px solid #223a5e; border-radius:10px; padding:10px; text-align:center; }
.stat b { display:block; font-size:24px; font-variant-numeric:tabular-nums; }
.stat i { font-style:normal; font-size:11px; color:#8aa3c4; }
.stat.warn b { color:#ff6b6b; }
.stat.ok b { color:#19c3a5; }

ul.drone-list,ul.alert-list { list-style:none; }
ul.drone-list li { padding:9px 8px; border-radius:8px; cursor:pointer; font-size:12.5px; line-height:1.7;
  border:1px solid transparent; }
ul.drone-list li:hover, ul.drone-list li.sel { background:#16294a; border-color:#2f5596; }
ul.drone-list li .nm { font-weight:700; display:flex; justify-content:space-between; }
ul.drone-list li .nm .st { font-weight:400; font-size:11px; padding:1px 7px; border-radius:9px; }
.st.live { background:#10382c; color:#3ddc97; }
.st.stale { background:#3a2f16; color:#ffc861; }
ul.drone-list li .meta { color:#8aa3c4; }
ul.alert-list li { padding:8px 10px; margin-bottom:8px; border-radius:8px; font-size:12.5px; line-height:1.6;
  background:#2a1722; border-left:3px solid #ff6b6b; }
ul.alert-list li.warn { background:#2e2513; border-left-color:#ffc861; }
ul.alert-list li .t { color:#8aa3c4; font-size:11px; }
.empty { color:#5f789c; font-size:12px; text-align:center; padding:14px 0; }

.leaflet-popup-content-wrapper { background:#111c30; color:#e5eefb; border-radius:10px; }
.leaflet-popup-tip { background:#111c30; }
.popup { font-size:12.5px; line-height:1.9; min-width:210px; }
.popup b { color:#19c3a5; }
.popup h4 { font-size:14px; margin-bottom:6px; word-break:break-all; }
.popup button { margin-top:8px; background:#2f7bff; border:0; color:#fff; padding:6px 14px;
  border-radius:7px; cursor:pointer; font-size:12px; }

/* 数据表格页 */
.page { padding:22px 26px; }
.page h2 { font-size:18px; margin-bottom:16px; }
table.grid { width:100%; border-collapse:collapse; background:#0f1a2e; border-radius:10px; overflow:hidden; }
table.grid th, table.grid td { padding:10px 12px; font-size:13px; border-bottom:1px solid #1c3050; text-align:left; }
table.grid th { background:#13233c; color:#7db4ff; font-weight:700; white-space:nowrap; }
table.grid tr:hover td { background:#13233c; }
.badge { padding:2px 9px; border-radius:9px; font-size:11px; }
.badge.g { background:#10382c; color:#3ddc97; }
.badge.r { background:#3a1620; color:#ff8a98; }
.badge.y { background:#3a2f16; color:#ffc861; }
.toolbar { margin-bottom:14px; display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.toolbar input, .toolbar select { height:36px; background:#0d182b; border:1px solid #2c466e; color:#e5eefb;
  border-radius:8px; padding:0 12px; font-size:13px; }
.btn { display:inline-block; height:36px; line-height:36px; padding:0 18px; border:0; border-radius:8px;
  background:linear-gradient(135deg,#2f7bff,#19c3a5); color:#fff; font-size:13px; cursor:pointer; }
.btn.plain { background:#223a5e; }
.note-box { background:#13233c; border:1px solid #223a5e; border-radius:10px; padding:14px 18px;
  font-size:13px; line-height:2; color:#b9cee9; margin-bottom:18px; }
.chain-ok { color:#3ddc97; font-weight:700; }
.chain-bad { color:#ff8a98; font-weight:700; }
