/* Terminal Loader Styles */
:root {
  --loader-bg: #0a0a0f;
  --loader-text: #00d4aa;
  --loader-text-dim: #4a5568;
  --loader-accent: #7c3aed;
}

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

body {
  background: var(--loader-bg);
  overflow: hidden;
}

#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--loader-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  transition: opacity 0.5s ease-out;
}

#loader.fade-out {
  opacity: 0;
  pointer-events: none;
}

.terminal-container {
  width: 90%;
  max-width: 600px;
  background: #12121a;
  border-radius: 12px;
  border: 1px solid #2a2a3a;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.terminal-header {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: #1a1a24;
  border-bottom: 1px solid #2a2a3a;
}

.terminal-buttons {
  display: flex;
  gap: 8px;
}

.terminal-btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-btn.red { background: #ef4444; }
.terminal-btn.yellow { background: #f59e0b; }
.terminal-btn.green { background: #22c55e; }

.terminal-title {
  flex: 1;
  text-align: center;
  color: var(--loader-text-dim);
  font-size: 13px;
  margin-right: 52px;
}

.terminal-content {
  padding: 24px;
  min-height: 300px;
}

.terminal-line {
  margin-bottom: 8px;
  line-height: 1.6;
  color: var(--loader-text-dim);
  font-size: 14px;
  opacity: 0;
  animation: fadeIn 0.3s ease-out forwards;
}

.terminal-line.success {
  color: var(--loader-text);
}

.terminal-line.accent {
  color: var(--loader-accent);
}

.terminal-line.highlight {
  color: #ffffff;
  font-weight: 600;
}

.prompt {
  color: var(--loader-text);
}

.cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: var(--loader-text);
  margin-left: 4px;
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Progress bar */
.progress-container {
  margin-top: 20px;
  margin-bottom: 16px;
}

.progress-bar {
  height: 4px;
  background: #2a2a3a;
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--loader-text), var(--loader-accent));
  border-radius: 2px;
  transition: width 0.3s ease-out;
}

.progress-text {
  margin-top: 8px;
  font-size: 12px;
  color: var(--loader-text-dim);
  text-align: right;
}

/* Launch button */
#launch-btn {
  display: none;
  width: 100%;
  padding: 14px 24px;
  margin-top: 20px;
  background: linear-gradient(135deg, var(--loader-text), #00b894);
  color: var(--loader-bg);
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

#launch-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 212, 170, 0.3);
}

#launch-btn.visible {
  display: block;
  animation: fadeIn 0.5s ease-out forwards;
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .terminal-container {
    width: 95%;
    border-radius: 8px;
  }

  .terminal-content {
    padding: 16px;
    min-height: 250px;
  }

  .terminal-line {
    font-size: 12px;
  }
}
