* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; background: #f5f7fa; color: #1e4b69; }
.container { max-width: 700px; margin: 0 auto; padding: 16px; }
h2 { text-align: center; font-size: 1.3rem; margin-bottom: 12px; }
.controls { display: flex; gap: 16px; align-items: center; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
.controls label { font-size: 0.82rem; display: flex; align-items: center; gap: 6px; }
.controls select, .controls input[type=range] { font-size: 0.82rem; }
#toggleBtn { padding: 4px 14px; border-radius: 6px; border: 1px solid #94a3b8; background: #fff; cursor: pointer; font-size: 0.8rem; }
.sim-area { display: flex; align-items: stretch; gap: 12px; margin-bottom: 12px; }
.requests-zone, .servers-zone { flex: 1; }
.lb-zone { display: flex; align-items: center; }
.zone-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; color: #64748b; letter-spacing: 0.5px; margin-bottom: 8px; text-align: center; }
.request-pool { min-height: 180px; background: #e0f2fe; border-radius: 8px; padding: 8px; display: flex; flex-wrap: wrap; gap: 4px; align-content: flex-start; }
.req-dot { width: 12px; height: 12px; border-radius: 50%; background: #3b82f6; animation: pulse 0.5s ease-out; }
@keyframes pulse { 0% { transform: scale(0); } 100% { transform: scale(1); } }
.lb-box { background: #3b82f6; color: #fff; padding: 14px 18px; border-radius: 10px; font-weight: 700; font-size: 0.85rem; writing-mode: horizontal-tb; text-align: center; box-shadow: 0 4px 12px rgba(59,130,246,0.3); }
.server { background: #fff; border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.srv-name { font-size: 0.78rem; font-weight: 700; margin-bottom: 4px; }
.bar-bg { height: 16px; background: #e2e8f0; border-radius: 4px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 4px; transition: width 0.3s, background 0.3s; width: 0%; }
.srv-count { font-size: 0.7rem; color: #64748b; margin-top: 3px; }
.stats { display: flex; gap: 16px; justify-content: center; }
.stat { background: #fff; border-radius: 8px; padding: 8px 16px; text-align: center; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.stat-label { display: block; font-size: 0.68rem; color: #64748b; text-transform: uppercase; }
.stat-val { display: block; font-size: 1.1rem; font-weight: 700; color: #1e4b69; }
