/* ansible-generator.css */
/* Tool-specific additions for Ansible Playbook Generator.
   Uses the shared dark theme variables in tools.css. */

/* Tagline pill (Ansible page only) */
.tagline-pill{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: rgba(0, 212, 255, 0.06);
  color: var(--text-primary);
  font-size: 0.95rem;
  white-space: nowrap;
}

.tagline-dot{
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary-cyan);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.12);
}


/* ansible-generator.css */
/* Tool-specific additions for Ansible Playbook Generator.
   Uses the shared dark theme variables in tools.css. */

/* Header layout (match password-generator tool header vibe) */
/* Linked logo (no outline) */
/* Title block sits to the right of the logo */
/* Logo without changing the HTML structure */
/* Tagline pill */
/* Two-column tool layout */
.grid{
  display: grid;
  gap: 16px;
  align-items: start;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
}

@media (max-width: 960px){
  .grid{
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Card header inside cards */
.card-header{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.card-header h2{
  margin: 0;
  font-size: 1.2rem;
}

.card-header p{
  margin: 6px 0 0 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Section labels / inputs */
.section-label{
  margin-top: 14px;
  margin-bottom: 6px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

label{
  display: block;
  margin-bottom: 6px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field-row{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

input, select, textarea{
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.98rem;
  outline: none;
}

textarea{
  resize: vertical;
  min-height: 96px;
}

input:focus, select:focus, textarea:focus{
  border-color: var(--primary-cyan);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

textarea.output{
  min-height: 340px;
  font-family: var(--mono);
  white-space: pre;
}

/* Checkbox rows */
.checkbox-row{
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 6px;
  color: var(--text-primary);
  font-size: 0.98rem;
}

.checkbox-row input[type="checkbox"]{
  width: 18px;
  height: 18px;
  accent-color: var(--primary-cyan);
}

/* Inline helper text */
.muted{
  color: var(--text-secondary);
}

/* Chips */
.chip-row{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  margin-bottom: 6px;
}

.chip{
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: rgba(0, 212, 255, 0.06);
  color: var(--text-secondary);
  font-size: 0.95rem;
  cursor: pointer;
  user-select: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.chip:hover{
  transform: translateY(-1px);
  border-color: rgba(0, 212, 255, 0.45);
}

/* Buttons: keep original classes, map them to new theme */
.btn-row{
  margin-top: 12px; /* keeps button placement consistent with original layout */
}

.btn{
  border-radius: 10px; /* matches tools.css buttons */
}

/* Primary action */
.btn-primary{
  background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--secondary-blue) 100%);
  color: var(--dark-bg);
  box-shadow: 0 10px 30px var(--accent-glow);
}

.btn-primary:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(0, 212, 255, 0.25);
}

/* Secondary / ghost actions */
.btn-ghost,
.btn-soft{
  background: rgba(0, 212, 255, 0.10);
  border: 2px solid var(--border-color);
  color: var(--primary-cyan);
}

.btn-ghost:hover,
.btn-soft:hover{
  transform: translateY(-2px);
}

/* Error */
.error-text{
  margin-top: 8px;
  color: #fecaca;
  font-size: 0.95rem;
}

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

/* Legal disclaimer: match gold theme */
.legal{
  margin-top: 16px;
  border-radius: 14px;
  border: 1px solid rgba(245, 200, 76, 0.75);
  background: rgba(245, 200, 76, 0.06);
  padding: 16px 18px;
}

.legal strong{
  margin: 0 0 6px;
  font-size: 1rem;
  color: #f5c84c;
  letter-spacing: 0.2px;
  text-transform: none; /* preserve original text */
}

.legal{
  color: var(--text-secondary);
  line-height: 1.65;
  font-size: 0.95rem;
}

/* Bottom link row */
.link-row{
  margin-top: 14px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.link-row a{
  color: var(--primary-cyan);
  text-decoration: none;
}

.link-row a:hover{
  opacity: 0.9;
  text-decoration: underline;
}

/* Show target platform choices inline */
#os-family[size]{
  height: auto;
}

/* Ensure firewall choices are clearly visible on dark theme across browsers */
#firewall-kind{
  color-scheme: dark;
  height: auto;
}

#firewall-kind option{
  background-color: var(--panel-2);
  color: var(--text-primary);
}
