/* =========================================
   COMPILATION STATUS & PROGRESS
   Status lamp, slim progress bar, and
   Details panel compilation log styles.
   ========================================= */

/* Compilation Status Lamp (LED-style indicator) */
.compilation-status-lamp {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.6rem;
  background: var(--workspace-bg-tertiary);
  border: 1px solid var(--workspace-border-default);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-right: 0.5rem;
  font-size: 0.7rem;
  user-select: none;
}

.compilation-status-lamp:hover {
  background: var(--bg-page);
  border-color: var(--color-accent-emphasis);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.status-lamp-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transition: all 0.3s ease;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.2);
}

/* LED states */
.status-lamp-indicator[data-status="idle"] {
  background: #6c757d;
  box-shadow: 0 0 2px rgba(108, 117, 125, 0.3);
}

.status-lamp-indicator[data-status="compiling"] {
  background: #0969da;
  box-shadow: 0 0 6px rgba(9, 105, 218, 0.6);
  animation: pulse-led 1.5s ease-in-out infinite;
}

.status-lamp-indicator[data-status="success"] {
  background: #1a7f37;
  box-shadow: 0 0 6px rgba(26, 127, 55, 0.6);
}

.status-lamp-indicator[data-status="error"] {
  background: #cf222e;
  box-shadow: 0 0 6px rgba(207, 34, 46, 0.6);
  animation: pulse-led-error 1s ease-in-out 3;
}

@keyframes pulse-led {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 6px rgba(9, 105, 218, 0.6);
  }
  50% {
    opacity: 0.6;
    box-shadow: 0 0 12px rgba(9, 105, 218, 0.8);
  }
}

@keyframes pulse-led-error {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.status-lamp-text {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
}

/* Slim Progress Bar (tqdm-style) */
.compilation-slim-progress {
  background: var(--workspace-bg-secondary);
  border-bottom: 1px solid var(--workspace-border-default);
  padding: 0.4rem 1rem;
  font-family: "SF Mono", Monaco, "Cascadia Code", monospace;
  font-size: 0.7rem;
}

.slim-progress-bar {
  width: 100%;
  height: 3px;
  background: var(--workspace-border-default);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0.3rem;
}

.slim-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #0969da, #54aeff);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.slim-progress-text {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  line-height: 1;
}

#slim-progress-percent {
  color: var(--color-accent-emphasis);
  font-weight: 600;
  min-width: 30px;
}

#slim-progress-status {
  flex: 1;
  color: var(--text-primary);
}

#slim-progress-eta {
  color: var(--text-muted);
  font-size: 0.65rem;
}
