/* assets/hcgov.css
   Styling for the HCGov demo UI using the plugin’s class names.
   Mirrors the look/feel of your .mrobbieb-ai-demo styles (soft cards, pills, rounded controls). */

.hcgov-demo {
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 18px;
  padding: 22px;
  background: rgba(255,255,255,0.9);
}

.hcgov-demo__title {
  margin: 0 0 6px 0;
  font-size: 28px;
  line-height: 1.2;
}

.hcgov-demo__subtitle {
  margin: 0 0 18px 0;
  opacity: 0.85;
}
/* Each label becomes its own vertical block */
.hcgov-demo__label {
  display: flex;
  flex-direction: column;
  gap: 8px;              /* space between label text and control */
  margin-bottom: 14px;  /* space AFTER each label block */
}

.hcgov-demo__help {
  display: inline-block;
  margin-top: 6px;
  font-size: 12px;
  opacity: 0.75;
}

.hcgov-demo__textarea {
  width: 96%;
  border-radius: 14px;
  padding: 14px;
  border: 1px solid rgba(0,0,0,0.18);
  resize: vertical;
  font-family: inherit;
  font-size: 15px;
  outline: none;
}

.hcgov-demo__textarea:focus {
  border-color: rgba(0,0,0,0.35);
}

.hcgov-demo__row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
  flex-wrap: wrap;
}

.hcgov-demo__inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
}

/* Inputs / selects */
.hcgov-demo__input,
.hcgov-demo__select {
  border-radius: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(0,0,0,0.18);
  background: #fff;
  font-family: inherit;
  font-size: 14px;
  outline: none;
}

.hcgov-demo__input:focus,
.hcgov-demo__select:focus {
  border-color: rgba(0,0,0,0.35);
}

.hcgov-demo__select[multiple] {
  padding: 10px;
}

/* Button */
.hcgov-demo__button {
  border-radius: 999px;
  padding: 10px 16px;
  border: 1px solid rgba(0,0,0,0.22);
  background: #fff;
  cursor: pointer;
  font-weight: 650;
  margin-top: 14px;
}

.hcgov-demo__button:hover {
  background: rgba(0,0,0,0.03);
}

.hcgov-demo__button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* Status */
.hcgov-demo__status {
  margin-top: 12px;
  font-size: 14px;
  opacity: 0.85;
  min-width: 120px;
}

/* Output area */
.hcgov-demo__output {
  margin-top: 18px;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 18px;
  padding: 16px;
  background: rgba(0,0,0,0.02);
  white-space: pre-wrap;
  overflow: auto;
  font-size: 14px;
  line-height: 1.45;
}

/* "What's happening" panel (if present) */
.hcgov-whats {
  margin-top: 14px;
}

.hcgov-whats details {
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 16px;
  padding: 12px;
  background: rgba(0,0,0,0.02);
}

.hcgov-whats summary {
  cursor: pointer;
  font-weight: 650;
  user-select: none;
}

.hcgov-whats__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 10px 0;
}

.hcgov-whats__label {
  font-size: 12px;
  opacity: 0.75;
  margin: 10px 0 6px;
}

.hcgov-whats pre {
  margin: 0;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.75);
  overflow: auto;
  border: 1px solid rgba(0,0,0,0.06);
  white-space: pre-wrap;
  font-size: 13px;
  line-height: 1.45;
}

.hcgov-whats code {
  display: inline-block;
  padding: 2px 6px;
  background: rgba(255,255,255,0.8);
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.10);
  font-size: 12px;
}

/* Small tweaks for mobile */
@media (max-width: 800px) {
  .hcgov-demo__textarea { width: 100%; }
  .hcgov-whats__grid { grid-template-columns: 1fr; }
}

.hcgov-demo__label > select,
.hcgov-demo__label > textarea,
.hcgov-demo__label > input {
  display: block;
  margin-top: 8px;
}

/* Each label becomes its own vertical block */
.hcgov-demo__label {
  display: flex;
  flex-direction: column;
  gap: 8px;              /* space between label text and control */
  margin-bottom: 14px;  /* space AFTER each label block */
}

.hcgov-demo__label.hcgov-demo__inline {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.hcgov-demo__row {
  margin-bottom: 18px;
}
