/* MinifyTool - shared header/footer (does NOT touch your existing tool styles) */
:root{
  --mt-bg:#0f172a;
  --mt-card:#111827;
  --mt-text:#e5e7eb;
  --mt-muted:#9ca3af;
  --mt-border:rgba(148,163,184,.22);
  --mt-accent:#22c55e;
  --mt-accent2:#3b82f6;
  --mt-shadow: 0 10px 30px rgba(0,0,0,.35);
}
body.mt-light{
  --mt-bg:#f8fafc;
  --mt-card:#ffffff;
  --mt-text:#0f172a;
  --mt-muted:#475569;
  --mt-border:rgba(15,23,42,.15);
}

.mt-container{max-width:1200px;margin:0 auto;padding:0 16px;}
.mt-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

.mt-site-header{
  position:sticky;top:0;z-index:9999;
  background:linear-gradient(135deg,var(--mt-card),var(--mt-bg));
  border-bottom:1px solid var(--mt-border);
  backdrop-filter: blur(10px);
}
.mt-header-inner{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:64px;}
.mt-brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--mt-text);font-weight:800;letter-spacing:.2px;}
.mt-brand-mark{
  width:36px;height:36px;border-radius:10px;
  display:grid;place-items:center;
  background:linear-gradient(135deg,var(--mt-accent2),var(--mt-accent));
  color:#fff;font-weight:900;
  box-shadow: var(--mt-shadow);
}
.mt-brand-text{font-size:1.05rem}

.mt-nav-toggle{
  display:none;
  border:1px solid var(--mt-border);
  background:rgba(255,255,255,.04);
  color:var(--mt-text);
  border-radius:12px;
  padding:10px 12px;
  cursor:pointer;
}
.mt-burger{
  width:22px;height:2px;background:var(--mt-text);
  display:block;position:relative;border-radius:10px;
}
.mt-burger::before,.mt-burger::after{
  content:"";position:absolute;left:0;width:22px;height:2px;background:var(--mt-text);border-radius:10px;
}
.mt-burger::before{top:-7px}
.mt-burger::after{top:7px}

.mt-nav{display:flex;align-items:center;gap:10px;}
.mt-nav-link,.mt-dropbtn{
  color:var(--mt-text);
  background:transparent;
  border:1px solid transparent;
  text-decoration:none;
  padding:10px 12px;
  border-radius:12px;
  font-weight:600;
  cursor:pointer;
}
.mt-nav-link:hover,.mt-dropbtn:hover{border-color:var(--mt-border);background:rgba(255,255,255,.04)}
.mt-caret{opacity:.85;margin-left:6px}

.mt-dropdown{position:relative;}
.mt-dropdown-menu{
  position:absolute;top:calc(100% + 10px);left:0;
  min-width:240px;
  background:var(--mt-card);
  border:1px solid var(--mt-border);
  border-radius:14px;
  box-shadow: var(--mt-shadow);
  padding:8px;
  display:none;
}
.mt-dropdown-menu a{
  display:block;
  padding:10px 12px;
  border-radius:10px;
  color:var(--mt-text);
  text-decoration:none;
  font-weight:600;
}
.mt-dropdown-menu a:hover{background:rgba(255,255,255,.05)}
.mt-dropdown.open .mt-dropdown-menu{display:block}

.mt-theme-toggle{
  border:1px solid var(--mt-border);
  background:rgba(255,255,255,.04);
  color:var(--mt-text);
  padding:10px 12px;
  border-radius:12px;
  cursor:pointer;
}

/* Footer */
.mt-site-footer{
  margin-top:40px;
  background:linear-gradient(135deg,var(--mt-card),var(--mt-bg));
  border-top:1px solid var(--mt-border);
  color:var(--mt-text);
}
.mt-footer-grid{
  display:grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap:22px;
  padding:28px 16px;
}
.mt-footer-col h3{margin:0 0 12px 0;font-size:1.05rem}
.mt-footer-col ul{margin:0;padding:0;list-style:none;display:grid;gap:10px}
.mt-footer-col a{color:var(--mt-muted);text-decoration:none;font-weight:600}
.mt-footer-col a:hover{color:var(--mt-text);text-decoration:underline}
.mt-footer-brand{display:flex;align-items:flex-start;gap:12px;margin-bottom:10px}
.mt-footer-name{font-weight:900;font-size:1.1rem}
.mt-footer-tagline{color:var(--mt-muted);font-weight:600;margin-top:2px}
.mt-footer-text{color:var(--mt-muted);margin:10px 0 0 0;line-height:1.7}
.mt-footer-bottom{padding:14px 16px;border-top:1px solid var(--mt-border);color:var(--mt-muted);text-align:center}

/* Make sure your tool pages still breathe below the sticky header */
body{scroll-padding-top:80px}

/* Mobile */
@media (max-width: 900px){
  .mt-nav-toggle{display:inline-flex;align-items:center;justify-content:center}
  .mt-nav{
    position:fixed;left:16px;right:16px;top:76px;
    background:var(--mt-card);
    border:1px solid var(--mt-border);
    border-radius:18px;
    box-shadow: var(--mt-shadow);
    padding:12px;
    display:none;
    flex-direction:column;
    align-items:stretch;
    max-height:calc(100vh - 96px);
    overflow:auto;
  }
  .mt-nav.is-open{display:flex}
  .mt-dropdown-menu{
    position:static;
    display:none;
    box-shadow:none;
    margin-top:8px;
    min-width:unset;
  }
  .mt-dropdown.open .mt-dropdown-menu{display:block}
  .mt-footer-grid{grid-template-columns:1fr 1fr; }
}
@media (max-width: 520px){
  .mt-footer-grid{grid-template-columns:1fr}
}