/**
 * ITPlatform Tools - PowerShell Command Builder
 * Tool-specific CSS overrides (minimal)
 * Base framework: /_framework/base.css
 *
 * Override critique : .tool-result utilise white-space: pre-wrap + monospace
 * dans base.css. Le #result-section contient aussi du HTML non-monospace
 * (explanation-text). On neutralise pour le conteneur global, les blocs
 * monospace (.tool-output) restent intacts.
 */

/* Neutralise white-space pre-wrap et monospace du .tool-result
   pour les éléments non-code à l'intérieur de la section résultat */
#result-section {
  white-space: normal;
  font-family: var(--font-sans);
}

/* Rétablir monospace pour le bloc de commande uniquement */
#command-output {
  font-family: var(--font-mono);
  white-space: pre-wrap;
  word-break: break-all;
}

/* ============================================================
   BUTTON GROUP
   ============================================================ */

.button-group {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-xl);
  flex-wrap: wrap;
}

/* ============================================================
   OPTIONS PANELS (dynamic show/hide)
   ============================================================ */

.options-panel {
  /* Each panel is shown/hidden by JS — base display: none handled by inline style */
}

/* Options section header */
.options-section-label {
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--color-text);
  margin-bottom: var(--space-md);
  display: block;
}

/* ============================================================
   RESULT SECTIONS
   ============================================================ */

.result-section {
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--color-border-light);
}

.result-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

/* Explanation list inside result */
.explanation-text ul {
  margin: 0;
  padding-left: var(--space-xl);
  list-style-type: disc;
}

.explanation-text li {
  margin-bottom: var(--space-sm);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
}

/* ============================================================
   REQUIRED INDICATOR
   ============================================================ */

.required {
  color: var(--color-danger);
  font-weight: 600;
}

/* ============================================================
   CODE IN CONTENT SECTIONS
   ============================================================ */

.tool-explanation code,
.tool-best-practices code {
  background: var(--color-bg-muted);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: var(--color-text);
  border: 1px solid var(--color-border-light);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 640px) {
  .button-group {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .button-group .tool-button {
    width: 100%;
  }
}
