/* Wrapper for the tool card */
.tool-htaccess-htpasswd-generator {
  /* acts as hook, card styling comes from site.css */
}

/* Two-column layout for configuration panels */
.tool-htaccess-htpasswd-generator .tool-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

@media (max-width: 900px) {
  .tool-htaccess-htpasswd-generator .tool-layout {
    grid-template-columns: 1fr;
  }
}

/* Panel basics */
.tool-htaccess-htpasswd-generator .tool-panel-header {
  margin-bottom: 0.75rem;
}

.tool-htaccess-htpasswd-generator .tool-panel-header h2 {
  margin: 0 0 0.15rem 0;
  font-size: 1.08rem;
}

.tool-htaccess-htpasswd-generator .tool-panel-header .small {
  margin: 0;
}

/* Form fields */
.tool-htaccess-htpasswd-generator .field-group {
  margin-bottom: 0.9rem;
}

.tool-htaccess-htpasswd-generator .field-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.15rem;
}

.tool-htaccess-htpasswd-generator .field-group .hint {
  margin-top: 0.25rem;
  font-size: 0.85rem;
  opacity: 0.9;
}

/* Inline radio options */
.tool-htaccess-htpasswd-generator .inline-option {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-right: 1rem;
  font-size: 0.9rem;
}

/* Password + toggle in one row */
.tool-htaccess-htpasswd-generator .password-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.tool-htaccess-htpasswd-generator .password-row input[type="password"],
.tool-htaccess-htpasswd-generator .password-row input[type="text"] {
  flex: 1;
}

/* Tool actions */
.tool-htaccess-htpasswd-generator .tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin-top: 0.2rem;
}

/* Output layout */
.tool-htaccess-htpasswd-generator .tool-output {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.25rem;
  margin-top: 1.2rem;
}

@media (max-width: 900px) {
  .tool-htaccess-htpasswd-generator .tool-output {
    grid-template-columns: 1fr;
  }
}

.tool-htaccess-htpasswd-generator .output-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

/* Monospace output */
.tool-htaccess-htpasswd-generator .mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  font-size: 0.9rem;
  min-height: 180px;
  resize: vertical;
}

/* Privacy note */
.tool-htaccess-htpasswd-generator .tool-privacy {
  margin-top: 1rem;
  font-size: 0.82rem;
}

/* Dark mode tweaks use existing CSS variables from site.css */
html[data-theme="dark"] .tool-htaccess-htpasswd-generator .field-group .hint {
  opacity: 0.9;
}
