/* ── Robots.txt Validator Subpage Stylesheet ── */

/* Workspace Container & Grid */
.workspace-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px 60px;
  animation: fadeUp 0.5s var(--ease);
}

.workspace-grid {
  display: grid;
  grid-template-columns: 440px 1fr;
  gap: 32px;
  align-items: start;
}

.fav-preview-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

@media (max-width: 1024px) {
  .workspace-grid {
    grid-template-columns: 1fr;
  }
}

/* Glassmorphic Workspace Cards */
.ws-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.ws-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.ws-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.ws-card-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--fg);
  color: var(--bg);
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Inputs & Form Groups */
.control-group {
  margin-bottom: 20px;
}

.control-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--fg-70);
  margin-bottom: 8px;
}

.control-group input[type="url"],
.control-group input[type="text"] {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--fg);
  padding: 12px 16px;
  font-size: 0.92rem;
  font-family: inherit;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.control-group input:focus {
  outline: none;
  border-color: var(--border-hover);
  background: var(--surface-3);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: var(--radius-xs);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge.badge-internal {
  background: rgba(245, 245, 245, 0.04);
  color: var(--fg-70);
  border: 1px solid var(--border);
}

/* Hide helpers */
.hidden {
  display: none !important;
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Buttons */
.btn-primary,
.btn-secondary {
  font-family: inherit;
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  background: var(--fg);
  cursor: pointer;
  color: var(--bg);
  transition: all 0.2s var(--ease);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary {
  background: var(--fg);
  border: 1px solid var(--fg);
  color: var(--bg);
}

.btn-primary:hover {
  background: rgba(245, 245, 245, 0.85);
  border-color: rgba(245, 245, 245, 0.85);
}

.btn-large {
  padding: 14px 24px;
  font-size: 0.95rem;
}

.btn-full-width {
  width: 100%;
}

.btn-compact {
  padding: 6px 12px;
  font-size: 0.78rem;
}

/* Spinner */
.btn-loader {
  display: inline-flex;
  align-items: center;
}

.spinner {
  animation: rotate-spinner 1.2s linear infinite;
  width: 16px;
  height: 16px;
  color: inherit;
}

@keyframes rotate-spinner {
  100% {
    transform: rotate(360deg);
  }
}

.control-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.control-panel .ws-card {
  padding: 32px !important;
  display: flex;
  flex-direction: column;
  gap: 20px;
}


/* ── Tool Specific Customizations ── */

.alert-banner {
  display: flex;
  align-items: center;
  border-radius: 8px;
  padding: 16px 20px;
  gap: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.alert-banner.info {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.15);
  color: #818cf8;
}

.alert-banner.success {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.alert-banner.error {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.alert-banner-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

select {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--fg-80);
  font-family: inherit;
  font-size: 0.92rem;
  padding: 12px 16px;
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 14px;
  outline: none;
  transition: border 0.2s ease;
}

select:focus {
  border-color: var(--border-hover);
}

select option {
  background: var(--surface-2);
  color: var(--fg);
}
