/* VR Debug Overlay - Fast Panel V2 Styling */
/* Premium minimal neutral dark theme */

.vr-debug-overlay {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 600px;
  max-height: 80vh;
  background: linear-gradient(135deg, rgba(20, 20, 25, 0.98) 0%, rgba(25, 25, 30, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 2px 8px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.vr-debug-overlay.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
}

/* Header */
.vr-debug-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, transparent 100%);
}

.vr-debug-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 0.3px;
}

.vr-debug-icon {
  font-size: 18px;
}

.vr-debug-badge {
  padding: 3px 8px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(34, 197, 94, 0.08) 100%);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  color: rgba(34, 197, 94, 1);
  letter-spacing: 0.5px;
  animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.vr-debug-controls {
  display: flex;
  gap: 8px;
}

.vr-debug-btn {
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.vr-debug-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.95);
  transform: translateY(-1px);
}

.vr-debug-btn:active {
  transform: translateY(0);
}

/* Logs Container */
.vr-debug-logs {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  max-height: calc(80vh - 120px);
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 12px;
  line-height: 1.6;
}

.vr-debug-logs::-webkit-scrollbar {
  width: 8px;
}

.vr-debug-logs::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

.vr-debug-logs::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  transition: background 0.2s ease;
}

.vr-debug-logs::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Log Entry */
.vr-debug-log-entry {
  display: flex;
  gap: 10px;
  padding: 8px 10px;
  margin-bottom: 4px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
  border-left: 3px solid transparent;
  transition: background 0.15s ease;
}

.vr-debug-log-entry:hover {
  background: rgba(255, 255, 255, 0.04);
}

.vr-debug-timestamp {
  color: rgba(255, 255, 255, 0.4);
  font-size: 11px;
  white-space: nowrap;
  font-weight: 500;
}

.vr-debug-level {
  font-weight: 700;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 3px;
  white-space: nowrap;
  letter-spacing: 0.5px;
}

.vr-debug-message {
  color: rgba(255, 255, 255, 0.85);
  word-break: break-word;
  white-space: pre-wrap;
}

/* Log Levels */
.vr-debug-log-log {
  border-left-color: rgba(59, 130, 246, 0.5);
}

.vr-debug-log-log .vr-debug-level {
  background: rgba(59, 130, 246, 0.15);
  color: rgba(96, 165, 250, 1);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.vr-debug-log-warn {
  border-left-color: rgba(251, 191, 36, 0.5);
}

.vr-debug-log-warn .vr-debug-level {
  background: rgba(251, 191, 36, 0.15);
  color: rgba(252, 211, 77, 1);
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.vr-debug-log-error {
  border-left-color: rgba(239, 68, 68, 0.5);
}

.vr-debug-log-error .vr-debug-level {
  background: rgba(239, 68, 68, 0.15);
  color: rgba(248, 113, 113, 1);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Footer */
.vr-debug-footer {
  padding: 12px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(0deg, rgba(255, 255, 255, 0.02) 0%, transparent 100%);
}

.vr-debug-hint {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 500;
  letter-spacing: 0.2px;
}

