* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #141414;
  --bg-tertiary: #1f1f1f;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --text-tertiary: #707070;
  --accent-yellow: #FFC107;
  --accent-blue: #2196F3;
  --accent-green: #4CAF50;
  --accent-red: #f44336;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Roboto, Oxygen, Ubuntu, sans-serif;
  background: var(--bg-primary);
  min-height: 100vh;
  color: var(--text-primary);
  overflow: hidden;
}

.container {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
}

/* Glass Header */
header {
  background: rgba(2, 4, 8, 0.6);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding: 20px 24px;
  z-index: 100;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

header::before {
  content: '';
  position: absolute;
  top: -100%;
  left: -100%;
  right: -100%;
  bottom: -100%;
  background: radial-gradient(circle at 20% 50%, rgba(255, 193, 7, 0.03) 0%, transparent 50%),
              radial-gradient(circle at 80% 50%, rgba(33, 150, 243, 0.03) 0%, transparent 50%),
              radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.01) 0%, transparent 70%);
  animation: float 20s ease-in-out infinite;
  pointer-events: none;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-10px) rotate(1deg); }
  66% { transform: translateY(10px) rotate(-1deg); }
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 2px;
  background: rgba(255, 255, 255, 0.02);
}

h1 {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Roboto, sans-serif;
}


.journey-stats {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
}

.stat-divider {
  color: var(--text-tertiary);
  font-size: 16px;
  opacity: 0.4;
}

/* Journey Stats */
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  transition: all 0.3s ease;
}

.stat-value {
  font-size: 18px;
  font-weight: 400;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 10px;
  color: var(--text-tertiary);
  letter-spacing: 0.02em;
  font-style: italic;
}

/* Modern Controls */
.controls {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Control buttons container */
.control-buttons {
  display: flex;
  gap: 8px;
  transition: all 0.3s ease;
}

.control-buttons.hidden {
  display: none;
}

.control-buttons.show {
  animation: fadeInScale 0.3s ease;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.btn {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  color: var(--text-primary);
}

.btn svg {
  width: 16px;
  height: 16px;
  display: block;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:active::before {
  width: 300px;
  height: 300px;
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-primary {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(76, 175, 80, 0.3);
  color: var(--accent-green);
}

.btn-primary:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-green);
  box-shadow: 0 4px 20px rgba(76, 175, 80, 0.3);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(244, 67, 54, 0.3);
  color: var(--accent-red);
}

.btn-secondary:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-red);
  box-shadow: 0 4px 20px rgba(244, 67, 54, 0.3);
  transform: translateY(-2px);
}

.btn-warning {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 152, 0, 0.3);
  color: #ff9800;
}

.btn-warning:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  border-color: #ff9800;
  box-shadow: 0 4px 20px rgba(255, 152, 0, 0.3);
  transform: translateY(-2px);
}

.btn-info {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(33, 150, 243, 0.3);
  color: var(--accent-blue);
}

.btn-info:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-blue);
  box-shadow: 0 4px 20px rgba(33, 150, 243, 0.3);
  transform: translateY(-2px);
}

.btn-success {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(76, 175, 80, 0.3);
  color: #4caf50;
}

.btn-success:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  border-color: #4caf50;
  box-shadow: 0 4px 20px rgba(76, 175, 80, 0.3);
  transform: translateY(-2px);
}

/* Admin button removed - using compass for auth now */

/* Lock button removed - compass acts as toggle */

/* Main Content Area */
.main-content {
  flex: 1;
  display: flex;
  overflow: hidden;
  position: relative;
}

/* Enhanced Street View Container */
.street-view-container {
  flex: 1;
  position: relative;
  background: #000;
  overflow: hidden;
}

#streetView {
  width: 100%;
  height: 100%;
}

/* Vignette Effect */
.street-view-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0, 0, 0, 0.4) 100%);
  z-index: 1;
}

/* Compass Overlay - secretly clickable for admin auth */
.compass-overlay {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  user-select: none;
}

.compass-overlay:active {
  transform: scale(0.98);
}

.compass-needle {
  width: 30px;
  height: 30px;
  position: relative;
  transition: transform 0.3s ease;
}

.compass-needle::before {
  content: 'N';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: bold;
  color: var(--accent-yellow);
}

.compass-needle::after {
  content: '';
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 15px solid var(--accent-yellow);
}

/* Minimap */
.minimap-container {
  position: absolute;
  bottom: 20px;
  left: 20px;
  width: 400px;  /* Increased from 280px */
  height: 300px; /* Increased from 180px */
  min-width: 280px;  /* Minimum size constraints */
  min-height: 180px;
  max-width: 600px;  /* Maximum size constraints */
  max-height: 450px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  overflow: hidden;
  z-index: 10;
  box-shadow: var(--shadow-xl);
  /* resize: both removed - using custom handle instead */
  transition: none; /* Disable transitions during resize */
}

.minimap-toggle {
  display: none;
}

#minimap {
  width: 100%;
  height: 100%;
  background: #0a0a0a;
}

/* Custom resize handle for minimap - top right */
.minimap-resize-handle {
  position: absolute;
  top: 0;
  right: 0;
  width: 30px;
  height: 30px;
  cursor: nwse-resize;
  z-index: 20;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.minimap-container:hover .minimap-resize-handle {
  opacity: 1;
}

.minimap-resize-handle::before {
  content: '';
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  background: linear-gradient(45deg, transparent 50%, var(--glass-border) 50%);
  pointer-events: none;
}

.minimap-resize-handle:hover::before {
  background: linear-gradient(45deg, transparent 50%, var(--accent-yellow) 50%);
}

/* Minimap Reset Button */
.minimap-reset-btn {
  position: absolute;
  top: 10px;
  left: 10px;  /* Changed from right to left */
  width: 28px;
  height: 28px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 16px;
  cursor: pointer;
  z-index: 15;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
}

.minimap-reset-btn:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-yellow);
  color: var(--accent-yellow);
}

.minimap-reset-btn:active {
  transform: scale(0.95);
}

/* Glass Sidebar */
.sidebar {
  width: 280px;
  background: rgba(2, 4, 8, 0.6);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  padding: 0;
  position: relative;
  overflow: hidden;
  box-shadow: -4px 0 30px rgba(0, 0, 0, 0.3);
}

.sidebar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, 
    transparent, 
    var(--accent-yellow) 30%, 
    var(--accent-blue) 50%, 
    var(--accent-yellow) 70%, 
    transparent);
  opacity: 0.3;
}

.sidebar-header {
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar h3 {
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0;
}

/* Compact Decision Log */
.decision-log {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  scroll-behavior: smooth;
  position: relative;
}

.decision-entry {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s ease;
  position: relative;
  animation: slideDown 0.5s cubic-bezier(0.23, 1, 0.320, 1);
  transform-origin: top center;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.decision-entry:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 193, 7, 0.3);
  box-shadow: 0 4px 20px rgba(255, 193, 7, 0.15);
  transform: translateX(-2px);
}

/* Connector line between entries */
.decision-entry:not(:first-child)::before {
  content: '';
  position: absolute;
  left: 0;
  top: -8px;
  width: 1px;
  height: 8px;
  background: rgba(255, 193, 7, 0.2);
  z-index: 1;
}

/* Dot on left edge of each entry */
.decision-entry::after {
  content: '';
  position: absolute;
  left: -4px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  background: rgba(255, 193, 7, 0.8);
  border-radius: 50%;
  border: 1px solid rgba(255, 193, 7, 0.3);
  z-index: 2;
  opacity: 0;
  animation: fadeInDot 0.3s ease 0.5s forwards;
}

@keyframes fadeInDot {
  to {
    opacity: 1;
  }
}

.decision-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  flex-wrap: wrap;
  gap: 6px;
}

.decision-step {
  font-weight: 600;
  color: var(--accent-yellow);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.decision-time {
  font-size: 10px;
  color: var(--text-tertiary);
  font-variant-numeric: tabular-nums;
}

.decision-reasoning {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.4;
  margin-bottom: 8px;
}

.decision-action {
  color: var(--text-tertiary);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 8px;
}

.mode-indicator {
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.mode-indicator.exploring {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.2), rgba(76, 175, 80, 0.1));
  color: #8fbc8f;
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.mode-indicator.pathfinding {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.2), rgba(255, 193, 7, 0.1));
  color: var(--accent-yellow);
  border: 1px solid rgba(255, 193, 7, 0.3);
}

/* Pathfinding Group Styles */
.pathfinding-group {
  background: rgba(255, 255, 255, 0.01);
  border-color: rgba(255, 193, 7, 0.15);
  padding: 10px 8px 4px 8px; /* More padding on top, less on bottom to center text */
  opacity: 0.85;
  transition: all 0.3s ease;
}

.pathfinding-group:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.02);
}

.pathfinding-group .pathfinding-header {
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  padding: 0px 0 0px 0;
}

.pathfinding-group .expand-icon {
  color: var(--text-tertiary);
  font-size: 10px;
  margin-left: auto;
  transition: transform 0.2s ease;
}

.pathfinding-group.expanded .expand-icon {
  transform: rotate(90deg);
}

.pathfinding-count {
  color: var(--text-tertiary);
  font-size: 10px;
  font-weight: normal;
  margin-left: 8px;
  opacity: 0.7;
}

.autopilot-summary {
  color: var(--text-secondary);
  font-size: 10px;
  opacity: 0.8;
}

.pathfinding-details {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.pathfinding-step-detail {
  color: var(--text-tertiary);
  font-size: 11px;
  line-height: 1.4;
  margin-bottom: 6px;
  padding-left: 24px;
  position: relative;
}

.pathfinding-step-detail::before {
  content: '•';
  position: absolute;
  left: 10px;
  color: rgba(255, 193, 7, 0.5);
}

/* Enhance exploration entries to stand out more */
.exploration-entry {
  background: var(--bg-tertiary);
  border-color: rgba(76, 175, 80, 0.2);
}

.exploration-entry:hover {
  border-color: rgba(76, 175, 80, 0.4);
  box-shadow: 0 4px 20px rgba(76, 175, 80, 0.1);
}

/* Green connector for exploration entries */
.exploration-entry:not(:first-child)::before {
  background: rgba(76, 175, 80, 0.2);
}

.exploration-entry::after {
  background: rgba(76, 175, 80, 0.8);
  border-color: rgba(76, 175, 80, 0.3);
}

/* Enhanced Screenshot Grid */
.decision-screenshots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.screenshot-thumb {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-primary);
  border: 1px solid var(--glass-border);
  transition: all 0.3s ease;
  cursor: pointer;
  group: screenshot;
}

.screenshot-thumb:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-yellow);
  z-index: 10;
}

.screenshot-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

.screenshot-thumb:hover img {
  transform: scale(1.1);
}

.screenshot-label {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: var(--text-primary);
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.visited-badge {
  background: rgba(255, 152, 0, 0.8);
  color: white;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 4px;
  border: 1px solid var(--glass-border);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--glass-bg);
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.2s ease;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: rgba(20, 20, 20, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.3s ease;
}

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

.modal-header {
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  margin: 0;
  color: var(--accent-yellow);
  font-size: 18px;
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.modal-body {
  padding: 20px;
}

.modal-body p {
  margin: 0 0 16px 0;
  color: var(--text-secondary);
  font-size: 14px;
}

.modal-body input[type="password"] {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 14px;
  transition: all 0.2s ease;
}

.modal-body input[type="password"]:focus {
  outline: none;
  border-color: var(--accent-yellow);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.1);
}

.auth-error {
  margin-top: 12px;
  padding: 8px 12px;
  background: rgba(244, 67, 54, 0.1);
  border: 1px solid rgba(244, 67, 54, 0.3);
  border-radius: 6px;
  color: var(--accent-red);
  font-size: 13px;
}

.auth-error.hidden {
  display: none;
}

.modal-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.btn-cancel, .btn-submit {
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-cancel {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-cancel:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.btn-submit {
  background: rgba(255, 193, 7, 0.15);
  color: var(--accent-yellow);
  border: 1px solid rgba(255, 193, 7, 0.3);
}

.btn-submit:hover:not(:disabled) {
  background: rgba(255, 193, 7, 0.25);
  border-color: var(--accent-yellow);
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

.btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Admin Notification */
.admin-notification {
  position: fixed;
  top: 80px;
  right: 20px;
  padding: 12px 20px;
  background: rgba(76, 175, 80, 0.1);
  border: 1px solid rgba(76, 175, 80, 0.3);
  border-radius: 8px;
  color: var(--accent-green);
  font-size: 14px;
  font-weight: 600;
  z-index: 10001;
  opacity: 0;
  transform: translateX(100px);
  transition: all 0.3s ease;
}

.admin-notification.show {
  opacity: 1;
  transform: translateX(0);
}

.admin-notification.success {
  background: rgba(76, 175, 80, 0.1);
  border-color: rgba(76, 175, 80, 0.3);
  color: var(--accent-green);
}

/* Loading Animation */
.loading-indicator {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid var(--glass-border);
  border-top-color: var(--accent-yellow);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .sidebar {
    width: 280px;
  }
  
  .decision-screenshots {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .journey-stats {
    gap: 12px;
    padding: 0 10px;
  }
}

@media (max-width: 768px) {
  .container {
    position: relative;
  }
  
  header {
    padding: 12px 16px;
    position: relative;
  }
  
  .header-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
  }
  
  .brand {
    flex: 0 0 auto;
  }
  
  .brand-icon {
    width: 28px;
    height: 28px;
  }
  
  h1 {
    font-size: 20px;
  }
  
  .journey-stats {
    flex: 1;
    padding: 0 40px 0 8px; /* Add right padding to compensate for absolute controls */
    gap: 6px;
    font-size: 11px;
    justify-content: center;
    display: flex;
    align-items: center;
  }
  
  .stat-value {
    font-size: 13px;
  }
  
  .stat-label {
    font-size: 8px;
  }
  
  .stat-divider {
    font-size: 10px;
  }
  
  /* Position controls absolutely on mobile */
  .controls {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    gap: 4px;
    z-index: 101;
  }
  
  .btn {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }
  
  .btn svg {
    width: 14px;
    height: 14px;
  }
  
  
  .control-buttons {
    flex-direction: row;
  }
  
  /* Mobile Sidebar as Bottom Sheet */
  .sidebar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 50vh;
    max-height: 400px;
    border-left: none;
    border-top: 1px solid var(--glass-border);
    transform: translateY(calc(100% - 50px));
    transition: transform 0.3s ease;
    z-index: 20;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  }
  
  .sidebar.expanded {
    transform: translateY(0);
  }
  
  .sidebar-header {
    position: relative;
    cursor: pointer;
    padding: 20px;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  
  .sidebar-header h3 {
    margin: 0;
    padding-top: 5px;
  }
  
  .sidebar-header::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 5px;
    background: var(--accent-yellow);
    border-radius: 3px;
    transition: all 0.3s ease;
  }
  
  .sidebar.expanded .sidebar-header::before {
    background: var(--accent-blue);
  }
  
  /* Mobile Minimap with Toggle */
  .minimap-container {
    position: fixed;
    top: 50%;
    left: -250px;  /* Start hidden off-screen at initial width */
    transform: translateY(-50%);
    width: 250px;  /* Initial width */
    height: 200px; /* Initial height */
    min-width: unset;  /* Remove min-width for smooth scaling */
    min-height: unset; /* Remove min-height for smooth scaling */
    max-width: 80vw;  /* Mobile maximum - 80% of viewport */
    max-height: 300px;
    bottom: auto;
    transition: left 0.3s ease, width 0.3s ease, height 0.3s ease;
    z-index: 15;
    border-radius: 0 16px 16px 0;
    resize: none; /* Disable CSS resize on mobile */
  }
  
  /* Remove transition during drag for smooth movement */
  .minimap-container.dragging {
    transition: none !important;
  }
  
  .minimap-container.expanded {
    /* Position handled by JavaScript now */
  }
  
  /* Hide resize handle on mobile */
  .minimap-resize-handle {
    display: none;
  }
  
  /* Mobile-only minimap toggle tab */
  .minimap-toggle {
    display: flex !important;
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 48px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-left: none;
    border-radius: 0 8px 8px 0;
    align-items: center;
    justify-content: center;
    cursor: grab;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: none;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.2);
    z-index: 16;
    transition: background 0.3s ease, opacity 0.3s ease, left 0.3s ease;
    opacity: 0.8;
    flex-direction: column;
  }
  
  /* Visual feedback while dragging */
  .minimap-toggle.dragging {
    cursor: grabbing;
    opacity: 1;
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-yellow);
    transition: none !important;
  }
  
  .minimap-toggle.dragging span {
    transform: scale(1.1);
  }
  
  .minimap-toggle::before {
    content: '⋮';
    position: absolute;
    top: 4px;
    font-size: 10px;
    color: var(--text-tertiary);
    line-height: 1;
  }
  
  .minimap-toggle:hover {
    opacity: 1;
  }
  
  .minimap-toggle:active {
    cursor: grabbing;
  }
  
  .minimap-toggle.expanded {
    /* Position now handled by JavaScript dynamically */
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-color: var(--accent-yellow);
    opacity: 1;
  }
  
  .minimap-toggle span {
    font-size: 20px;
    filter: grayscale(0.3);
  }
  
  .minimap-toggle.expanded span {
    filter: grayscale(0);
  }
  
  .compass-overlay {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
  }
  
  .compass-needle::before {
    font-size: 8px;
    top: -6px;
  }
  
  .compass-needle::after {
    top: 3px;
    border-left: 3px solid transparent;
    border-right: 3px solid transparent;
    border-bottom: 10px solid var(--accent-yellow);
  }
}

@media (max-width: 480px) {
  .brand-icon {
    width: 24px;
    height: 24px;
  }
  
  h1 {
    font-size: 18px;
  }
  
  .journey-stats {
    gap: 4px;
  }
  
  .stat-value {
    font-size: 12px;
  }
  
  .stat-label {
    font-size: 7px;
  }
  
  .controls {
    right: 12px;
  }
  
  .btn {
    width: 28px;
    height: 28px;
  }
  
  .btn-admin {
    width: 32px;
    height: 32px;
  }
  
  .decision-screenshots {
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
  }
  
  /* Keep minimap but make it smaller on very small screens */
  .minimap-container {
    width: 200px;  /* Default width */
    height: 150px; /* Default height */
    left: -200px;
    min-width: 160px;  /* Very small screen minimum */
    min-height: 120px;
    max-width: 80vw;  /* Still allow expansion on small screens */
    max-height: 250px;
  }
  
  .minimap-container.expanded {
    /* Position handled by JavaScript */
  }
  
  .minimap-toggle {
    width: 32px;
    height: 44px;
  }
  
  .minimap-toggle.expanded {
    /* Position handled by JavaScript */
  }
  
  .minimap-toggle span {
    font-size: 18px;
  }
}

/* Hover Effects */
@media (hover: hover) {
  .interactive:hover {
    transform: scale(1.02);
    transition: transform 0.2s ease;
  }
}

/* Focus States */
button:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--accent-yellow);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  body {
    background: white;
    color: black;
  }
  
  .sidebar,
  .controls,
  .minimap-container,
  .compass-overlay {
    display: none;
  }
}
