/* ==========================================================================
   OP Easy Generator — Generator Specific Styles
   Step indicators, dynamic row builders, code previews & terminal consoles.
   ========================================================================== */

/* Generator Layout Header */
.generator-header {
  margin-bottom: 2.5rem;
  text-align: center;
}

.generator-badge-category {
  margin-bottom: 0.75rem;
}

.generator-title {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.generator-subtitle {
  font-size: 1.1rem;
  max-width: 650px;
  margin: 0 auto;
}

/* Step Wizard Indicator */
.step-wizard {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3rem;
  position: relative;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.step-wizard::before {
  content: '';
  position: absolute;
  top: 1.5rem;
  left: 3rem;
  right: 3rem;
  height: 2px;
  background: var(--border-subtle);
  z-index: 1;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  text-align: center;
}

.step-number {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 2px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
  transition: all var(--transition-normal);
}

.step-item.active .step-number {
  border-color: var(--accent-purple);
  background: var(--gradient-primary);
  color: #ffffff;
  box-shadow: 0 0 20px var(--glow-purple);
}

.step-item.completed .step-number {
  border-color: var(--accent-emerald);
  background: var(--accent-emerald);
  color: #ffffff;
}

.step-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dim);
}

.step-item.active .step-label {
  color: var(--text-main);
}

/* Code Viewer / Syntax Preview */
.code-preview-panel {
  background: #040711;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.code-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-subtle);
}

.code-preview-title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.code-preview-content {
  padding: 1.25rem;
  max-height: 350px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.6;
  color: #38bdf8;
  white-space: pre-wrap;
  word-break: break-all;
}

/* Dynamic Rows for Drive Config */
.drive-rows-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.drive-row {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  display: grid;
  grid-template-columns: 2fr 2fr 2.5fr auto;
  gap: 1rem;
  align-items: center;
  transition: all var(--transition-fast);
}

.drive-row:hover {
  border-color: var(--border-bright);
}

.drive-row-actions {
  display: flex;
  gap: 0.4rem;
}

.action-icon-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-dim);
  border-radius: 6px;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.action-icon-btn:hover {
  color: var(--text-main);
  border-color: var(--border-bright);
  background: var(--bg-card-hover);
}

.action-icon-btn.delete-btn:hover {
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.4);
}

/* Telegram Multi-Step Card */
.telegram-step-container {
  max-width: 600px;
  margin: 0 auto;
}

.masked-result-box {
  background: #040711;
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  margin: 1.5rem 0;
  position: relative;
}

.session-string-display {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  word-break: break-all;
  color: #a855f7;
}

.session-string-display.masked {
  filter: blur(5px);
  user-select: none;
}

/* Tab Switcher */
.tab-nav {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 2rem;
}

.tab-btn {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tab-btn:hover {
  color: var(--text-main);
}

.tab-btn.active {
  color: var(--accent-purple);
  border-bottom-color: var(--accent-purple);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Live Terminal Log Console */
.terminal-console {
  background: #030712;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1rem;
  height: 250px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.log-line {
  display: flex;
  gap: 0.75rem;
}

.log-time {
  color: var(--text-dim);
}

.log-level-INFO { color: #38bdf8; }
.log-level-WARNING { color: #f59e0b; }
.log-level-ERROR { color: #ef4444; }

/* Responsive Grid on mobile */
@media (max-width: 900px) {
  .drive-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .drive-row-actions {
    justify-content: flex-end;
  }
}
