/* Shared styles for the Security category generators
 * (API key, token, bearer, webhook, laravel app-key, oauth, jwt, etc.)
 *
 * Loaded by each security-tools page so the visual language is consistent
 * without duplicating ~200 lines of CSS in every PHP shell. */

.page-wrap.page-full { grid-template-columns: 1fr; gap: 0; }
.page-wrap.page-full > main { padding-right: 0; }

.st-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 22px; margin-top: 14px; }
.st-card h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--brand); font-weight: 700; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.st-card h3 small { font-weight: 400; color: var(--ink-3); text-transform: none; letter-spacing: 0; font-size: 11px; }

.st-row { display: grid; grid-template-columns: repeat(var(--st-cols, 3), 1fr); gap: 10px 14px; }
@media (max-width: 720px) { .st-row { grid-template-columns: 1fr 1fr; } }
.st-row.cols-2 { --st-cols: 2; }
.st-row.cols-4 { --st-cols: 4; }
@media (max-width: 800px) { .st-row.cols-4 { grid-template-columns: 1fr 1fr; } }
.st-field label { display: block; font-size: 12px; font-weight: 600; color: var(--ink-2); margin-bottom: 4px; }
.st-field input, .st-field select, .st-field textarea {
  width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: 6px;
  font: inherit; font-size: 14px; background: #fff; color: var(--ink); box-sizing: border-box;
}
.st-field textarea { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 13px; line-height: 1.55; min-height: 70px; resize: vertical; }
.st-field input:focus, .st-field select:focus, .st-field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(31,78,121,.12); }

.st-toggles { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; font-size: 13px; color: var(--ink-2); }
.st-toggles label { display: flex; align-items: center; gap: 6px; cursor: pointer; user-select: none; }

.st-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.st-btn {
  padding: 10px 22px; background: var(--brand); color: #fff; border: none;
  border-radius: 6px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.st-btn:hover { background: #16385A; }
.st-btn.alt   { background: #fff; color: var(--ink); border: 1px solid var(--line); font-weight: 500; }
.st-btn.alt:hover { border-color: var(--brand); color: var(--brand); }
.st-btn.tiny  { padding: 6px 12px; font-size: 12px; font-weight: 500; }
.st-btn:disabled { opacity: 0.55; cursor: not-allowed; }

.st-out {
  background: #1A2332; color: #E8ECF1; padding: 16px 18px; border-radius: var(--r-md);
  font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 14px; line-height: 1.65;
  white-space: pre-wrap; word-break: break-all; margin-top: 14px;
  max-height: 480px; overflow-y: auto;
  position: relative;
}
.st-out:empty::before { content: 'Click "Generate" — the output appears here.'; color: #8896A6; font-style: italic; }
.st-out .keylabel {
  display: inline-block; background: #2B7FC4; color: #fff; padding: 1px 8px;
  border-radius: 3px; font-size: 11px; font-weight: 700; margin-right: 6px; letter-spacing: 0.04em;
}
.st-out .secretlabel { background: #C77B00; }
.st-out .pair { padding: 6px 0; border-bottom: 1px dashed #2A3445; }
.st-out .pair:last-child { border-bottom: 0; }

.st-info {
  background: #E8F1FA; color: #1F4E79; padding: 10px 14px;
  border-radius: 6px; font-size: 12.5px; margin-top: 10px; line-height: 1.55;
}
.st-info code { background: rgba(31,78,121,0.10); padding: 1px 6px; border-radius: 3px; font-size: 12px; }
.st-info b { font-weight: 700; }

.st-toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: #0B7A2C; color: #fff; padding: 8px 18px; border-radius: 999px;
  font-size: 13px; opacity: 0; transition: opacity 0.2s; pointer-events: none; z-index: 1000;
}
.st-toast.on { opacity: 1; }
