/* Tool-specific styles for sitemap-generator */

.smg-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  align-items: start;
}

@media (max-width: 900px) {
  .smg-layout {
    grid-template-columns: 1fr;
  }
}

.smg-panel-title {
  margin: 0 0 0.25rem;
}

.smg-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.smg-field label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.smg-textarea {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.875rem;
  resize: vertical;
  white-space: pre-wrap;
  word-break: break-word;
}

.smg-output-area {
  background: var(--bg-input);
}

.smg-hint {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.smg-options-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1rem;
}

.smg-option-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.smg-option-group[hidden] { display: none; }

.smg-option-group label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.smg-option-group select,
.smg-option-group input[type="date"] {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--tool-input-radius, 12px);
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: 0.875rem;
  font-family: var(--font-body);
  min-width: 160px;
}

.smg-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.smg-error {
  color: #dc2626;
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.2);
  border-radius: var(--tool-input-radius, 12px);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  white-space: pre-wrap;
}

.smg-error[hidden] { display: none; }

.smg-warning {
  color: #92400e;
  background: rgba(217, 119, 6, 0.1);
  border: 1px solid rgba(217, 119, 6, 0.25);
  border-radius: var(--tool-input-radius, 12px);
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  margin: 0 0 1rem;
}

.smg-warning[hidden] { display: none; }

#smg-stats[hidden] { display: none; }

.smg-robots-line-row {
  display: flex;
  gap: 0.5rem;
}

.smg-robots-line-row .text-input {
  flex: 1;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.85rem;
}

.smg-robots-line[hidden] { display: none; }

@media (max-width: 640px) {
  .smg-options-row {
    gap: 0.75rem;
  }
  .smg-option-group select,
  .smg-option-group input[type="date"] {
    min-width: 140px;
  }
}
