/* ═══ Federal Register — Shared Styles for Rescind & Draft Regulation ═══ */

/* Search Form */
.fr-search-form {
  background: #12141c;
  border: 1px solid #2a2d40;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.fr-search-form label {
  display: block;
  color: #ccc;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
  font-weight: 500;
}
.fr-search-form input[type="text"],
.fr-search-form textarea,
.fr-search-form select {
  width: 100%;
  background: #181a24;
  border: 1px solid #2a2d40;
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  color: #e0e0e0;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  box-sizing: border-box;
}
.fr-search-form input[type="text"]:focus,
.fr-search-form textarea:focus {
  border-color: #5b6abf;
  outline: none;
}
.fr-search-form textarea {
  min-height: 80px;
  resize: vertical;
  font-family: inherit;
}
.fr-search-form .form-row {
  display: flex;
  gap: 1rem;
  align-items: flex-end;
}
.fr-search-form .form-row > * { flex: 1; }

/* Radio Toggle */
.fr-radio-group {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}
.fr-radio-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  color: #ccc;
  font-size: 0.9rem;
}
.fr-radio-option input[type="radio"] {
  accent-color: #5b6abf;
}

/* Search Results Cards */
.fr-results {
  margin-bottom: 1.5rem;
}
.fr-results-label {
  color: #888;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}
.fr-result-card {
  background: #181a24;
  border: 2px solid #2a2d40;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.fr-result-card:hover {
  border-color: #3a3f5c;
  background: #1c1e2a;
}
.fr-result-card.selected {
  border-color: #5b6abf;
  background: #161830;
}
.fr-result-card .fr-card-title {
  color: #e0e0e0;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}
.fr-result-card .fr-card-meta {
  color: #888;
  font-size: 0.8rem;
}
.fr-result-card .fr-card-meta span {
  margin-right: 0.75rem;
}
.fr-result-card .fr-card-abstract {
  color: #999;
  font-size: 0.8rem;
  margin-top: 0.4rem;
  line-height: 1.4;
}

/* Rescind Analysis — Inline Results */
.rescind-analysis {
  background: #181a24;
  border: 1px solid #2a2d40;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.rescind-analysis h3 {
  color: #e0e0e0;
  font-size: 1rem;
  margin-bottom: 1rem;
}

/* Status Badge */
.rescind-status-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-bottom: 1rem;
}
.rescind-status-badge.active { background: #064e3b; color: #6ee7b7; }
.rescind-status-badge.rescinded { background: #4a1c1c; color: #fca5a5; }
.rescind-status-badge.partially_rescinded { background: #4a3520; color: #fbbf24; }
.rescind-status-badge.superseded { background: #4a3520; color: #fb923c; }
.rescind-status-badge.amended { background: #1e3a5f; color: #93c5fd; }
.rescind-status-badge.expired { background: #3b3b3b; color: #aaa; }

/* Confidence Indicator */
.rescind-confidence {
  display: inline-block;
  margin-left: 0.75rem;
  font-size: 0.8rem;
  color: #888;
  font-style: italic;
}

/* Summary */
.rescind-summary {
  color: #ccc;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}
.rescind-summary p {
  margin-bottom: 0.75rem;
}

/* Related items lists */
.rescind-section {
  margin-top: 1.25rem;
}
.rescind-section-title {
  color: #888;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
  font-weight: 500;
}
.rescind-item {
  color: #ccc;
  font-size: 0.85rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid #1e2030;
}
.rescind-item:last-child { border-bottom: none; }
.rescind-item a {
  color: #7c8cf5;
  text-decoration: none;
}
.rescind-item a:hover { text-decoration: underline; }
.rescind-item .relationship {
  color: #888;
  font-style: italic;
  font-size: 0.8rem;
}

/* Timeline */
.rescind-timeline {
  margin-top: 1.25rem;
}
.rescind-timeline-entry {
  display: flex;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #1e2030;
  font-size: 0.85rem;
}
.rescind-timeline-entry:last-child { border-bottom: none; }
.rescind-timeline-date {
  color: #7c8cf5;
  font-weight: 500;
  min-width: 90px;
  flex-shrink: 0;
}
.rescind-timeline-event {
  color: #ccc;
}

/* Draft Regulation Form */
.draft-reg-form {
  background: #12141c;
  border: 1px solid #2a2d40;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.draft-reg-form label {
  display: block;
  color: #ccc;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
  font-weight: 500;
}
.draft-reg-form input[type="text"],
.draft-reg-form textarea {
  width: 100%;
  background: #181a24;
  border: 1px solid #2a2d40;
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  color: #e0e0e0;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  box-sizing: border-box;
}
.draft-reg-form input[type="text"]:focus,
.draft-reg-form textarea:focus {
  border-color: #5b6abf;
  outline: none;
}
.draft-reg-form textarea {
  min-height: 100px;
  resize: vertical;
  font-family: inherit;
}

/* Search loading state */
.fr-searching {
  text-align: center;
  padding: 1rem;
  color: #888;
  font-size: 0.85rem;
}
.fr-searching .spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #2a2d40;
  border-top: 2px solid #5b6abf;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}

/* Button row for forms */
.fr-form-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

/* ═══ Regulation Workshop — Wizard Styles ═══ */

/* Wizard Steps Indicator */
.wizard-steps {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.wizard-step {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: #555;
  font-weight: 500;
}
.wizard-step.active { color: #7c8cf5; font-weight: 600; }
.wizard-step.completed { color: #10b981; }
.wizard-step-num {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700;
  border: 2px solid #555;
  background: transparent;
}
.wizard-step.active .wizard-step-num {
  border-color: #5b6abf; background: #5b6abf; color: white;
}
.wizard-step.completed .wizard-step-num {
  border-color: #10b981; background: #10b981; color: white;
}
.wizard-step-connector {
  flex: 1; height: 2px;
  background: #2a2d40; min-width: 16px;
}
.wizard-step-connector.completed { background: #10b981; }

/* Mode Cards */
.reg-mode-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.reg-mode-card {
  padding: 1.5rem;
  border: 2px solid #2a2d40;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  background: #12141c;
}
.reg-mode-card:hover {
  border-color: #3a3f5c;
  background: #1c1e2a;
}
.reg-mode-card.selected {
  border-color: #5b6abf;
  background: #161830;
  box-shadow: 0 0 0 3px rgba(91, 106, 191, 0.15);
}
.reg-mode-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.reg-mode-title {
  font-size: 1rem; font-weight: 600;
  color: #e0e0e0; margin-bottom: 0.25rem;
}
.reg-mode-desc {
  font-size: 0.8rem; color: #888;
}

/* Feeling Lucky Button */
.feeling-lucky-btn {
  background: linear-gradient(135deg, #5b6abf, #7c8cf5);
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.85rem 2rem;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  animation: lucky-pulse 2s ease-in-out infinite;
  transition: transform 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.feeling-lucky-btn:hover:not(:disabled) { transform: scale(1.04); }
.feeling-lucky-btn:disabled { opacity: 0.6; cursor: not-allowed; animation: none; }
@keyframes lucky-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(91, 106, 191, 0.4); }
  50% { box-shadow: 0 0 20px 8px rgba(91, 106, 191, 0.2); }
}

/* Lucky Spinner */
.lucky-spinner-overlay {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 2rem; gap: 1rem;
}
.lucky-status-text {
  font-size: 0.85rem; color: #888; text-align: center;
}

/* Mode Badge */
.reg-mode-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.reg-mode-badge.rescission { background: #4a1c1c; color: #fca5a5; }
.reg-mode-badge.draft { background: #1e2a5f; color: #93c5fd; }
.reg-mode-badge.eo { background: #1e3a2a; color: #86efac; }

/* Review Rows */
.reg-review-rows {
  margin-bottom: 1.25rem;
}
.reg-review-row {
  display: flex; gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #1e2030;
  font-size: 0.85rem; color: #ccc;
}
.reg-review-row:last-child { border-bottom: none; }
.reg-review-label {
  font-weight: 600; color: #888;
  min-width: 120px; flex-shrink: 0;
}

/* Wizard Body */
.reg-wizard-body {
  background: #12141c;
  border: 1px solid #2a2d40;
  border-radius: 12px;
  padding: 1.5rem;
}
