/* NDW Live Verkeersdata Dashboard */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;500;700&family=JetBrains+Mono:wght@400;600&display=swap');

#ndw-dashboard{font-family:'DM Sans',sans-serif;color:#e2e8f0;background:#0c1021;line-height:1.4;font-size:14px}
#ndw-dashboard *{margin:0;padding:0;box-sizing:border-box}

/* Header */
#ndw-header{display:flex;align-items:center;justify-content:space-between;padding:0 20px;height:56px;background:#131a2e;border-bottom:1px solid #222d4a;z-index:1000;position:relative}
.ndw-logo{display:flex;align-items:center;gap:10px}
.ndw-logo-i{width:32px;height:32px;background:linear-gradient(135deg,#38bdf8,#a78bfa);border-radius:8px;display:grid;place-items:center;font-weight:700;font-size:11px;color:#000;flex-shrink:0}
.ndw-logo h2{font-size:15px;font-weight:700;margin:0;line-height:1.3}.ndw-logo h2 span{color:#38bdf8}
.ndw-hdr-r{display:flex;align-items:center;gap:16px;font-size:12px;color:#7a86a6}
.ndw-dot{width:7px;height:7px;background:#34d399;border-radius:50%;display:inline-block;animation:ndw-pls 2s ease-in-out infinite;margin-right:5px}
@keyframes ndw-pls{0%,100%{box-shadow:0 0 0 0 rgba(52,211,153,.4)}50%{box-shadow:0 0 0 5px rgba(52,211,153,0)}}

/* Body */
#ndw-body{display:grid;grid-template-columns:340px 1fr;height:calc(100% - 56px)}

/* Sidebar */
#ndw-sidebar{background:#131a2e;border-right:1px solid #222d4a;overflow-y:auto}
#ndw-sidebar::-webkit-scrollbar{width:3px}#ndw-sidebar::-webkit-scrollbar-thumb{background:#222d4a;border-radius:3px}
.ndw-sec{padding:14px 16px;border-bottom:1px solid #222d4a}
.ndw-sec-t{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:1.1px;color:#7a86a6;margin-bottom:10px}

/* Feed rows */
.ndw-row{display:flex;align-items:center;gap:9px;padding:7px 9px;border-radius:7px;margin-bottom:3px;cursor:pointer;transition:.15s;border:1px solid transparent;font-size:11px}
.ndw-row:hover{background:#1a2240}
.ndw-row.on{border-color:#38bdf8;background:rgba(56,189,248,.06)}
.ndw-row-i{width:26px;height:26px;border-radius:6px;display:grid;place-items:center;font-size:13px;flex-shrink:0}
.ndw-row-m{flex:1;min-width:0}
.ndw-row-n{font-weight:600;font-size:11.5px}.ndw-row-f{font-size:9px;color:#7a86a6;font-family:'JetBrains Mono',monospace}

/* Badges */
.ndw-b{font-family:'JetBrains Mono',monospace;font-size:9px;padding:2px 5px;border-radius:4px;font-weight:600;flex-shrink:0;white-space:nowrap}
.ndw-bw{background:#1a2240;color:#7a86a6}.ndw-bl{background:#fbbf24;color:#000}
.ndw-bok{background:#34d399;color:#000}.ndw-be{background:#f87171;color:#000}

/* Stats */
.ndw-sts{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.ndw-st{background:#1a2240;border-radius:7px;padding:10px;text-align:center}
.ndw-sv{font-family:'JetBrains Mono',monospace;font-size:17px;font-weight:700;color:#38bdf8}
.ndw-stl{font-size:10px;color:#7a86a6;margin-top:2px}

/* Legend */
.ndw-leg{display:flex;flex-wrap:wrap;gap:6px 10px}
.ndw-lg{display:flex;align-items:center;gap:4px;font-size:10px;color:#7a86a6}
.ndw-lgd{width:8px;height:8px;border-radius:50%;flex-shrink:0}

/* Map */
#ndw-map{width:100%;height:100%;background:#f0f0f0}

/* Popups */
#ndw-dashboard .leaflet-popup-content-wrapper{background:#fff!important;color:#111!important;border:1px solid #e0e0e0!important;border-radius:12px!important;box-shadow:0 8px 28px rgba(0,0,0,.12)!important;font-family:'DM Sans',sans-serif!important;min-width:260px}
#ndw-dashboard .leaflet-popup-tip{background:#fff!important}
#ndw-dashboard .leaflet-popup-content{margin:0!important;padding:0!important;font-size:13px!important;line-height:1.5!important}

/* Map marker icons */
.ndw-mk{background:none!important;border:none!important}
.ndw-ic{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;font-size:14px;line-height:1;color:#fff;border:2px solid #fff;transition:transform .15s;cursor:pointer}
.ndw-ic:hover{transform:scale(1.35);z-index:9999!important}
.ndw-ph{padding:12px 16px;display:flex;align-items:center;gap:10px}
.ndw-phi{width:36px;height:36px;border-radius:9px;display:grid;place-items:center;font-size:18px;flex-shrink:0}
.ndw-pht h3{font-size:14px;font-weight:700;margin:0;line-height:1.3}
.ndw-pht p{font-size:11px;color:#888;margin:0}
.ndw-pb{padding:0 16px 14px}.ndw-pg{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.ndw-pc{background:#f8f9fb;border-radius:8px;padding:8px 10px}.ndw-pc.fw{grid-column:1/-1}
.ndw-pcl{font-size:10px;color:#999;text-transform:uppercase;letter-spacing:.5px;font-weight:600}
.ndw-pcv{font-family:'JetBrains Mono',monospace;font-size:13px;font-weight:700;color:#222;margin-top:2px;word-break:break-word}
.ndw-pcv.grn{color:#16a34a}.ndw-pcv.red{color:#dc2626}.ndw-pcv.amb{color:#d97706}.ndw-pcv.blu{color:#2563eb}
.ndw-ptag{display:inline-block;font-size:10px;font-weight:600;padding:2px 8px;border-radius:10px;margin-bottom:6px}
.ndw-tgr{background:#dcfce7;color:#16a34a}.ndw-tre{background:#fef2f2;color:#dc2626}.ndw-tam{background:#fefce8;color:#a16207}.ndw-tgy{background:#f3f4f6;color:#555}
.ndw-pf{padding:6px 16px 10px;display:flex;justify-content:space-between;align-items:center;font-size:10px;color:#aaa;border-top:1px solid #f0f0f0}
.ndw-pfc{font-family:'JetBrains Mono',monospace}

/* Overlay */
.ndw-ov{position:absolute;top:56px;left:0;right:0;bottom:0;background:rgba(240,240,240,.92);display:grid;place-items:center;z-index:900;transition:opacity .4s}
.ndw-ov.h{opacity:0;pointer-events:none}
.ndw-spin{width:40px;height:40px;border:3px solid #ccc;border-top-color:#38bdf8;border-radius:50%;animation:ndw-sp .7s linear infinite;margin:0 auto 12px}
@keyframes ndw-sp{to{transform:rotate(360deg)}}
.ndw-ov p{color:#666;font-size:13px;text-align:center}

/* Responsive */
@media(max-width:800px){
  #ndw-body{grid-template-columns:1fr;grid-template-rows:200px 1fr}
  #ndw-sidebar{border-right:none;border-bottom:1px solid #222d4a}
}
