/**
 * ITPlatform Tools - Robocopy Generator
 * Tool-specific CSS overrides (minimal)
 * Base framework: /framework/base.css
 */

/* Options group separator and title */
.options-group {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e9ecef;
}

.options-group:last-of-type {
  border-bottom: none;
}

.options-group-title {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Checkbox layout: 2 columns on desktop */
.options-group .checkbox-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
}

/* Inline fields for retry/wait side by side */
.field-group-inline {
  display: flex;
  gap: 24px;
}

.field-inline {
  flex: 1;
}

.field-inline .tool-input {
  width: 100%;
}

/* Action buttons row */
.actions-row {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

/* Result: options summary list */
.options-summary {
  list-style: none;
  padding: 0;
  margin: 8px 0 0 0;
}

.options-summary li {
  padding: 5px 0;
  font-size: 14px;
  color: #333;
  font-family: 'Courier New', monospace;
  border-bottom: 1px solid #f0f0f0;
}

.options-summary li:last-child {
  border-bottom: none;
}

/* Result: destructive banner */
.destructive-banner {
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-left: 4px solid #ffc107;
  color: #856404;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 500;
}

/* Result: warnings list */
.warnings-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.warnings-list li {
  padding: 10px 14px;
  margin-bottom: 8px;
  font-size: 14px;
  border-radius: 4px;
}

.warnings-list li:last-child {
  margin-bottom: 0;
}

.warnings-list .warn-critical {
  background: #f8d7da;
  border-left: 4px solid #dc3545;
  color: #721c24;
}

.warnings-list .warn-caution {
  background: #fff3cd;
  border-left: 4px solid #ffc107;
  color: #856404;
}

/* Error state on inputs */
.field-group .error-msg {
  color: #dc3545;
  font-size: 13px;
  margin-top: 4px;
}

/* COPY / DCOPY flags section */
.copy-flags-section {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed #dee2e6;
}

.copy-flags-section > label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #495057;
  margin-bottom: 4px;
}

.copy-flags-section .field-help {
  margin-bottom: 8px;
}

.copy-flags-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}

.checkbox-label-inline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  white-space: nowrap;
}

/* Sync daily section */
.sync-daily-section {
  background: #f0f4ff;
  border: 1px solid #b8c9e8;
  border-radius: 6px;
  padding: 20px;
  margin-top: 8px;
}

.sync-daily-options {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed #b8c9e8;
}

.sync-daily-options .checkbox-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
  margin-bottom: 12px;
}

.field-group-mt {
  max-width: 240px;
}

.field-group-mt .tool-input {
  width: 100%;
}

.tool-input-small {
  max-width: 120px;
}

/* Sync result block styling */
.sync-result-section {
  border-left: 4px solid #4a7fcc;
  padding-left: 16px;
}

.tool-output-bat {
  white-space: pre-wrap;
  word-break: break-all;
  font-size: 13px;
  line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .options-group .checkbox-group {
    grid-template-columns: 1fr;
  }

  .field-group-inline {
    flex-direction: column;
    gap: 0;
  }

  .actions-row {
    flex-direction: column;
  }

  .actions-row .tool-button {
    width: 100%;
  }

  .copy-flags-group {
    flex-direction: column;
    gap: 6px;
  }

  .sync-daily-options .checkbox-group {
    grid-template-columns: 1fr;
  }

  .sync-daily-section {
    padding: 14px;
  }
}
