@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;900&family=Share+Tech+Mono&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
}

body {
  background-color: #03060d;
  color: #00f0ff;
  font-family: 'Share Tech Mono', monospace;
  overflow: hidden;
  height: 100vh;
}

#webgl-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
}

/* Sci-Fi UI Overlay */
.hud-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 25px 35px;
  background: radial-gradient(circle at center, transparent 55%, rgba(1, 4, 10, 0.9) 100%);
}

/* Top Bar */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(0, 240, 255, 0.25);
  padding-bottom: 12px;
  background: rgba(3, 8, 16, 0.4);
  backdrop-filter: blur(8px);
  padding-left: 15px;
  padding-right: 15px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 4px;
  color: #fff;
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.8);
}

.system-status {
  display: flex;
  gap: 20px;
  font-size: 0.85rem;
  color: #00f0ff;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #00f0ff;
  border-radius: 50%;
  box-shadow: 0 0 8px #00f0ff;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.8); }
}

/* Interactive Windows Area */
.workspace {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  padding: 20px 0;
}

.interactive-card {
  pointer-events: auto;
  background: rgba(4, 12, 24, 0.75);
  border: 1px solid rgba(0, 240, 255, 0.35);
  backdrop-filter: blur(16px);
  border-radius: 6px;
  padding: 20px;
  box-shadow: 0 0 35px rgba(0, 240, 255, 0.15);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Left Control Terminal */
.terminal-window {
  width: 360px;
  height: 320px;
  display: flex;
  flex-direction: column;
}

.window-header {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.85rem;
  color: #fff;
  border-bottom: 1px solid rgba(0, 240, 255, 0.2);
  padding-bottom: 8px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
}

.terminal-body {
  flex-grow: 1;
  font-size: 0.85rem;
  color: #72d6ec;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.terminal-input-line {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}

.terminal-input {
  background: transparent;
  border: none;
  outline: none;
  color: #00f0ff;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.85rem;
  width: 100%;
}

/* Right Customizer Widget */
.customizer-window {
  width: 280px;
}

.control-group {
  margin-bottom: 15px;
}

.control-group label {
  font-size: 0.8rem;
  display: block;
  margin-bottom: 6px;
  color: #a0c0d0;
}

.color-picker-btns {
  display: flex;
  gap: 10px;
}

.color-btn {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: transform 0.2s;
}

.color-btn:hover { transform: scale(1.15); }

/* Bottom Dock Navigation */
.dock {
  pointer-events: auto;
  align-self: center;
  display: flex;
  gap: 15px;
  background: rgba(3, 10, 20, 0.8);
  border: 1px solid rgba(0, 240, 255, 0.4);
  backdrop-filter: blur(20px);
  padding: 10px 20px;
  border-radius: 30px;
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.25);
}

.dock-item {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.8rem;
  color: #00f0ff;
  background: rgba(0, 240, 255, 0.05);
  border: 1px solid rgba(0, 240, 255, 0.3);
  padding: 10px 22px;
  border-radius: 20px;
  cursor: pointer;
  letter-spacing: 1.5px;
  transition: all 0.3s ease;
}

.dock-item:hover, .dock-item.active {
  background: #00f0ff;
  color: #03060d;
  box-shadow: 0 0 20px #00f0ff;
  font-weight: bold;
}

/* Corner Accents */
.accent-corner {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid #00f0ff;
  pointer-events: none;
}
.top-left { top: 15px; left: 15px; border-right: none; border-bottom: none; }
.bottom-right { bottom: 15px; right: 15px; border-left: none; border-top: none; }

/* Loader */
#loader {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: #020408;
  z-index: 100;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-family: 'Orbitron', sans-serif;
  color: #00f0ff;
  transition: opacity 0.5s ease;
}

.scan-line {
  width: 200px;
  height: 2px;
  background: #00f0ff;
  box-shadow: 0 0 15px #00f0ff;
  animation: scan 1.2s ease-in-out infinite alternate;
  margin-top: 15px;
}

@keyframes scan {
  from { width: 20px; opacity: 0.2; }
  to { width: 250px; opacity: 1; }
}