/* === LOHITHBOT VIRTUAL PIXEL METROPOLIS (CITY) STYLES === */

@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Space+Mono:ital,wght@0,400;0,700;1,400&family=Inter:wght@400;500;600;700;800&display=swap');

#office-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(8, 11, 18, 0.9);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease-out;
  padding: 14px;
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
  box-sizing: border-box;
}

#office-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

#office-modal {
  width: 98vw;
  max-width: 1440px;
  height: 95vh;
  max-height: 920px;
  background: #0b0f19;
  border: 2px solid #232c40;
  border-radius: 14px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.08), 0 0 45px rgba(56, 189, 248, 0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  transform: scale(0.97);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

#office-overlay.active #office-modal {
  transform: scale(1);
}

/* Header */
.office-header {
  height: 60px;
  background: #111624;
  border-bottom: 2px solid #1e2638;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  gap: 14px;
  user-select: none;
  flex-shrink: 0;
  z-index: 10;
}

.office-title-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.office-icon {
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulseCity 4s infinite ease-in-out;
}

@keyframes pulseCity {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.office-title-box {
  display: flex;
  flex-direction: column;
}

.office-title {
  font-family: 'Space Mono', monospace, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 8px;
}

.office-weather {
  font-size: 10px;
  color: #94a3b8;
  font-weight: 500;
  margin-top: 1px;
}

.office-badge {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.office-badge.cos-badge {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.6);
  font-weight: 800;
  padding: 3px 9px;
  animation: cosPulse 2s infinite ease-in-out;
  display: flex;
  align-items: center;
  gap: 5px;
}

@keyframes cosPulse {
  0%, 100% { box-shadow: 0 0 6px rgba(245, 158, 11, 0.3); }
  50% { box-shadow: 0 0 16px rgba(245, 158, 11, 0.7); }
}

.office-badge.cos-badge.hidden {
  display: none;
}

/* District Filter Navigation Tabs */
.office-team-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding: 3px 4px;
  max-width: 600px;
  scrollbar-width: none;
}
.office-team-tabs::-webkit-scrollbar {
  display: none;
}

.office-tab-btn {
  background: #171e2e;
  color: #94a3b8;
  border: 1px solid #28334a;
  border-radius: 6px;
  padding: 5px 11px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.office-tab-btn:hover {
  background: #202b40;
  color: #f1f5f9;
  border-color: #3b4968;
}

.office-tab-btn.active {
  background: #0284c7;
  color: #ffffff;
  border-color: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.45);
}

.office-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.office-btn {
  background: #171e2e;
  color: #e2e8f0;
  border: 1px solid #28334a;
  border-radius: 6px;
  padding: 6px 11px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.office-btn:hover {
  background: #202b40;
  border-color: #3b4968;
  color: #ffffff;
}

.office-btn.active {
  background: #0f766e;
  border-color: #14b8a6;
  color: #ffffff;
  box-shadow: 0 0 8px rgba(20, 184, 166, 0.35);
}

.office-btn.cos-btn.active {
  background: #b45309;
  border-color: #f59e0b;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.6);
}

.office-btn-close {
  background: #331d24;
  border-color: #5c2b36;
  color: #f43f5e;
  padding: 6px 12px;
  font-weight: bold;
}

.office-btn-close:hover {
  background: #e11d48;
  color: #ffffff;
  border-color: #f43f5e;
}

/* Viewport & Simulation Area */
.office-viewport {
  flex: 1;
  position: relative;
  overflow: auto;
  background: #07090f;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  cursor: grab;
  scrollbar-width: none;
  -ms-overflow-style: none;
  touch-action: none;
  user-select: none;
}

.office-viewport::-webkit-scrollbar {
  display: none;
}

.office-viewport.panning {
  cursor: grabbing;
}

#office-canvas {
  display: block;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  margin: 0 auto;
}

/* Drag-to-explore hint */
#city-drag-hint {
  position: absolute;
  top: 76px;
  left: 24px;
  z-index: 20;
  background: rgba(7, 9, 15, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 6px 12px;
  border-radius: 999px;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.5s ease;
  animation: dragHintPulse 2.4s ease-in-out infinite;
}

#city-drag-hint.dismissed {
  opacity: 0;
}

@keyframes dragHintPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.3); }
  50% { box-shadow: 0 0 0 6px rgba(56, 189, 248, 0); }
}

/* Scanlines overlay effect */
.office-scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    rgba(18, 16, 16, 0) 50%, 
    rgba(0, 0, 0, 0.12) 50%
  );
  background-size: 100% 4px;
  z-index: 4;
}

/* === CRISP HTML DISTRICT TITLE BANNERS (OVERLAY) === */
.room-overlay-container {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 5;
}

.room-card-banner {
  position: absolute;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  border-radius: 8px;
  backdrop-filter: blur(8px);
  background: rgba(13, 19, 33, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.55);
  user-select: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

#office-overlay.active .room-card-banner {
  pointer-events: auto;
}

.room-card-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.75);
}

.room-card-banner.spotlight {
  transform: scale(1.04);
  box-shadow: 0 0 24px var(--theme-glow, rgba(56, 189, 248, 0.65));
  border-color: var(--theme-color, #38bdf8);
}

.room-info-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.room-icon-box {
  font-size: 17px;
  line-height: 1;
}

.room-text-box {
  display: flex;
  flex-direction: column;
}

.room-main-title {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #ffffff;
  text-transform: uppercase;
}

.room-sub-title {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 500;
  color: #94a3b8;
  margin-top: 1px;
}

.room-count-badge {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
  border: 1px solid rgba(255, 255, 255, 0.15);
  margin-left: 10px;
  white-space: nowrap;
}

/* District Theme Variations */
.room-theme-tech {
  --theme-color: #38bdf8;
  --theme-glow: rgba(56, 189, 248, 0.5);
  border-left: 4px solid #38bdf8;
}
.room-theme-tech .room-main-title { color: #7dd3fc; }
.room-theme-tech .room-count-badge { background: rgba(14, 165, 233, 0.2); border-color: rgba(56, 189, 248, 0.4); color: #38bdf8; }

.room-theme-logical {
  --theme-color: #34d399;
  --theme-glow: rgba(52, 211, 153, 0.5);
  border-left: 4px solid #34d399;
}
.room-theme-logical .room-main-title { color: #6ee7b7; }
.room-theme-logical .room-count-badge { background: rgba(16, 185, 129, 0.2); border-color: rgba(52, 211, 153, 0.4); color: #34d399; }

.room-theme-insta {
  --theme-color: #f472b6;
  --theme-glow: rgba(244, 114, 182, 0.5);
  border-left: 4px solid #f472b6;
}
.room-theme-insta .room-main-title { color: #f9a8d4; }
.room-theme-insta .room-count-badge { background: rgba(236, 72, 153, 0.2); border-color: rgba(244, 114, 182, 0.4); color: #f472b6; }

.room-theme-jobs {
  --theme-color: #fbbf24;
  --theme-glow: rgba(251, 191, 36, 0.5);
  border-left: 4px solid #fbbf24;
}
.room-theme-jobs .room-main-title { color: #fde68a; }
.room-theme-jobs .room-count-badge { background: rgba(245, 158, 11, 0.2); border-color: rgba(251, 191, 36, 0.4); color: #fbbf24; }

.room-theme-cafe, .room-theme-park {
  --theme-color: #10b981;
  --theme-glow: rgba(16, 185, 129, 0.5);
  border-left: 4px solid #10b981;
}
.room-theme-cafe .room-main-title, .room-theme-park .room-main-title { color: #6ee7b7; }
.room-theme-cafe .room-count-badge, .room-theme-park .room-count-badge { background: rgba(16, 185, 129, 0.2); border-color: rgba(16, 185, 129, 0.4); color: #34d399; }

.room-theme-exec {
  --theme-color: #a78bfa;
  --theme-glow: rgba(167, 139, 250, 0.5);
  border-left: 4px solid #a78bfa;
}
.room-theme-exec .room-main-title { color: #c4b5fd; }
.room-theme-exec .room-count-badge { background: rgba(139, 92, 246, 0.2); border-color: rgba(167, 139, 250, 0.4); color: #a78bfa; }

/* Dynamic New Themes */
.room-theme-quantum {
  --theme-color: #22d3ee;
  --theme-glow: rgba(34, 211, 238, 0.5);
  border-left: 4px solid #22d3ee;
}
.room-theme-quantum .room-main-title { color: #67e8f9; }
.room-theme-quantum .room-count-badge { background: rgba(6, 182, 212, 0.2); border-color: rgba(34, 211, 238, 0.4); color: #22d3ee; }

.room-theme-robotics {
  --theme-color: #f97316;
  --theme-glow: rgba(249, 115, 22, 0.5);
  border-left: 4px solid #f97316;
}
.room-theme-robotics .room-main-title { color: #fdba74; }
.room-theme-robotics .room-count-badge { background: rgba(249, 115, 22, 0.2); border-color: rgba(249, 115, 22, 0.4); color: #f97316; }

.room-theme-eco {
  --theme-color: #84cc16;
  --theme-glow: rgba(132, 204, 22, 0.5);
  border-left: 4px solid #84cc16;
}
.room-theme-eco .room-main-title { color: #bef264; }
.room-theme-eco .room-count-badge { background: rgba(132, 204, 22, 0.2); border-color: rgba(132, 204, 22, 0.4); color: #84cc16; }

.room-theme-arcade {
  --theme-color: #e879f9;
  --theme-glow: rgba(232, 121, 249, 0.5);
  border-left: 4px solid #e879f9;
}
.room-theme-arcade .room-main-title { color: #f0abfc; }
.room-theme-arcade .room-count-badge { background: rgba(217, 70, 239, 0.2); border-color: rgba(232, 121, 249, 0.4); color: #e879f9; }

/* === CRISP BOT HOVER TOOLTIP === */
#bot-hover-tooltip {
  position: absolute;
  pointer-events: none;
  background: rgba(13, 19, 33, 0.96);
  border: 1px solid #38bdf8;
  border-radius: 8px;
  padding: 8px 12px;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65), 0 0 14px rgba(56, 189, 248, 0.35);
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
  z-index: 20;
  display: none;
  max-width: 250px;
  transform: translate(-50%, -120%);
  transition: opacity 0.15s ease;
}

#bot-hover-tooltip.visible {
  display: block;
}

.tooltip-name {
  font-size: 13px;
  font-weight: 700;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tooltip-title {
  font-size: 11px;
  font-weight: 500;
  color: #94a3b8;
  margin-top: 2px;
  line-height: 1.3;
}

.tooltip-team {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  color: #38bdf8;
  background: rgba(14, 165, 233, 0.2);
  padding: 1px 6px;
  border-radius: 4px;
  margin-top: 5px;
}

.tooltip-status {
  font-size: 10px;
  font-weight: 600;
  color: #cbd5e1;
  margin-top: 4px;
}

/* === BOT INSPECTOR CARD === */
#bot-inspector {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 320px;
  background: rgba(13, 19, 33, 0.96);
  border: 1px solid #38bdf8;
  border-radius: 12px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.85), 0 0 24px rgba(56, 189, 248, 0.25);
  padding: 15px 18px;
  z-index: 15;
  display: none;
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
  animation: slideInUp 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

#bot-inspector.visible {
  display: block;
}

@keyframes slideInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.inspector-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #232d42;
  padding-bottom: 10px;
  margin-bottom: 10px;
}

.inspector-name-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.inspector-avatar {
  font-size: 22px;
}

.inspector-name {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
}

.inspector-status-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
}

.inspector-status-badge.working {
  background: rgba(14, 165, 233, 0.25);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.5);
}

.inspector-status-badge.idle {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.inspector-status-badge.cos {
  background: rgba(245, 158, 11, 0.25);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.6);
  font-weight: 800;
}

.inspector-field {
  margin-bottom: 8px;
}

.inspector-field-label {
  font-size: 10px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.inspector-field-value {
  font-size: 12px;
  color: #e2e8f0;
  font-weight: 500;
  margin-top: 1px;
}

.inspector-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.inspector-action-btn {
  flex: 1;
  background: #0284c7;
  color: #ffffff;
  border: 1px solid #38bdf8;
  border-radius: 6px;
  padding: 7px 12px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.inspector-action-btn:hover {
  background: #0369a1;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

.inspector-secondary-btn {
  background: #1e293b;
  color: #cbd5e1;
  border: 1px solid #334155;
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.inspector-secondary-btn:hover {
  background: #334155;
  color: #ffffff;
}

/* Footer & Ticker */
.office-footer {
  height: 38px;
  background: #0f1422;
  border-top: 1px solid #1e2638;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: #94a3b8;
  overflow: hidden;
  user-select: none;
  flex-shrink: 0;
}

.ticker-label {
  color: #38bdf8;
  font-weight: 700;
  white-space: nowrap;
}

.ticker-content {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #cbd5e1;
}

/* Sidebar button pulse */
.office-btn-pulse {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 6px #10b981;
  animation: pulseGreen 1.8s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 10px #10b981; }
  100% { transform: scale(0.9); opacity: 0.8; }
}
