/* === LOHITHBOT VIRTUAL PIXEL OFFICE 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(10, 12, 18, 0.88);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease-out;
  padding: 16px;
  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: 96vw;
  max-width: 1320px;
  height: 94vh;
  max-height: 880px;
  background: #0f131d;
  border: 2px solid #2e374d;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.08), 0 0 35px rgba(56, 189, 248, 0.15);
  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: 58px;
  background: #141926;
  border-bottom: 2px solid #232a3d;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  gap: 12px;
  user-select: none;
  flex-shrink: 0;
  z-index: 10;
}

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

.office-icon {
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.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 8px;
  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;
}

/* Team Filter Navigation Tabs */
.office-team-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding: 2px 4px;
}

.office-tab-btn {
  background: #1c2233;
  color: #94a3b8;
  border: 1px solid #2d374d;
  border-radius: 6px;
  padding: 5px 10px;
  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: #263047;
  color: #f1f5f9;
  border-color: #3d4a66;
}

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

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

.office-btn {
  background: #1c2233;
  color: #e2e8f0;
  border: 1px solid #2d374d;
  border-radius: 6px;
  padding: 6px 10px;
  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: #263047;
  border-color: #3d4a66;
  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: hidden;
  background: #090c13;
  display: flex;
  align-items: center;
  justify-content: center;
}

#office-canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* 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.15) 50%
  );
  background-size: 100% 4px;
  z-index: 4;
}

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

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

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

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

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

.room-icon-box {
  font-size: 16px;
  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;
}

/* Room 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 {
  --theme-color: #fb923c;
  --theme-glow: rgba(251, 146, 60, 0.5);
  border-left: 4px solid #fb923c;
}
.room-theme-cafe .room-main-title { color: #fdba74; }
.room-theme-cafe .room-count-badge { background: rgba(249, 115, 22, 0.2); border-color: rgba(251, 146, 60, 0.4); color: #fb923c; }

.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; }

/* === CRISP BOT HOVER TOOLTIP === */
#bot-hover-tooltip {
  position: absolute;
  pointer-events: none;
  background: rgba(15, 23, 42, 0.94);
  border: 1px solid #38bdf8;
  border-radius: 8px;
  padding: 8px 12px;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 12px rgba(56, 189, 248, 0.3);
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
  z-index: 20;
  display: none;
  max-width: 240px;
  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: 310px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid #38bdf8;
  border-radius: 10px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.8), 0 0 20px rgba(56, 189, 248, 0.2);
  padding: 14px 16px;
  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 #334155;
  padding-bottom: 10px;
  margin-bottom: 10px;
}

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

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

.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.cos {
  background: rgba(245, 158, 11, 0.25);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.6);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.3);
}

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

.inspector-status-badge.idle {
  background: rgba(245, 158, 11, 0.25);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.5);
}

.inspector-status-badge.collab {
  background: rgba(192, 132, 252, 0.25);
  color: #c084fc;
  border: 1px solid rgba(192, 132, 252, 0.5);
}

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

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

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

.inspector-actions {
  display: flex;
  gap: 6px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #334155;
}

.inspector-action-btn {
  flex: 1;
  background: #0284c7;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
  text-align: center;
}

.inspector-action-btn:hover {
  background: #0369a1;
}

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

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

/* Footer / Ticker */
.office-footer {
  height: 34px;
  background: #0a0d14;
  border-top: 1px solid #232a3d;
  display: flex;
  align-items: center;
  padding: 0 16px;
  font-size: 11px;
  gap: 10px;
  user-select: none;
  flex-shrink: 0;
  z-index: 10;
}

.ticker-label {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  color: #38bdf8;
  white-space: nowrap;
}

.ticker-content {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
  color: #94a3b8;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

@keyframes officePulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}
