:root {
  --primary: #00ffe7;
  --bg-dark: #0c0c0c;
  --bg-header: #141414;
  --text-light: #ffffff;
  --text-muted: #bbbbbb;
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-light);
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background: linear-gradient(to right, #101010, #141414);
  border-bottom: 1px solid #1f1f1f;
  box-shadow: 0 2px 10px rgba(0, 255, 231, 0.05);
  position: relative;
}

.logo {
  height: 40px;
}

.header-text {
  flex: 1;
  text-align: right;
}

.header-text h1 {
  font-size: 1.6em;
  font-weight: 700;
  margin: 0;
  color: var(--text-light);
}

.header-text p {
  font-size: 0.95em;
  color: var(--text-muted);
  margin-top: 4px;
}

#pipeline-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 30px auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(0, 255, 231, 0.05);
}

#viewer {
  width: 100%;
  height: 600px; /* adjustable; could become responsive */
  position: relative;
  background: radial-gradient(circle at 30% 40%, #121212, #050505 70%);
}

#viewer canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* Loading indicator for 3D model */
.loading-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--primary);
  font-size: 1.1em;
  z-index: 10;
  text-align: center;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #333;
  border-top: 3px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 15px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Status Dot (top right corner) */
#status-indicator {
  width: 12px;
  height: 12px;
  background-color: limegreen;
  border-radius: 50%;
  position: absolute;
  top: 20px;
  right: 20px;
  animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 255, 100, 0.4);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(0, 255, 100, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(0, 255, 100, 0);
  }
}

footer {
  text-align: center;
  font-size: 0.85em;
  color: #555;
  margin: 60px 0 20px 0;
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-text {
    text-align: left;
    margin-top: 10px;
  }

  #status-indicator {
    top: 15px;
    right: 15px;
  }
}