/* ==========================================================================
   NEXTRA CLOUD - LIVE TERMINAL & LOGS CONSOLE
   Style: Vercel-Grade Streaming Logs Console with Realtime Telemetry
   ========================================================================== */

.terminal-container {
  background-color: #050505;
  border: 1px solid #222222;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.85);
  font-family: 'Geist Mono', 'Fira Code', 'Menlo', 'Monaco', 'Courier New', monospace;
  margin-top: 1.5rem;
}

.terminal-header {
  background-color: #0c0c0c;
  border-bottom: 1px solid #1a1a1a;
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.terminal-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.terminal-dot.dot-red { background-color: #ff5f56; }
.terminal-dot.dot-yellow { background-color: #ffbd2e; }
.terminal-dot.dot-green { background-color: #27c93f; }

.terminal-title {
  font-size: 0.75rem;
  color: #888888;
  font-weight: 500;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.terminal-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.terminal-btn {
  background: transparent;
  border: 1px solid #262626;
  color: #a1a1a1;
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 150ms ease;
  font-family: inherit;
}

.terminal-btn:hover {
  background-color: #1a1a1a;
  color: #ffffff;
  border-color: #404040;
}

.terminal-btn.active {
  background-color: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.4);
}

.terminal-body {
  padding: 1.25rem;
  height: 420px;
  overflow-y: auto;
  overflow-x: hidden;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: #d4d4d8;
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: relative;
  background-color: #050505;
}

/* Custom Scrollbar for Terminal */
.terminal-body::-webkit-scrollbar {
  width: 6px;
}
.terminal-body::-webkit-scrollbar-track {
  background: #050505;
}
.terminal-body::-webkit-scrollbar-thumb {
  background: #262626;
  border-radius: 3px;
}
.terminal-body::-webkit-scrollbar-thumb:hover {
  background: #404040;
}

/* Log Lines */
.log-line {
  word-break: break-all;
  white-space: pre-wrap;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-feature-settings: 'liga' 0;
}

.log-time {
  color: #555555;
  user-select: none;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.log-content {
  flex: 1;
}

/* Log Syntax Colors */
.log-info { color: #60a5fa; }
.log-success { color: #34d399; }
.log-warn { color: #fbbf24; }
.log-error { color: #f87171; font-weight: 600; }
.log-system { color: #c084fc; }

/* Blinking Cursor for Active Streams */
.terminal-cursor {
  display: inline-block;
  width: 7px;
  height: 14px;
  background-color: #10b981;
  margin-left: 4px;
  vertical-align: middle;
  animation: blink-cursor 1s infinite;
}

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

/* Fullscreen Mode */
.terminal-container.fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  border-radius: 0;
  margin: 0;
}
.terminal-container.fullscreen .terminal-body {
  height: calc(100vh - 45px);
}
