/* Reset & Global Styles */
:root {
  --bg-primary: #05070f;
  --bg-secondary: rgba(10, 15, 30, 0.45);
  --border-color: rgba(255, 255, 255, 0.08);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #475569;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --theme-primary: #00ff66;
  --theme-glow: rgba(0, 255, 102, 0.4);
  --theme-glow-soft: rgba(0, 255, 102, 0.1);
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow: hidden;
  height: 100vh;
  width: 100vw;
  user-select: none;
  -webkit-user-select: none;
}

#app {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Canvas styling */
#solar-system-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
}

/* Glassmorphism utility */
.glass-panel {
  background: var(--bg-secondary);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.glass-panel:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

/* Dashboard UI Layout - Centered float at the bottom */
.ui-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 24px;
}

.ui-element {
  pointer-events: auto;
}

/* Footer Section */
.footer-container {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}

.footer-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 0.65rem;
  color: var(--text-secondary);
  font-family: var(--font-body);
  letter-spacing: 0.8px;
  background: rgba(8, 12, 24, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all var(--transition-normal);
}

.footer-badge:hover {
  border-color: var(--theme-primary);
  box-shadow: 0 0 12px var(--theme-glow-soft);
  color: var(--text-primary);
}

.footer-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background-color: var(--text-muted);
}

.footer-badge:hover .footer-dot {
  background-color: var(--theme-primary);
  box-shadow: 0 0 4px var(--theme-primary);
  transition: all var(--transition-normal);
}

.icp-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.icp-link:hover {
  color: var(--theme-primary);
  text-shadow: 0 0 6px var(--theme-glow);
}

.shield-icon {
  width: 10px;
  height: 10px;
  stroke: currentColor;
  stroke-width: 2.2;
  transition: transform var(--transition-fast);
}

.icp-link:hover .shield-icon {
  transform: scale(1.15) rotate(5deg);
}

/* Top Right Corner Floating Actions */
.top-right-actions {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 10;
  pointer-events: none;
}

.top-right-actions .ui-element {
  pointer-events: auto;
}

.switch-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.75rem;
  padding: 8px 18px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all var(--transition-fast);
}

.switch-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--theme-primary);
  box-shadow: 0 0 8px var(--theme-glow-soft);
  color: var(--theme-primary);
  text-shadow: 0 0 4px var(--theme-glow-soft);
}