/* tools.css */
/* Shared dark theme for tools + about pages (matches index.html theme) */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-cyan: #00d4ff;
  --secondary-blue: #0099cc;
  --dark-bg: #0a0e27;
  --darker-bg: #050810;
  --card-bg: #1a1f3a;
  --text-primary: #ffffff;
  --text-secondary: #b8c5d6;
  --accent-glow: rgba(0, 212, 255, 0.15);
  --border-color: rgba(0, 212, 255, 0.2);
  --gold: #f5c542;
--gold-border: rgba(245, 197, 66, 0.55);
--gold-text: #f9e2a8;
  --accent: var(--primary-cyan);
  --focus-ring: rgba(0, 212, 255, 0.25);



  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial;
  --radius: 16px;
}

html, body {
  background: linear-gradient(180deg, var(--darker-bg), var(--dark-bg));
  color: var(--text-primary);
  font-family: var(--sans);
  line-height: 1.6;
}

.brand-logo{
  width: 62px;
  height:62px;
  border-radius: 14px;
  object-fit: contain;
  transition: transform 0.25s ease;
  transform-origin: left center;
}
.brand-logo:hover{
  transform: scale(1.15);
}
a {
  color: var(--primary-cyan);
  text-decoration: none;
}

a:hover {
  opacity: 0.9;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.container.narrow {
  max-width: 980px;
  margin: 0 auto;
  padding: 32px 20px;
}

/* Simple top header (optional, hidden when printing) */
.site-header {
  background: rgba(10, 14, 39, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.10);
}

.site-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
}

.site-header .logo img {
  height: 48px;
  width: auto;
  transition: transform 0.3s ease;
}

.site-header .logo:hover img {
  transform: scale(1.12);
}

/* Page titles */
.page-title {
  font-family: "Space Grotesk", var(--sans);
  font-size: 2.4rem;
  line-height: 1.2;
  margin-bottom: 10px;
  background: linear-gradient(135deg, var(--primary-cyan) 0%, #ffffff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  color: var(--text-secondary);
  margin-bottom: 22px;
  font-size: 1.05rem;
}

/* Layout blocks */
.wrap {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 16px;
}

.card {
  background: linear-gradient(180deg, rgba(26, 31, 58, 0.95), rgba(19, 26, 49, 0.95));
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-glow) 0%, transparent 60%);
  opacity: 0.35;
  pointer-events: none;
}

.card > * {
  position: relative;
  z-index: 1;
}

/* =========================================
   Checklist & expandable sections (tools)
   ========================================= */

.section{
  margin-top: 14px;
}

.section h2{
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.block{
  margin-top: 10px;
}

/* Checklist rows */
.chk{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 8px 0;
}

.chk input[type="checkbox"]{
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--primary-cyan);
}

.chk label{
  flex: 1;
}

/* OS accordion blocks */
details.os{
  margin-top: 14px;
}

details.os > summary{
  list-style: none;
  cursor: pointer;
  user-select: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

details.os > summary::-webkit-details-marker{
  display: none;
}

.chev{
  transition: transform 0.2s ease;
}

details[open] .chev{
  transform: rotate(90deg);
}

.os-content{
  margin-top: 10px;
}

/* Footer note */
.foot{
  margin: 18px 4px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Print rules */
@media print{
  .no-print{
    display: none !important;
  }
}


.notice {
  background: rgba(0, 212, 255, 0.06);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 16px;
  margin: 16px 0;
}

.kicker {
  font-weight: 700;
  color: var(--primary-cyan);
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}

.muted {
  color: var(--text-secondary);
}

.small {
  font-size: 0.95rem;
}

/* Buttons */
.btn-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 700;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-align: center;
}

.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);
}

.btn.light {
  background: rgba(0, 212, 255, 0.10);
  border-color: var(--border-color);
  color: var(--primary-cyan);
}

.btn.light:hover {
  transform: translateY(-2px);
}

/* Tool header row */
.tool-header {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-badge {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.25), rgba(0, 153, 204, 0.20));
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

h1, h2, h3 {
  font-family: "Space Grotesk", var(--sans);
}

h2 {
  font-size: 1.35rem;
  margin: 0 0 10px 0;
}

h3 {
  font-size: 1.1rem;
  margin: 18px 0 8px 0;
}

p { margin: 10px 0; }

ol, ul {
  margin: 8px 0 16px 22px;
}

li { margin: 6px 0; }

/* Analyzer form elements */
textarea {
  width: 100%;
  min-height: 260px;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  background: rgba(5, 8, 16, 0.65);
  color: var(--text-primary);
  padding: 14px;
  font-family: var(--mono);
  outline: none;
}

textarea:focus {
  border-color: var(--primary-cyan);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 900px) {
  .grid-2 { grid-template-columns: 1.3fr 0.7fr; }
}

.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;
}

.kpi {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.badge {
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.85rem;
  border: 1px solid transparent;
}

.ok {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.35);
  color: #a7f3d0;
}

.warn {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.35);
  color: #fde68a;
}

.bad {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.35);
  color: #fecaca;
}

details {
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 12px;
  background: rgba(5, 8, 16, 0.55);
}

details summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--text-primary);
}

code, pre {
  font-family: var(--mono);
  border-radius: 12px;
  border: 1px solid rgba(0, 212, 255, 0.18);
  background: rgba(5, 8, 16, 0.65);
  color: #e7ecff;
}

code { padding: 2px 8px; }
pre  { padding: 12px; overflow-x: auto; white-space: pre-wrap; }

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  border-bottom: 1px solid rgba(0, 212, 255, 0.16);
  padding: 10px 8px;
  text-align: left;
}

.footer {
  margin: 24px 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.page-footer {
  margin-top: 28px;
  padding: 18px 0 30px;
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
}

/* Keep “buttons at bottom” consistent spacing */
.bottom-actions {
  margin-top: 26px;
}

/* Legal disclaimer (gold box, consistent across tools + about pages) */
.legal-disclaimer{
  margin-top: 60px;
  background: var(--card-bg);
  border: 1px solid var(--gold-border);
  border-radius: 12px;
  padding: 24px;
  color: var(--gold-text);
  font-size: 0.95rem;
  line-height: 1.65;
}

.legal-disclaimer strong{
  color: var(--gold);
  font-size: 1rem;
  display: block;
  margin-bottom: 10px;
}


/* new legal disclaimer to match the policy generators */

/* ==============================
   Passphrase Helper Tool Styles
   ============================== */

.passphrase-output,
.passphrase-input,
.passphrase-select{
  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: ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;
}

.passphrase-select{
  font-family: inherit;
}

.passphrase-meter{
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: rgba(255,255,255,0.04);
}

.passphrase-meter-bar{
  height: 100%;
  width: 0%;
  transition: width .3s, background-color .3s;
}

.passphrase-details{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

.passphrase-detail{
  border: 1px solid var(--border-color);
  background: rgba(255,255,255,0.03);
  color: var(--text-secondary);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
}

/* =========================================
   High-visibility generated output fields
   (passwords / passphrases / tokens)
   ========================================= */

.output-field{
  width: 100%;
  padding: 18px 20px;
  min-height: 64px;

  font-size: 1.05rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: 0.02em;

  border-radius: 14px;
  border: 1px solid var(--border-color);
  background: rgba(0, 212, 255, 0.06);

  color: var(--text-primary);
  cursor: text;
}

.output-field:focus{
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--focus-ring);
}

/* About page helpers */
.lead{
  font-size: 1.05rem;
  color: var(--text-secondary);
}

.note{
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  background: rgba(0, 212, 255, 0.06);
  color: var(--text-secondary);
}

.kbd{
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  border: 1px solid rgba(0, 212, 255, 0.18);
  background: rgba(5, 8, 16, 0.65);
  color: #e7ecff;
  font-family: var(--mono);
  font-size: 0.95em;
}

.table{
  width: 100%;
  border-collapse: collapse;
}

.table-wrapper{
  overflow-x: auto;
}

.mono{
  font-family: var(--mono);
}


/* Print */
@media print {
  .no-print { display: none !important; }
  html, body { background: #ffffff !important; color: #000000 !important; }
  .container.narrow { max-width: 100% !important; padding: 0 !important; }
  .card, .notice, details, code, pre {
    background: #ffffff !important;
    color: #000000 !important;
    border-color: #dddddd !important;
    box-shadow: none !important;
  }
  a[href]:after { content: " (" attr(href) ")"; font-size: 0.85em; color: #555; }
}
