/* Robots.txt Generator Tool Styles */

.robots-txt-generator-page .tool-body {
  /* Inherits base tool styles */
}

.robots-txt-field {
  width: 100%;
  margin-bottom: 1.5rem;
}

.robots-txt-field label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: var(--font-weight-semibold);
}

.robots-txt-field input {
  width: 100%;
  max-width: 500px;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 1rem;
}

.robots-txt-field input:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-color), transparent 80%);
}

.field-help {
  margin-top: 0.25rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.robots-txt-section {
  margin: 1.5rem 0;
  padding: 1rem;
  background-color: var(--bg-muted);
  border-radius: var(--radius-md);
}

.robots-txt-section h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.robots-txt-field-with-action {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  align-items: center;
}

.robots-txt-field-with-action input {
  flex-grow: 1;
  margin: 0;
}

.remove-field-btn {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: bold;
  border-radius: var(--radius-md);
}

.robots-txt-actions {
  margin: 1.5rem 0;
}

.result-section {
  margin-top: 1.5rem;
}

.result-section h3 {
  margin-bottom: 1rem;
}

.robots-txt-output {
  width: 100%;
  min-height: 200px;
  padding: 1rem;
  margin-bottom: 1rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: var(--font-family-mono);
  font-size: 0.9rem;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-x: auto;
  tab-size: 2;
}

.warning-card {
  margin: 1rem 0;
  padding: 1rem;
  background-color: color-mix(in srgb, var(--warning-color), transparent 90%);
  border-left: 4px solid var(--warning-color);
  border-radius: var(--radius-md);
}

.warning-card h3 {
  margin-top: 0;
  color: var(--warning-color);
}

.result-actions {
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .robots-txt-field-with-action {
    flex-direction: column;
    align-items: stretch;
  }
  
  .remove-field-btn {
    width: auto;
    height: auto;
    padding: 0.5rem;
    align-self: flex-start;
  }
}