
:root{--bg:#ffffff;--card:#ffffff;--text:#111827;--muted:#6b7280;--border:#e5e7eb;--input-bg:#ffffff;--input-border:#3f4eee;--accent:#111827}
*{box-sizing:border-box}
html,body{margin:0;padding:0;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;background:var(--bg);color:var(--text)}
header{background:#3f4eee;color:#fff;padding:16px 20px;position:sticky;top:0;z-index:1000}
a:hover {
  background-color: #fff;   /* White background */
  color: #3f4eee !important;
  transition: all 0.3s ease;  /* Smooth animation */
}

 .active {
  background-color: #fff;   /* White background */
  color: #3f4eee !important;   /* Black text (force override) */
  border-radius: 4px;
  padding: 6px 12px;
}


.header-inner{max-width:1100px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:12px}
.brand{font-weight:700}
.nav{display:flex;gap:10px}
.nav a{color:#fff;text-decoration:none;padding:6px 10px;border-radius:6px;font-size:14px}
.container{max-width:920px;margin:28px auto;padding:0 18px}
.tool-card{background:var(--card);border:1px solid var(--border);border-radius:12px;padding:22px;box-shadow:0 8px 20px rgba(16,24,40,0.04)}
.center{display:flex;flex-direction:column;align-items:center;gap:10px}
.input{width:100%;max-width:680px;background:var(--input-bg);color:#000;border:1px solid var(--input-border);padding:12px 14px;border-radius:10px}
.btn{background:#3f4eee;color:#fff;padding:10px 14px;border-radius:10px;border:none;cursor:pointer;font-weight:700}
.btn.ghost{background:transparent;border:1px solid var(--border);color:var(--text)}
.metrics{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}
.metric{background:#f8fafc;border:1px solid var(--border);padding:10px;border-radius:8px;min-width:120px;flex:1}
.output{width:100%;max-width:780px;background:#f8fafc;border:1px dashed var(--border);padding:12px;border-radius:10px;min-height:70px;color:var(--text)}
.helper{color:var(--muted);font-size:14px;margin-top:8px;text-align:center}
.description{margin-top:18px;color:var(--text);max-width:820px;margin-left:auto;margin-right:auto}
.footer{background:#3f4eee;color:#fff;padding:18px;text-align:center;margin-top:28px}
.kv{display:flex;justify-content:space-between;gap:10px;align-items:center}
.badge{display:inline-block;padding:6px 10px;border-radius:999px;background:#eef2ff;color:#312e81;border:1px solid #e0e7ff}
@media(max-width:720px){.metrics{flex-direction:column}.nav{flex-wrap:wrap}}
