/* ==============================
   Daneia.it  Clean CSS
   Template-like dashboard vibe
   ============================== */

/* TOKENS */
:root{
  --primary:#3d9ccd;
  --primary-2:#2c80ab;

  --page:#fafafa;
  --panel:#ffffff;
  --sidebar:#f5f5f5;

  --border:#dbdbdb;
  --border-2:#eeeeee;

  --text:#333333;
  --muted:#777777;

  --radius:4px;
  --font:"Open Sans", Arial, sans-serif;
}

/* BASE */
*{box-sizing:border-box}
html,body{height:100%}

body{
  margin:0;
  font-family:var(--font);
  font-weight:300;          /* Open Sans Light */
  font-size:14px;
  line-height:1.42857143;
  color:var(--text);
  background:var(--page);
  overflow-x:hidden;
}

/* kill old neon bg layer */
.bg{display:none}

/* =========================
   DASHBOARD LAYOUT
   ========================= */

/* TOPBAR */
.topbar{
  position:fixed;
  top:0; left:0; right:0;
  height:50px;
  background:var(--primary);
  border-bottom:1px solid var(--primary-2);
  z-index:1000;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 14px;
}

.topbarLeft{
  display:flex;
  align-items:center;
  gap:14px;
  min-width:0;
}

.topBrand{
  display:flex;
  align-items:center;
  gap:10px;
  color:#fff;
  text-decoration:none;
  transition:opacity .3s ease-in;
}
.topBrand:hover{opacity:.92}

.topLogo{
  width:34px;height:34px;
  border-radius:var(--radius);
  background:rgba(255,255,255,.18);
  display:grid;
  place-items:center;
  font-weight:700;
}

.topBrandText{line-height:1.05}
.topTitle{font-weight:700;font-size:14px}
.topSub{font-size:12px;opacity:.9}

.topNav{
  display:flex;
  gap:0;
}

.topNavLink{
  display:block;
  color:#fff;
  text-decoration:none;
  text-transform:uppercase;
  font-size:13px;
  padding:14px 12px;
  border-left:1px solid rgba(255,255,255,.18);
  border-right:1px solid rgba(0,0,0,.08);
  position:relative;
  transition:background-color .3s ease-in,color .3s ease-in;
}
.topNavLink:hover,
.topNavLink:focus{
  background:var(--primary-2);
  color:#fff;
  outline:none;
}
.topNavLink:hover::after,
.topNavLink:focus::after{
  content:"";
  position:absolute;
  left:0;right:0;top:0;
  height:1px;
  background:rgba(255,255,255,.25);
}
.topNavLink:hover::before,
.topNavLink:focus::before{
  content:"";
  position:absolute;
  left:0;right:0;bottom:0;
  height:1px;
  background:rgba(0,0,0,.10);
}

.topbarRight{
  display:flex;
  align-items:center;
  gap:10px;
}

.topPill{
  color:#fff;
  font-size:12px;
  padding:6px 10px;
  border:1px solid rgba(255,255,255,.25);
  background:rgba(255,255,255,.12);
  border-radius:999px;
  white-space:nowrap;
}

.topBtn{
  background:var(--primary-2);
  border:1px solid rgba(255,255,255,.22);
  color:#fff;
  padding:6px 10px;
  border-radius:var(--radius);
  cursor:pointer;
  font-size:13px;
}
.topBtn:hover{background:#256b8f}

/* SIDEBAR */
.sidebar{
  position:fixed;
  top:50px;
  left:0;
  bottom:0;
  width:280px;
  background:var(--sidebar);
  border-right:1px solid var(--border-2);
  overflow:auto;
  padding:0;
  z-index:999;
}

.sidebarSection{padding:12px 0}

.sidebarLabel{
  padding:10px 14px 6px;
  font-size:12px;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:.06em;
  font-weight:600;
}

/* EXACT template behavior: hover + active -> blue + white */
.sideLink{
  display:flex;
  align-items:center;
  gap:10px;

  padding:10px 14px;
  margin:0;

  border-radius:0;
  text-decoration:none;

  color:#555;
  background:transparent;

  border:0;
  border-top:1px solid #fff;
  border-bottom:1px solid var(--border);

  font-size:16px;

  transition:background-color .3s ease-in,color .3s ease-in;
}
.sideLink:first-of-type{border-top:none}

.sideLink:hover,
.sideLink:focus{
  background:#428bca;
  color:#fff;
  outline:none;
}

.sideLink.active,
.sideLink.active:hover,
.sideLink.active:focus{
  background:#428bca;
  color:#fff;
}

.sideIcon{
  width:18px;
  text-align:center;
  color:inherit;
  transition:color .3s ease-in;
}

.sidebarFooter{
  padding:12px 14px;
  border-top:1px solid var(--border);
  color:var(--muted);
  font-size:12px;
}

/* MAIN AREA */
.mainArea{
  margin-left:280px;
  padding-top:50px;
  background:var(--page);
}

/* responsive */
@media (max-width:980px){
  .sidebar{
    position:static;
    width:auto;
    height:auto;
    border-right:none;
    border-bottom:1px solid var(--border-2);
  }
  .mainArea{
    margin-left:0;
    padding-top:50px;
  }
  .topNav{display:none;}
}

/* =========================
   DASHBOARD ADDITIONS
   ========================= */

.pageHeader{padding:18px 22px 10px}
.pageHeader h1{
  margin:0;
  font-size:24px;
  font-weight:400;
}
.pageSub{
  margin-top:6px;
  color:var(--muted);
  font-size:14px;
}

.dashboardRow{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
  padding:10px 22px 0;
}
@media (max-width:980px){
  .dashboardRow{grid-template-columns:1fr}
}

.miniCard{
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:14px 16px;
  box-shadow:0 1px 2px rgba(0,0,0,.05);
}
.miniTitle{font-size:13px;color:var(--muted)}
.miniValue{
  font-size:22px;
  font-weight:600;
  margin-top:6px;
  color:var(--text);
}
.miniSub{margin-top:4px;font-size:12px;color:#999}

.infoAlert{
  margin:16px 22px 0;
  padding:12px 14px;
  border:1px solid #bce8f1;
  background:#d9edf7;
  color:#31708f;
  border-radius:var(--radius);
  font-size:13px;
}

/* =========================
   APP SHELL + QUESTION CARD
   ========================= */

.shell{
  min-height:calc(100vh - 50px);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  padding:22px 16px;
  gap:18px;
}

.card{
  width:min(860px,96vw);
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:0 2px 6px rgba(0,0,0,.10);
  overflow:hidden;
}

.header{
  display:flex;
  gap:18px;
  align-items:center;
  justify-content:space-between;
  padding:18px 18px;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
}

.logo{
  width:40px;height:40px;
  border-radius:var(--radius);
  display:grid;
  place-items:center;
  background:#e7f4fb;
  border:1px solid var(--border);
  color:var(--primary);
  font-weight:700;
}

h1{margin:0;font-size:18px;font-weight:400}
.sub{margin:2px 0 0;color:var(--muted);font-size:12.5px}

.divider{height:1px;background:var(--border)}
.content{padding:18px}
.screen.hidden{display:none}

h2{
  margin:4px 0 10px;
  font-size:22px;
  color:var(--text);
  font-weight:400;
}

.muted{color:var(--muted)}
.tiny{font-size:12px;color:var(--muted)}

/* =========================
   START TILES
   ========================= */

.grid2{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  margin-top:14px;
}
@media (max-width:720px){
  .header{flex-direction:column;align-items:flex-start}
  .grid2{grid-template-columns:1fr}
}

.tile{
  text-align:left;
  padding:16px;
  border-radius:var(--radius);
  border:1px solid var(--border);
  background:#fff;
  cursor:pointer;
  transition:background-color .25s ease,border-color .25s ease;
}
.tile:hover{
  background:#f5f5f5;
  border-color:#cfcfcf;
}
.tileTitle{
  display:block;
  font-weight:700;
  font-size:16px;
  color:var(--text);
}
.tileDesc{
  display:block;
  margin-top:8px;
  color:#666;
  font-size:13.5px;
  line-height:1.45;
}

.hint{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:14px;
  padding:10px 12px;
  border-radius:999px;
  border:1px dashed var(--border);
  background:#fff;
  width:fit-content;
}
.dot{
  width:8px;height:8px;border-radius:50%;
  background:var(--primary);
}

/* =========================
   QUESTION UI
   ========================= */

.qTop{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:10px;
}
.pill{
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background:#fff;
  font-size:12.5px;
}
.pill.subtle{
  background:#f5f5f5;
  color:var(--muted);
}

.qBody{
  margin-top:14px;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.field{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.label{font-size:13px;color:var(--muted)}

input[type="text"],
input[type="number"],
select,
textarea{
  width:100%;
  padding:10px 10px;
  border-radius:var(--radius);
  border:1px solid #cbcbcb;
  background:#fff;
  color:var(--text);
  outline:none;
  font-family:inherit;
  font-weight:300;
}
textarea{min-height:96px;resize:vertical}

input[type="text"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus{
  border-color:#66afe9;
  box-shadow:0 0 8px rgba(102,175,233,.35);
}

/* select wrap + arrow */
.selectWrap{position:relative;width:100%}
.selectWrap select{
  padding-right:34px;
  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:none;
}
.selectWrap::after{
  content:"▾";
  position:absolute;
  right:10px;
  top:50%;
  transform:translateY(-50%);
  color:#888;
  pointer-events:none;
  font-size:12px;
  line-height:1;
}

select option{background:#fff;color:#333}
select option[value=""]{color:#888}
select option:checked{background:#e7f4fb;color:#1f2a33}

/* choices */
.choiceGrid{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
}
.choice{
  display:flex;
  gap:10px;
  align-items:flex-start;
  padding:12px 12px;
  border-radius:var(--radius);
  border:1px solid var(--border);
  background:#fff;
  cursor:pointer;
  transition:background-color .25s ease;
}
.choice:hover{background:#f5f5f5}
.choice input{margin-top:3px}
.choice .title{font-weight:600}
.choice .desc{color:var(--muted);font-size:12.5px;margin-top:2px}

/* actions + buttons */
.actions{
  margin-top:18px;
  display:flex;
  justify-content:space-between;
  gap:10px;
}
.btn{
  padding:8px 12px;
  border-radius:var(--radius);
  border:1px solid #318fbf;
  background:var(--primary);
  color:#fff;
  font-weight:600;
  cursor:pointer;
}
.btn:hover{background:var(--primary-2);border-color:#256b8f}
.btn:disabled{opacity:.55;cursor:not-allowed}

.btn.ghost{
  background:#fff;
  color:var(--text);
  border:1px solid var(--border);
  font-weight:600;
}
.btn.ghost:hover{background:#f5f5f5}

/* progress */
.progressWrap{
  width:min(320px,100%);
  display:flex;
  flex-direction:column;
  gap:8px;
}
.progressMeta{
  display:flex;
  justify-content:space-between;
  font-size:12px;
  color:var(--muted);
}
.progressBar{
  height:10px;
  border-radius:999px;
  border:1px solid var(--border);
  background:#f5f5f5;
  overflow:hidden;
}
.progressFill{height:100%;background:var(--primary);width:0%}

/* =========================
   RESULTS / OFFERS
   ========================= */

.offers{
  margin-top:14px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}
@media (max-width:820px){
  .offers{grid-template-columns:1fr}
}

.offerCard{
  padding:16px;
  border-radius:var(--radius);
  border:1px solid var(--border);
  background:#fff;
}

.offerTop{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:flex-start;
}

.badge{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background:#f5f5f5;
  color:#555;
  white-space:nowrap;
}

.offerName{font-weight:700;font-size:16px;margin:0}
.offerSub{
  margin:6px 0 0;
  color:var(--muted);
  font-size:13px;
  line-height:1.35;
}

.kpis{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:12px;
}
.kpi{
  padding:10px;
  border-radius:var(--radius);
  border:1px solid #e8e8e8;
  background:#f6f6f6;
}
.kpi .k{color:#666;font-size:12px}
.kpi .v{font-size:14px;font-weight:600;margin-top:2px}

.offerActions{
  margin-top:14px;
  display:flex;
  gap:10px;
  justify-content:flex-end;
}
.offerActions .btn{
  padding:8px 10px;
  border-radius:var(--radius);
  font-size:13px;
}

.resultsMeta{
  margin-top:10px;
  padding:12px 12px;
  border-radius:var(--radius);
  border:1px solid var(--border);
  background:#fff;
  color:var(--muted);
  font-size:13px;
  line-height:1.45;
}

/* footer */
.footer{
  width:min(860px,96vw);
  display:flex;
  justify-content:space-between;
  color:#888;
  font-size:12px;
  padding:0 6px;
}


/* ==========================================
   FRESH PALETTE (MORE VARIETY) – SAFE PATCH
   Paste at VERY END of styles.css
   Uses:
   - Blue (#1e3a8a) for strong text + topbar
   - Lime (#84cc16) for accents/active indicators/progress
   - Pink (#fb7185) for hover + secondary accents
   ========================================== */

:root{
  --primary:#1e3a8a;
  --primary-2:#162d6b;

  --accent:#84cc16;     /* lime */
  --accent-2:#fb7185;   /* pink */

  --page:#f9faf9;
  --panel:#ffffff;

  --sidebar:#f9faf9;

  --border:#e5e7eb;
  --border-2:#eef2f7;

  --text:#374151;
  --text-strong:#0b0b0b;
  --muted:#6b7280;

  --font:"Open Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial;
}

body{
  background:var(--page) !important;
  color:var(--text) !important;
  font-family:var(--font) !important;
  font-weight:300 !important;
}

/* =========================
   Strong headings: BLUE
   ========================= */
h1,h2,.blue{
  color:var(--primary) !important;
}

/* =========================
   TOPBAR: keep blue, add lime underline + pink hover
   ========================= */
.topbar{
  background:var(--primary) !important;
  border-bottom:3px solid var(--accent) !important; /* lime bar */
  box-shadow:0 1px 0 rgba(0,0,0,.10) !important;
}

/* nav links: default subtle, hover = pink */
.topNavLink{
  transition: background-color .3s ease-in, color .3s ease-in !important;
}
.topNavLink:hover,
.topNavLink:focus{
  background-color:var(--accent-2) !important; /* pink hover */
  color:#fff !important;
  outline:none !important;
}

/* optional: active top link style */
.topNavLink.active{
  background-color:rgba(132,204,22,0.22) !important; /* lime tint */
  box-shadow: inset 0 -3px 0 var(--accent) !important; /* lime underline */
}

/* =========================
   SIDEBAR: neutral base, hover/active use lime/pink
   ========================= */
.sidebar{
  background:var(--sidebar) !important;
  border-right:1px solid var(--border-2) !important;
}

/* base */
.sideLink{
  color:#555555 !important;
  border-bottom:1px solid var(--border) !important;
  transition: background-color .3s ease-in, color .3s ease-in !important;
}

/* hover: soft pink background + blue text (not full blue row) */
.sideLink:hover,
.sideLink:focus{
  background-color:rgba(251,113,133,0.16) !important; /* pink tint */
  color:var(--primary) !important;                   /* blue text */
  outline:none !important;
}

/* active: lime tint + blue text */
.sideLink.active{
  background-color:rgba(132,204,22,0.18) !important; /* lime tint */
  color:var(--primary) !important;
  position:relative !important;
}

/* lime indicator bar for active */
.sideLink.active::before{
  content:"";
  position:absolute;
  left:0; top:0; bottom:0;
  width:4px;
  background:var(--accent);
}

/* active hover: a bit stronger (still not blue) */
.sideLink.active:hover,
.sideLink.active:focus{
  background-color:rgba(132,204,22,0.28) !important;
  color:var(--primary) !important;
}

/* =========================
   CARD + DIVIDERS
   ========================= */
.card{
  background:var(--panel) !important;
  border:1px solid var(--border) !important;
}
.divider{
  background:var(--border) !important;
}

/* =========================
   BUTTONS: primary blue, hover pink, ghost hover lime
   ========================= */
.btn{
  background:var(--primary) !important;
  border-color:var(--primary-2) !important;
  color:#fff !important;
  transition: background-color .25s ease, border-color .25s ease, color .25s ease !important;
}
.btn:hover{
  background:var(--accent-2) !important; /* pink hover */
  border-color:var(--accent-2) !important;
}

.btn.ghost{
  background:#fff !important;
  border:1px solid var(--border) !important;
  color:var(--primary) !important;
}
.btn.ghost:hover{
  background:rgba(132,204,22,0.20) !important; /* lime tint */
  border-color:rgba(132,204,22,0.55) !important;
  color:var(--primary) !important;
}

/* =========================
   INPUTS: focus lime
   ========================= */
input[type="text"], input[type="number"], select, textarea{
  border-color:#cbcbcb !important;
  color:var(--text-strong) !important;
}
input[type="text"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus{
  border-color:var(--accent) !important;
  box-shadow:0 0 0 3px rgba(132,204,22,0.22) !important;
}

/* dropdown options (best-effort) */
select option{
  background:#ffffff !important;
  color:var(--text-strong) !important;
}
select option:checked{
  background:rgba(132,204,22,0.18) !important;
  color:var(--text-strong) !important;
}

/* =========================
   PROGRESS: lime->pink gradient
   ========================= */
.progressBar{
  border-color:var(--border) !important;
  background:#f3f4f6 !important;
}
.progressFill{
  background:linear-gradient(90deg, var(--accent), var(--accent-2)) !important;
}

/* =========================
   BADGES + HIGHLIGHTS
   ========================= */
.badge{
  background:rgba(132,204,22,0.20) !important; /* lime */
  border-color:rgba(132,204,22,0.35) !important;
  color:var(--primary) !important;            /* blue text */
}

/* offer hover: lime glow */
.offerCard:hover{
  border-color:rgba(132,204,22,0.55) !important;
  box-shadow:0 6px 18px rgba(132,204,22,0.12) !important;
}

.muted{ color:var(--muted) !important; }

.logoImg{
  height:34px;      /* display size */
  width:auto;
  display:block;
}

/*White topbar*/
/* CLEAN WHITE NAVBAR WITH COLOR STRIP */

.topbar{
  background:#ffffff !important;
  border-bottom:4px solid #84cc16 !important; /* lime accent */
  box-shadow:0 1px 3px rgba(0,0,0,.06);
}

.topBrand,
.topTitle{
  color:#1e3a8a !important;
}

.topNavLink{
  color:#374151 !important;
}

.topNavLink:hover{
  box-shadow:inset 0 -3px 0 #fb7185;
}