/* AIGlobalTool — Global visual consistency fix */
:root{--ag-bg:#f3f7fb;--ag-surface:#ffffff;--ag-text:#0f172a;--ag-muted:#475569;--ag-border:rgba(15,23,42,.12)}
html,body{min-height:100%;}
body{background:linear-gradient(135deg,#eef7ff 0%,#f8f5ff 45%,#eefcf8 100%) !important;background-attachment:fixed !important;color:#0f172a !important;font-family:Inter,Arial,sans-serif !important;}
/* Default text must remain readable on the light background. */
body h1,body h2,body h3,body h4,body h5,body h6,body strong,body b,body label{color:#0f172a !important;}
body p,body li,body td,body th,body .subtext,body .business-description,body .business-meta{color:#475569 !important;}
/* Dark hero sections intentionally keep white typography. */
body .pagehero,body .pagehero h1,body .pagehero h2,body .pagehero h3,body .pagehero p,body .pagehero strong,body .pagehero b,body .pagehero label{color:#fff !important;}
body .pagehero p{color:#cbd5e1 !important;}
/* Home hero is light, so keep dark typography. */
body .hero-wrapper .hero-content h1,body .hero-wrapper .hero-content p{color:#0f172a !important;}
/* Common cards/panels become clean, readable surfaces. */
body .card,body .premium-card,body .reference-card,body .business-card,body .form-card,body .panel,body .box,body .content-card{background:#fff !important;color:#0f172a !important;border-color:rgba(15,23,42,.12) !important;box-shadow:0 12px 30px rgba(15,23,42,.07) !important;}
body .card p,body .premium-card p,body .reference-card p,body .business-card p,body .form-card p{color:#475569 !important;}
/* Inputs and controls */
body input,body textarea,body select{background:#fff !important;color:#0f172a !important;border-color:rgba(15,23,42,.16) !important;}
body input::placeholder,body textarea::placeholder{color:#64748b !important;opacity:1;}
/* Header remains consistent on every page. */
body header{background:rgba(255,255,255,.94) !important;border-bottom:1px solid rgba(15,23,42,.10) !important;}
body header a,body header .qd-nav>a,body header .qd-nav .nav-strip-item,body header .qd-signin-btn{color:#0f172a !important;}
/* Prevent transparent/white text from disappearing in normal content. */
body main:not(.ag-login-page) a:not(.qd-add-btn):not(.nav-signin-btn){color:#334155;}
/* Keep buttons visually strong. */
body button,body .btn,body .button{font-family:Inter,Arial,sans-serif;}
@media(max-width:960px){body{background-attachment:scroll !important;}body .qd-nav{background:rgba(255,255,255,.98) !important;}}

/* Footer section headings — strong coloured blocks */
.ag-footer-col > div > b{display:block!important;width:fit-content;min-width:150px;padding:9px 16px!important;margin:0 0 14px!important;border-radius:8px;background:linear-gradient(90deg,#7041ff,#0284c7,#db2777)!important;color:#fff!important;font-weight:800!important;letter-spacing:.2px;box-shadow:0 6px 16px rgba(15,23,42,.16)}

/* Final header/menu appearance: animated green gradient with white menu text. */
body header{
  background:linear-gradient(110deg,#047857,#16a34a,#059669,#0f766e)!important;
  background-size:300% 300%!important;
  animation:agHeaderGreen 9s ease infinite!important;
  border-bottom:2px solid rgba(255,255,255,.28)!important;
  backdrop-filter:blur(8px)!important;
}
body header a,
body header .qd-nav>a,
body header .qd-nav .nav-strip-item,
body header .qd-signin-btn,
body header nav>a,
body header nav .dropbtn{
  color:#fff!important;
  text-shadow:0 1px 2px rgba(0,0,0,.25);
}
body header nav>a:hover,
body header nav .dropbtn:hover,
body header .qd-nav>a:hover,
body header .qd-nav .nav-strip-item:hover{
  color:#fff!important;
  transform:translateY(-1px);
}
@keyframes agHeaderGreen{
  0%{background-position:0% 50%}
  50%{background-position:100% 50%}
  100%{background-position:0% 50%}
}
@media(max-width:960px){
  body header{background:linear-gradient(110deg,#047857,#16a34a,#059669)!important;background-size:250% 250%!important}
  body header .qd-nav{background:linear-gradient(110deg,#047857,#16a34a)!important}
  body header .qd-nav>a,body header .qd-nav .nav-strip-item{color:#fff!important}
}

/* Runtime theme variables are injected by includes/footer.php after this file. */
