/* LLMs.txt Generator – Admin Styles */

.llmstxt-wrap { max-width: 1100px; }

/* Header */
.llmstxt-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 16px 0 24px;
}
.llmstxt-header__logo svg { display: block; }
.llmstxt-header__title { margin: 0; font-size: 1.5rem; line-height: 1.2; }
.llmstxt-header__sub { margin: 2px 0 0; color: #666; font-size: .9rem; }
.llmstxt-badge {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
}
.llmstxt-badge--pro  { background: linear-gradient(135deg,#1e3a5f,#2563eb); color: #fff; }
.llmstxt-badge--free { background: #f0f0f1; color: #2271b1; border: 1px solid #c3c4c7; }
.llmstxt-badge--free:hover { background: #2271b1; color: #fff; }

/* Layout */
.llmstxt-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
  align-items: start;
}
@media (max-width: 960px) {
  .llmstxt-layout { grid-template-columns: 1fr; }
}

/* Card */
.llmstxt-card {
  background: #fff;
  border: 1px solid #c3c4c7;
  border-radius: 6px;
  padding: 20px 24px;
  margin-bottom: 20px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.llmstxt-card h2 { margin-top: 0; padding-bottom: 12px; border-bottom: 1px solid #f0f0f1; font-size: 1rem; }
.llmstxt-card h3 { margin-top: 0; font-size: .9rem; color: #1d2327; }
.llmstxt-card--pro  { border-color: #2563eb; background: #eff6ff; }
.llmstxt-card--upsell { border-color: #d97706; background: #fffbeb; }

/* Status */
.llmstxt-status {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.llmstxt-status__indicator {
  width: 12px; height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.llmstxt-status__indicator--ok   { background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.2); }
.llmstxt-status__indicator--warn { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245,158,11,.2); }
.llmstxt-status__info strong { display: block; }
.llmstxt-status__meta { font-size: .82rem; color: #666; }

/* Actions */
.llmstxt-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.llmstxt-msg {
  font-size: .85rem;
  padding: 4px 10px;
  border-radius: 4px;
}
.llmstxt-msg--success { background: #dcfce7; color: #166534; }
.llmstxt-msg--error   { background: #fee2e2; color: #991b1b; }

/* Preview */
.llmstxt-preview-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: #1d2327;
  color: #fff;
  border-radius: 4px 4px 0 0;
  font-size: .82rem;
  margin-top: 16px;
}
.llmstxt-preview-bar .button-link { color: #9aa0aa; }
.llmstxt-preview-bar .button-link:hover { color: #fff; }
.llmstxt-preview {
  background: #0d1117;
  color: #e6edf3;
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: .78rem;
  line-height: 1.6;
  padding: 16px;
  margin: 0;
  border-radius: 0 0 4px 4px;
  max-height: 400px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Fields */
.llmstxt-hr { border: none; border-top: 1px solid #f0f0f1; margin: 20px 0; }
.llmstxt-label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .85rem; }
.llmstxt-field-group { margin-bottom: 16px; }
.llmstxt-key-row { display: flex; gap: 8px; align-items: center; }
.llmstxt-key-status { display: block; margin-top: 6px; font-size: .82rem; font-weight: 600; }

/* Radio group */
.llmstxt-radio-group { display: flex; flex-direction: column; gap: 8px; }
.llmstxt-radio {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #c3c4c7;
  border-radius: 6px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.llmstxt-radio input { margin-top: 2px; flex-shrink: 0; }
.llmstxt-radio--active { border-color: #2271b1; background: #f0f6fc; }
.llmstxt-radio__label { display: flex; flex-direction: column; }
.llmstxt-radio__label strong { font-size: .9rem; }
.llmstxt-radio__label small { color: #666; font-size: .8rem; margin-top: 2px; }

/* Checkboxes */
.llmstxt-checkboxes { display: flex; flex-direction: column; gap: 10px; }
.llmstxt-checkboxes label { display: flex; align-items: baseline; gap: 8px; cursor: pointer; font-size: .85rem; }
.llmstxt-sub-field { margin-left: 4px; color: #666; font-size: .82rem; }
.llmstxt-sub-field input { margin-left: 4px; }

/* Upsell */
.llmstxt-feature-list { margin: 10px 0; padding: 0; list-style: none; }
.llmstxt-feature-list li { font-size: .85rem; padding: 4px 0; color: #374151; }
.llmstxt-upsell-btn { width: 100%; justify-content: center; margin-top: 12px; text-align: center; }

/* URL list */
.llmstxt-url-list { display: flex; flex-direction: column; gap: 8px; }
.llmstxt-url-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  background: #f6f7f7;
  border-radius: 4px;
  font-size: .8rem;
}
.llmstxt-url-item code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 200px; }

/* Links */
.llmstxt-links { margin: 0; padding: 0; list-style: none; }
.llmstxt-links li { padding: 5px 0; border-bottom: 1px solid #f0f0f1; }
.llmstxt-links li:last-child { border-bottom: none; }
.llmstxt-links a { font-size: .85rem; text-decoration: none; }
.llmstxt-links a:hover { text-decoration: underline; }
