/* Squad-Office - protótipo V1
   Pixel-art dark theme, monospace, sem dependência externa. */

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: #06081a;
  color: #d8dce8;
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Consolas, monospace;
  min-height: 100vh;
}

.app {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}

header {
  border: 2px solid #3a4070;
  background: #0f1428;
  padding: 16px 20px;
  margin-bottom: 16px;
  image-rendering: pixelated;
  box-shadow: 0 0 0 2px #06081a, 0 0 0 4px #3a4070;
}

h1 {
  font-size: 20px;
  letter-spacing: 2px;
  color: #a0c4ff;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.subtitle {
  font-size: 11px;
  color: #6a708c;
  margin-bottom: 12px;
}

.status-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 11px;
}

.badge {
  background: #5b8def;
  color: #06081a;
  padding: 2px 8px;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 10px;
  border: 1px solid #a0c4ff;
}

.badge[data-mode="real"]      { background: #10b981; border-color: #34d399; color: #06081a; }
.badge[data-mode="mock"]      { background: #f59e0b; border-color: #fbbf24; color: #06081a; }
.badge[data-mode="degraded"]  { background: #ef4444; border-color: #fca5a5; color: #06081a; animation: blink 1.2s infinite; }
.badge[data-mode="connecting"] { background: #5b8def; border-color: #a0c4ff; color: #06081a; }
.badge[data-mode="unknown"]   { background: #5b8def; border-color: #a0c4ff; color: #06081a; }

.meta {
  color: #6a708c;
}

main {
  background: #0f1428;
  border: 2px solid #3a4070;
  padding: 8px;
  margin-bottom: 16px;
  box-shadow: 0 0 0 2px #06081a, 0 0 0 4px #3a4070;
}

#office {
  width: 100%;
  height: auto;
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  background: #06081a;
}

footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 2px solid #3a4070;
  background: #0f1428;
  padding: 12px 20px;
  font-size: 11px;
  flex-wrap: wrap;
  gap: 12px;
}

.legend {
  display: flex;
  gap: 16px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #a0a8c8;
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border: 1px solid #06081a;
  box-shadow: 0 0 0 1px #3a4070;
}

.dot.idle    { background: #4a5070; }
.dot.working { background: #10b981; box-shadow: 0 0 6px #10b981; }
.dot.blocked { background: #ef4444; box-shadow: 0 0 6px #ef4444; animation: blink 1s infinite; }
.dot.done    { background: #5b8def; }

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0.4; }
}

.kpis {
  display: flex;
  gap: 16px;
  color: #a0a8c8;
}

.kpi b {
  color: #a0c4ff;
  font-weight: bold;
}

/* Avatar SVG elements */
.avatar-group { cursor: default; }
.avatar-group.working .avatar-body { animation: bob 0.6s ease-in-out infinite alternate; }
.avatar-group.working .monitor-screen { filter: drop-shadow(0 0 4px #10b981); }
.avatar-group.blocked .avatar-head { animation: shake 0.3s ease-in-out infinite; }
.avatar-group.blocked .monitor-screen { filter: drop-shadow(0 0 6px #ef4444); }
.avatar-group.done .avatar-body { opacity: 0.7; }

@keyframes bob {
  from { transform: translateY(0); }
  to   { transform: translateY(-2px); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-1px); }
  75% { transform: translateX(1px); }
}

.speech-bubble {
  font-family: ui-monospace, monospace;
  font-size: 9px;
  fill: #06081a;
}

.bubble-bg {
  fill: #f8f9fa;
  stroke: #3a4070;
  stroke-width: 1;
}

.name-label {
  font-family: ui-monospace, monospace;
  font-size: 10px;
  font-weight: bold;
  fill: #a0c4ff;
  text-anchor: middle;
}

.role-label {
  font-family: ui-monospace, monospace;
  font-size: 8px;
  fill: #6a708c;
  text-anchor: middle;
}
