/* k8s Configurator — minimal styles. No framework. */

.k8sc-root, .k8sc-root * { box-sizing: border-box; }
.k8sc-root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1a1a1a;
  background: #fafafa;
  padding: 1.2rem;
  border-radius: 8px;
  max-width: 1100px;
  margin: 0 auto;
}
.k8sc-root h2 { margin: 0 0 1rem; font-size: 1.3rem; }
.k8sc-root h3 { margin: 1rem 0 0.5rem; font-size: 1rem; color: #444; }

.k8sc-locked {
  padding: 1rem;
  background: #fff8e0;
  border: 1px solid #e0c060;
  border-radius: 6px;
  text-align: center;
}

.k8sc-tabs {
  display: flex;
  gap: 4px;
  margin: 0.6rem 0 0;
  border-bottom: 2px solid #2b5cb5;
}
/* GeneratePress (and most themes) globally style <button> with white text
 * on a coloured background. Force our palette with higher specificity so
 * the tabs aren't invisible. */
.k8sc-root .k8sc-tabs button {
  background: #e6ecf7 !important;
  color: #1a2548 !important;
  border: 1px solid #b6c4dd !important;
  border-bottom: none !important;
  padding: 0.5rem 1rem !important;
  cursor: pointer;
  border-radius: 6px 6px 0 0 !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  text-shadow: none !important;
  margin: 0 !important;
}
.k8sc-root .k8sc-tabs button:hover {
  background: #d5dff0 !important;
  color: #0c1a3e !important;
}
.k8sc-root .k8sc-tabs button[aria-selected="true"] {
  background: #2b5cb5 !important;
  color: #ffffff !important;
  border-color: #2b5cb5 !important;
  font-weight: 700 !important;
}

.k8sc-row { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: flex-end; margin: 0.4rem 0; }
.k8sc-field { display: flex; flex-direction: column; gap: 0.2rem; min-width: 12rem; flex: 1; }
.k8sc-field label { font-size: 0.85rem; color: #555; }
.k8sc-field input, .k8sc-field textarea, .k8sc-field select {
  font: inherit;
  padding: 0.4rem 0.6rem;
  border: 1px solid #b9b9bc;
  border-radius: 4px;
  background: #fff;
}
.k8sc-field textarea { font-family: ui-monospace, monospace; font-size: 0.85rem; min-height: 10rem; }

.k8sc-actions { display: flex; gap: 0.5rem; margin: 0.8rem 0; align-items: center; flex-wrap: wrap; }
.k8sc-root .k8sc-actions button {
  padding: 0.55rem 1.2rem !important;
  font: inherit !important;
  font-weight: 600 !important;
  border: 1px solid #2b5cb5 !important;
  background: #2b5cb5 !important;
  color: #ffffff !important;
  border-radius: 5px !important;
  cursor: pointer !important;
  text-shadow: none !important;
}
.k8sc-root .k8sc-actions button:hover:not([disabled]) { background: #224994 !important; }
.k8sc-root .k8sc-actions button[disabled] { opacity: 0.45 !important; cursor: not-allowed !important; }
.k8sc-root .k8sc-actions button.secondary {
  background: #ffffff !important;
  color: #2b5cb5 !important;
}
.k8sc-root .k8sc-actions button.secondary:hover:not([disabled]) { background: #eef3fb !important; }
.k8sc-root .k8sc-actions button.danger {
  background: #b53a3a !important;
  border-color: #b53a3a !important;
  color: #fff !important;
}

.k8sc-status {
  padding: 0.5rem 0.8rem;
  border-radius: 4px;
  font-size: 0.9rem;
  margin: 0.6rem 0;
}
.k8sc-status.info  { background: #e8f1fb; color: #163b71; }
.k8sc-status.warn  { background: #fff3cd; color: #5e4400; }
.k8sc-status.error { background: #fde9e9; color: #720000; }
.k8sc-status.ok    { background: #e6f7e9; color: #1a4d20; }

.k8sc-manifest {
  font-family: ui-monospace, monospace;
  font-size: 0.82rem;
  background: #1d1d22;
  color: #eaeaea;
  padding: 0.8rem;
  border-radius: 6px;
  overflow: auto;
  max-height: 28rem;
  white-space: pre;
}

.k8sc-root .k8sc-manifest-edit {
  width: 100% !important;
  display: block !important;
  font-family: ui-monospace, "SF Mono", Consolas, monospace !important;
  font-size: 0.82rem !important;
  line-height: 1.4 !important;
  background: #1d1d22 !important;
  color: #eaeaea !important;
  padding: 0.8rem !important;
  border-radius: 6px !important;
  border: 1px solid #444 !important;
  resize: vertical !important;
  min-height: 22rem !important;
  white-space: pre !important;
  tab-size: 2 !important;
  -moz-tab-size: 2 !important;
  caret-color: #eaeaea !important;
}
.k8sc-root .k8sc-manifest-edit:focus { outline: 2px solid #4f7fcf !important; }

.k8sc-review { background: #fff; padding: 0.8rem; border: 1px solid #ddd; border-radius: 6px; }
.k8sc-review .verdict { font-weight: 700; text-transform: uppercase; padding: 0.1rem 0.5rem; border-radius: 3px; }
.k8sc-review .verdict.go   { background: #cdedd0; color: #134e1a; }
.k8sc-review .verdict.warn { background: #fde6c2; color: #663400; }
.k8sc-review .verdict.fix  { background: #fbcaca; color: #5b0000; }

.k8sc-concerns ul { list-style: none; padding: 0; margin: 0.4rem 0; }
.k8sc-concerns li { padding: 0.4rem 0.6rem; border-bottom: 1px solid #eee; font-size: 0.88rem; }
.k8sc-concerns li .sev { display: inline-block; min-width: 3.2rem; font-weight: 600; text-transform: uppercase; font-size: 0.7rem; }
.k8sc-concerns li.sev-error .sev { color: #b53a3a; }
.k8sc-concerns li.sev-warn  .sev { color: #a07800; }
.k8sc-concerns li.sev-info  .sev { color: #325aa0; }

.k8sc-table { width: 100%; border-collapse: collapse; margin-top: 0.8rem; font-size: 0.9rem; }
.k8sc-table th, .k8sc-table td { text-align: left; padding: 0.3rem 0.5rem; border-bottom: 1px solid #eee; color: #1a1a1a; }
.k8sc-table th { background: #eee; color: #1a1a1a; }

/* Per-row action buttons: edit is neutral blue, delete is red. They sit
 * next to each other in the last cell — give them breathing room so the
 * user doesn't mis-click. */
.k8sc-root .k8sc-table button {
  font: inherit !important;
  font-size: 0.82rem !important;
  padding: 0.25rem 0.8rem !important;
  background: #2b5cb5 !important;
  color: #fff !important;
  border: 1px solid #2b5cb5 !important;
  border-radius: 4px !important;
  cursor: pointer !important;
  margin-right: 0.5rem !important;
  text-shadow: none !important;
}
.k8sc-root .k8sc-table button:last-child { margin-right: 0 !important; }
.k8sc-root .k8sc-table button:hover { background: #224994 !important; border-color: #224994 !important; }
.k8sc-root .k8sc-table button.danger {
  background: #b53a3a !important;
  border-color: #b53a3a !important;
}
.k8sc-root .k8sc-table button.danger:hover {
  background: #8a2828 !important;
  border-color: #8a2828 !important;
}

.k8sc-meta { color: #777; font-size: 0.85rem; margin-top: 0.4rem; }

.k8sc-footer {
  margin-top: 1.4rem;
  padding-top: 0.8rem;
  border-top: 1px solid #ddd;
  text-align: center;
  font-size: 0.82rem;
  color: #777;
}
.k8sc-footer code {
  background: #eef0f7;
  color: #2b3b66;
  padding: 0.05rem 0.4rem;
  border-radius: 3px;
  font-family: ui-monospace, monospace;
  font-size: 0.78rem;
}
.k8sc-footer a { color: #2453b5; }
.k8sc-footer a:hover { text-decoration: underline; }

.k8sc-header { background: #f4f6fb; border: 1px solid #d9e0ee; padding: 1rem 1.2rem; border-radius: 6px; margin-bottom: 1.2rem; }
.k8sc-header-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.4rem; }
.k8sc-header h2 { margin: 0; }
/* docs link styled like a primary nav tab — matches the dark-blue palette
 * of the configurator's own k8sc-tabs[aria-selected=true] button. */
.k8sc-root .k8sc-doclink {
  display: inline-block !important;
  padding: 0.45rem 1.1rem !important;
  background: #2b5cb5 !important;
  color: #ffffff !important;
  border-radius: 5px !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  font-size: 0.92rem !important;
  border: 1px solid #2b5cb5 !important;
  line-height: 1.2 !important;
}
.k8sc-root .k8sc-doclink:hover { background: #224994 !important; color: #fff !important; }

/* Token hot-swap panel — collapsed <details>; expand only when needed. */
.k8sc-root .k8sc-token-panel {
  margin-top: 0.9rem;
  background: #fff;
  border: 1px solid #ccd5e8;
  border-radius: 5px;
  padding: 0.4rem 0.8rem;
}
.k8sc-root .k8sc-token-panel summary {
  cursor: pointer;
  font-weight: 600;
  color: #2c3550;
  padding: 0.2rem 0;
  list-style: none;
}
.k8sc-root .k8sc-token-panel summary::-webkit-details-marker { display: none; }
.k8sc-root .k8sc-token-panel[open] summary { border-bottom: 1px solid #eaecf3; margin-bottom: 0.5rem; }
.k8sc-root .k8sc-token-body { padding: 0.4rem 0.2rem; }
.k8sc-root .k8sc-token-body input[type=password] {
  width: 100% !important;
  font-family: ui-monospace, monospace !important;
}
.k8sc-root .k8sc-token-body button {
  padding: 0.4rem 0.9rem !important;
  background: #2b5cb5 !important;
  color: #fff !important;
  border: 1px solid #2b5cb5 !important;
  border-radius: 4px !important;
  cursor: pointer !important;
  font-weight: 600 !important;
}
.k8sc-root .k8sc-token-body button:hover:not([disabled]) { background: #224994 !important; }
.k8sc-root .k8sc-token-body button[disabled] { opacity: 0.4 !important; cursor: not-allowed !important; }
.k8sc-lede { font-size: 0.95rem; color: #2c3550; margin: 0 0 0.6rem; line-height: 1.4; }
.k8sc-lede code { background: #e3e9f7; padding: 0 0.3rem; border-radius: 3px; font-size: 0.85em; }
.k8sc-steps { margin: 0; padding-left: 1.2rem; font-size: 0.88rem; color: #45506e; line-height: 1.6; }
.k8sc-steps li { margin: 0.1rem 0; }
.k8sc-steps b { color: #1a2548; }
.k8sc-steps code { background: #e3e9f7; padding: 0 0.3rem; border-radius: 3px; font-size: 0.95em; }
.k8sc-steps em { font-style: normal; padding: 0.05rem 0.35rem; border-radius: 3px; background: #e3e9f7; }

.k8sc-examples { margin-top: 0.5rem; display: flex; gap: 0.3rem; flex-wrap: wrap; align-items: center; }
.k8sc-root .k8sc-chip {
  font: inherit !important;
  font-size: 0.8rem !important;
  padding: 0.2rem 0.7rem !important;
  border: 1px solid #b6c4dd !important;
  background: #e9eef8 !important;
  color: #1a2548 !important;
  border-radius: 999px !important;
  cursor: pointer !important;
  text-shadow: none !important;
}
.k8sc-root .k8sc-chip:hover { background: #d6e0f3 !important; color: #0c1a3e !important; }
