/* Shared Styles & Variables */
:root {
  --bg-dark: #050814;
  --bg-light: #0a1428;
  --accent: #88f;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-hover: rgba(255, 255, 255, 0.15);
  --text-main: #eaf0ff;
  --text-dim: rgba(234, 240, 255, 0.7);
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  font-family: var(--font-main);
  background: var(--bg-dark);
  color: var(--text-main);
}

/* --- Glass Dock Navigation --- */
.glass-dock-container {
  position: fixed;
  bottom: 30px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 9999;
  pointer-events: none; /* Let clicks pass through around the dock */
}

.glass-dock {
  pointer-events: auto;
  display: flex;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(15, 20, 35, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.glass-dock:hover {
  transform: translateY(-2px);
  background: rgba(20, 25, 45, 0.7);
}

.dock-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text-dim);
  padding: 8px 16px;
  border-radius: 12px;
  transition: all 0.2s ease;
  font-size: 14px;
  font-weight: 500;
}

.dock-item:hover {
  background: var(--glass-hover);
  color: #fff;
  transform: scale(1.05);
}

.dock-item.active {
  background: rgba(136, 136, 255, 0.2);
  color: #fff;
  box-shadow: 0 0 15px rgba(136, 136, 255, 0.1);
}

.dock-item .icon {
  font-size: 18px;
  margin-bottom: 4px;
  display: block;
}

.dock-item .label {
  font-size: 11px;
  opacity: 0.8;
}

/* Tooltip for dock items */
.dock-item::after {
  content: attr(data-tooltip);
  position: absolute;
  top: -35px;
  left: 50%;
  transform: translateX(-50%) scale(0.8);
  background: rgba(0, 0, 0, 0.8);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.dock-item:hover::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
  top: -40px;
}

/* --- Common UI Elements --- */
.ui-overlay {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1000;
  color: var(--text-dim);
  font-size: 14px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  pointer-events: none;
}

.ui-card {
  background: var(--glass);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  padding: 12px 16px;
  border-radius: 12px;
  pointer-events: auto;
}

/* Page Transition Overlay */
.page-transition {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: 10000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.page-transition.active {
  opacity: 1;
  pointer-events: auto;
}
