/**
 * Merge Tab - Styles specific to the Merge tab
 */

/* Merge content container */
.merge-content {
  margin-bottom: var(--spacing-md);
}

/* File changes container - Area for displaying file changes */
.file-changes-container {
  background: var(--vscode-editor-background);
  border: 1px solid var(--vscode-panel-border);
  border-radius: var(--border-radius-md);
  margin-top: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  padding: var(--spacing-md);
}

/* File changes header */
.file-changes-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-lg);
}

.file-changes-header h3 {
  font-size: 16px;
  font-weight: 500;
  color: var(--vscode-foreground);
}

.file-changes-header .button-group {
  display: flex;
  gap: var(--spacing-sm);
}

/* Individual file change item */
.file-change-item {
  border: 1px solid var(--vscode-panel-border);
  border-radius: var(--border-radius-md);
  margin-bottom: var(--spacing-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.file-change-item:last-child {
  margin-bottom: 0;
}

/* File change header section */
.file-change-header {
  padding: var(--spacing-md);
  background: var(--vscode-editor-inactiveSelectionBackground);
  border-bottom: 1px solid var(--vscode-panel-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* File path display */
.file-path {
  font-size: 13px;
  font-family: var(--vscode-editor-font-family, 'Courier New', monospace);
  word-break: break-all;
  color: var(--vscode-foreground);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

/* File operation label (CREATE, UPDATE, DELETE) */
.file-operation {
  display: inline-block;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  text-transform: uppercase;
  margin-left: var(--spacing-sm);
}

/* Color coding for different operation types */
.file-operation.create {
  background: rgba(52, 211, 153, 0.2);
  color: #34d399;
}

.file-operation.update {
  background: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
}

.file-operation.delete {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

/* File change summary */
.file-summary {
  padding: var(--spacing-md);
  font-size: 13px;
  line-height: 1.5;
  color: var(--vscode-foreground);
}

/* File action buttons container */
.file-change-item .file-actions {
  display: flex;
  gap: var(--spacing-sm);
  padding: 0 var(--spacing-md) var(--spacing-md);
  opacity: 1;
  justify-content: flex-end;
  margin-left: auto;
}

/* File action buttons */
.file-change-item .file-actions button {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-xs) var(--spacing-sm);
  font-size: 12px;
  border-radius: var(--border-radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
}

.file-change-item .file-actions button:hover {
  opacity: 0.9;
}

/* See old content button */
.file-change-item .file-actions .see-old-content-btn {
  background: var(--vscode-button-secondaryBackground);
  color: var(--vscode-button-secondaryForeground);
}

/* See new content button */
.file-change-item .file-actions .see-new-content-btn {
  background: var(--vscode-button-secondaryBackground);
  color: var(--vscode-button-secondaryForeground);
}

/* Success state for replace code button */
.file-change-item .file-actions .replace-code-btn.success {
  background: #22c55e;
  color: white;
}

/* Error state for replace code button */
.file-change-item .file-actions .replace-code-btn.error {
  background: #ef4444;
  color: white;
}

/* Error message */
.error-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-lg);
  color: var(--vscode-errorForeground);
  text-align: center;
}

.error-message svg {
  width: 24px;
  height: 24px;
  margin-bottom: var(--spacing-sm);
}

.error-message p {
  font-size: 14px;
}

/* Special position for prompt actions in merge tab */
#merge-tab .prompt-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

/* Reset changes button */
.reset-changes-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-xs) var(--spacing-sm);
  background: transparent;
  border: 1px solid var(--vscode-panel-border);
  color: var(--vscode-descriptionForeground);
  font-size: 12px;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: all var(--transition-speed) ease;
}

.reset-changes-btn:hover {
  background: var(--vscode-list-hoverBackground);
}

/* Show diff and apply buttons */
.show-diff-btn, .replace-code-btn {
  background: var(--vscode-button-background);
  color: var(--vscode-button-foreground);
}

/* Disabled state for buttons */
.file-change-item .file-actions button.disabled {
  opacity: 0.5;
  cursor: not-allowed;
} 