/* WEB OPS TRACKER V6 - TRACKER DEVICE FRAME STYLES */

.tracker-viewport {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-dark);
  padding: 10px;
}

/* Thick stepped pixel device frame */
.tracker-device-frame {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--bg-navy);
  border: 4px solid var(--cyan-bright);
  box-shadow: 
    inset 0 0 0 2px var(--bg-dark),
    inset 0 0 0 4px var(--cyan-dark),
    0 0 20px rgba(0, 240, 255, 0.25);
  border-radius: 4px;
  overflow: hidden;
}

/* TOP FRAME BAR */
.frame-top-bar {
  height: 52px;
  background: linear-gradient(180deg, #111e38 0%, #0b1426 100%);
  border-bottom: 3px solid var(--cyan-mid);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  z-index: 30;
  box-shadow: 0 3px 10px rgba(0,0,0,0.5);
}

.frame-action-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Avatar Box Top Left */
.avatar-control-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-dark);
  border: 2px solid var(--cyan-mid);
  padding: 4px 10px 4px 6px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.avatar-control-box:hover {
  border-color: var(--cyan-bright);
  box-shadow: 0 0 8px var(--cyan-glow);
}

.avatar-img-frame {
  width: 32px;
  height: 32px;
  background: #000;
  border: 1px solid var(--cyan-bright);
  border-radius: 2px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-info {
  display: flex;
  flex-direction: column;
}

.avatar-title {
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--cyan-bright);
  letter-spacing: 0.5px;
}

.avatar-status-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: var(--text-muted);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-leisure);
  box-shadow: 0 0 6px var(--color-leisure);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

/* Center Title Plaque */
.brand-plaque {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #091326 0%, #030812 100%);
  border: 2px solid var(--cyan-bright);
  padding: 4px 16px;
  border-radius: 3px;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.brand-title {
  font-family: var(--font-pixel);
  font-size: 13px;
  color: var(--cyan-bright);
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.6);
  letter-spacing: 1.5px;
}

.brand-subtitle {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--amber-gold);
  letter-spacing: 1px;
}

/* Top Right Controls */
.top-right-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-pixel-icon {
  font-family: var(--font-pixel);
  font-size: 10px;
  padding: 6px 10px;
  background: var(--bg-card);
  border: 2px solid var(--cyan-mid);
  color: var(--cyan-bright);
  border-radius: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
  cursor: pointer;
}

.btn-pixel-icon:hover {
  background: var(--cyan-dark);
  border-color: var(--cyan-bright);
  color: #fff;
  box-shadow: 0 0 8px var(--cyan-glow);
}

.btn-pixel-icon.active {
  background: var(--cyan-bright);
  color: var(--bg-dark);
  border-color: #fff;
}

/* DESKTOP SEARCH ROW & FILTER ROW OVERLAYS */
.frame-search-row {
  position: absolute;
  top: 64px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  width: 90%;
  max-width: 460px;
  pointer-events: none;
}

.search-panel {
  pointer-events: auto;
  width: 100%;
}

.search-input-wrap {
  display: flex;
  gap: 6px;
  background: rgba(9, 16, 29, 0.9);
  backdrop-filter: blur(8px);
  border: 2px solid var(--cyan-mid);
  padding: 4px 6px;
  border-radius: 4px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.6);
  align-items: center;
}

.search-input-field {
  flex: 1;
  height: 34px;
  font-size: 12px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: 1px solid var(--steel-border);
  border-radius: 3px;
  padding: 0 8px;
}

.search-submit-btn {
  height: 34px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.search-dropdown-menu {
  display: none;
  background: var(--bg-card);
  border: 2px solid var(--cyan-mid);
  border-radius: 4px;
  margin-top: 4px;
  max-height: 220px;
  overflow-y: auto;
  box-shadow: 0 8px 25px rgba(0,0,0,0.8);
}

.frame-filter-row {
  position: absolute;
  top: 64px;
  left: 12px;
  z-index: 20;
  pointer-events: none;
}

/* MAIN CONTENT AREA (MAP + RAILS) */
.frame-main-content {
  position: relative;
  flex: 1;
  width: 100%;
  height: calc(100% - 88px); /* Top 52px + Bottom 36px */
  overflow: hidden;
}

/* LEFT FILTER RAIL */
.rail-left {
  position: relative;
  pointer-events: auto;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(9, 16, 29, 0.88);
  backdrop-filter: blur(8px);
  border: 2px solid var(--cyan-mid);
  padding: 8px 6px;
  border-radius: 4px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.filter-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  background: var(--bg-card);
  border: 1px solid var(--steel-border);
  border-left: 3px solid var(--filter-color, var(--cyan-mid));
  border-radius: 3px;
  font-size: 11px;
  color: var(--text-main);
  transition: var(--transition-fast);
  white-space: nowrap;
}

.filter-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--cyan-bright);
  transform: translateX(2px);
}

.filter-btn.active {
  background: linear-gradient(90deg, rgba(0, 240, 255, 0.2) 0%, var(--bg-card) 100%);
  border-color: var(--cyan-bright);
  color: #fff;
  font-weight: 600;
  box-shadow: inset 0 0 8px rgba(0, 240, 255, 0.3);
}

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

.filter-count {
  margin-left: auto;
  font-family: var(--font-pixel);
  font-size: 8px;
  background: rgba(0, 0, 0, 0.4);
  padding: 2px 5px;
  border-radius: 2px;
  color: var(--text-muted);
}

.filter-btn.active .filter-count {
  color: var(--cyan-bright);
}

/* RIGHT CONTROLS RAIL */
.rail-right {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.map-control-group {
  display: flex;
  flex-direction: column;
  background: rgba(9, 16, 29, 0.88);
  backdrop-filter: blur(8px);
  border: 2px solid var(--cyan-mid);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

.map-control-btn {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  background: var(--bg-card);
  color: var(--cyan-bright);
  border-bottom: 1px solid var(--steel-border);
  transition: var(--transition-fast);
}

.map-control-btn:last-child {
  border-bottom: none;
}

.map-control-btn:hover {
  background: var(--cyan-dark);
  color: #fff;
}

.map-control-btn.active {
  background: var(--cyan-bright);
  color: var(--bg-dark);
  box-shadow: 0 0 10px var(--cyan-bright);
}

/* BOTTOM TICKER STRIP */
.frame-bottom-bar {
  height: 36px;
  background: #060b14;
  border-top: 3px solid var(--cyan-mid);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  z-index: 10;
  font-family: var(--font-mono);
  font-size: 11px;
}

.ticker-wrap {
  flex: 1;
  overflow: hidden;
  margin-right: 15px;
  display: flex;
  align-items: center;
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--cyan-dark);
  border-radius: 2px;
  padding: 2px 8px;
}

.ticker-content {
  white-space: nowrap;
  animation: ticker-slide 25s linear infinite;
  color: var(--amber-gold);
}

@keyframes ticker-slide {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

.ticker-status-tag {
  color: var(--cyan-bright);
  font-weight: bold;
  margin-right: 8px;
}

.bottom-quick-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Web Operative Character Callout Overlay */
.operative-callout {
  position: absolute;
  bottom: 48px;
  left: 12px;
  z-index: 25;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  max-width: 420px;
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.operative-callout.hidden {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

.operative-callout * {
  pointer-events: auto;
}

.callout-avatar {
  width: 56px;
  height: 56px;
  background: var(--bg-dark);
  border: 2px solid var(--cyan-bright);
  border-radius: 4px;
  box-shadow: 0 0 10px var(--cyan-glow);
  overflow: hidden;
  flex-shrink: 0;
}

.callout-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.callout-bubble {
  background: var(--bg-card);
  border: 2px solid var(--cyan-mid);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--text-main);
  font-size: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.7);
  position: relative;
}

.callout-bubble::before {
  content: '';
  position: absolute;
  left: -8px;
  bottom: 14px;
  border-width: 8px 8px 8px 0;
  border-style: solid;
  border-color: transparent var(--cyan-mid) transparent transparent;
}

.callout-title {
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--amber-gold);
  margin-bottom: 4px;
}

.callout-text {
  line-height: 1.4;
  color: var(--text-bright);
}

.callout-close-btn {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 18px;
  height: 18px;
  background: var(--color-meeting);
  color: #fff;
  border-radius: 50%;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
