/* ==========================================================================
   🏢 FLOWORK OS — 3D GROUP EXECUTIVE OFFICE & WAR ROOM STYLES
   Module: office_3d_group.css (100% Nano-Modular, Zero-CSS-Bleed)
   Co-authored-by: Flowork OS <agent@floworkos.com>
   ========================================================================== */

/* Scoped 3D Group Office Viewport Container */
.view-panel-group-office,
.group-office-3d-stage {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  background: #080c16;
  display: flex;
  flex-direction: column;
}

.group-office-canvas-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 420px;
  flex: 1;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 30%, #111a2e 0%, #060911 100%);
}

#group-office-3d-canvas {
  width: 100%;
  height: 100%;
  display: block;
  outline: none;
  cursor: grab;
  touch-action: none;
}

#group-office-3d-canvas.is-dragging {
  cursor: grabbing !important;
}

/* Floating Executive Office HUD Header */
.group-office-hud {
  position: absolute;
  top: 16px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  z-index: 50;
}

.group-office-title-card {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  background: rgba(10, 16, 30, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.group-office-icon {
  font-size: 22px;
  line-height: 1;
}

.group-office-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.group-office-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: 0.02em;
}

.group-office-domain {
  font-size: 10.5px;
  color: #94a3b8;
  display: flex;
  gap: 6px;
  align-items: center;
}

.group-office-domain-tag {
  color: #38bdf8;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 9.5px;
  letter-spacing: 0.05em;
}

/* Top Right Action & Camera Toolbar */
.group-office-toolbar {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.group-office-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.group-office-tool-btn:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.4);
  color: #ffffff;
  transform: translateY(-1px);
}

.group-office-tool-btn:active {
  transform: translateY(0);
}

.group-office-tool-btn.active {
  background: rgba(168, 85, 247, 0.2);
  border-color: rgba(168, 85, 247, 0.5);
  color: #e9d5ff;
}

/* Floating Agent Activity & Notification Toast on 3D Stage */
.group-office-notification {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  pointer-events: none;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(52, 211, 153, 0.35);
  border-radius: 999px;
  padding: 8px 20px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 60;
}

.group-office-notification.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.group-office-notification.join {
  border-color: rgba(56, 189, 248, 0.5);
  color: #38bdf8;
}

.group-office-notification.leave {
  border-color: rgba(244, 63, 94, 0.5);
  color: #fb7185;
}

.group-office-notification.qc-pass {
  border-color: rgba(52, 211, 153, 0.6);
  color: #34d399;
}

/* Seated Agent Floating 2D Tag (Projected over 3D coordinates) */
.group-agent-overlay-tag {
  position: absolute;
  transform: translate(-50%, -100%);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  z-index: 40;
  transition: opacity 0.2s ease;
}

.group-agent-overlay-pill {
  padding: 3px 8px;
  background: rgba(10, 16, 30, 0.85);
  backdrop-filter: blur(8px);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f1f5f9;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.group-agent-overlay-pill.working {
  border-color: #00f2fe;
  color: #00f2fe;
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.3);
}

.group-agent-overlay-pill.done {
  border-color: #10b981;
  color: #34d399;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.35);
}

.group-agent-overlay-status {
  font-size: 8.5px;
  color: #94a3b8;
  font-family: var(--font-mono, monospace);
  text-transform: uppercase;
}

/* Bottom Split Layout in War Room */
.group-office-split-dock {
  position: absolute;
  bottom: 16px;
  right: 20px;
  display: flex;
  gap: 10px;
  pointer-events: auto;
  z-index: 50;
}

.group-office-roster-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-size: 11px;
  color: #cbd5e1;
}

.group-office-roster-count {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  padding: 1px 6px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 10px;
}
