/* ==========================================================================
   VIEW 7: REMOTE FILES & FILE FORGE (v5.6.0)
   Scoped to repository buffer explorer, search-replace, and in-place editor.
   ========================================================================== */

.forge-editor-card {
  flex: 1;
  min-height: 0;
  background: #121212;
  border: 2px solid #151515;
  border-radius: 15px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.forge-search-strip {
  display: flex;
  gap: 6px;
  align-items: center;
}

.forge-code-textarea {
  flex: 1;
  min-height: 320px;
  background: #0e0e0e;
  border: 2px solid #151515;
  border-radius: 10px;
  padding: 10px;
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 12px;
  resize: none;
  outline: none;
}

.repo-history-grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}

.repo-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #101010;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 6px 10px;
  margin-bottom: 2px;
  transition: background 0.12s ease;
}

.repo-card:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-focus);
}

.repo-card-info {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-right: 8px;
}

.repo-card-title {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-main);
}

.btn-forge-load {
  background: #161616 !important;
  border: 1px solid #262626 !important;
  color: #d4d4d4 !important;
  font-family: var(--font-mono, monospace);
  font-size: 10px !important;
  font-weight: 600;
  width: 48px !important;
  min-width: 48px !important;
  max-width: 48px !important;
  height: 22px !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
  border-radius: 5px;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.14s ease;
  box-shadow: none !important;
}

.btn-forge-load:hover {
  background: #222222 !important;
  border-color: #383838 !important;
  color: #ffffff !important;
}

.btn-forge-load.is-loading {
  opacity: 0.85;
  background: #111111 !important;
  border-color: #242424 !important;
  color: #888888 !important;
  cursor: wait;
  pointer-events: none;
}

.forge-btn-spinner {
  width: 10px;
  height: 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-top-color: #f5f5f5;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: block;
  margin: 0 auto;
}

.forge-loading-tag {
  font-family: var(--font-mono, monospace);
  font-size: 8.5px;
  font-weight: 700;
  background: #1e1e1e;
  color: #a3a3a3;
  border: 1px solid #333333;
  padding: 1px 5px;
  border-radius: 3px;
  margin-right: 5px;
  letter-spacing: 0.05em;
}

.forge-editor-card.forge-skeleton-active .forge-code-textarea {
  background: linear-gradient(90deg, #0e0e0e 0%, #1a1a1a 50%, #0e0e0e 100%) !important;
  background-size: 200% 100% !important;
  animation: shimmer 1.2s infinite ease-in-out !important;
  opacity: 0.65;
  cursor: wait;
}