/* ===========================
   ANBK / ASESMEN CBT - PRO (OFFLINE)
   Works with Bootstrap 3 + AdminLTE
   =========================== */

body.anbk-pro{
  background:#f4f6f9;
}

/* Hide AdminLTE top-nav header + footer to mimic ANBK exam screen */
body.anbk-pro .main-header,
body.anbk-pro .main-footer{
  display:none !important;
}

body.anbk-pro .wrapper{
  background:transparent;
}

body.anbk-pro .content-wrapper,
body.anbk-pro .right-side,
body.anbk-pro .content-wrapper,
body.anbk-pro .wrapper .content-wrapper{
  margin:0 !important;
  padding:0 !important;
  background:transparent !important;
}

.anbk-topbar{
  position: sticky;
  top: 0;
  z-index: 9998;
  background:#ffffff;
  border-bottom:1px solid #e5e7eb;
  padding:10px 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.anbk-topbar .left{
  display:flex;
  flex-direction:column;
  gap:2px;
}
.anbk-topbar .title{
  font-weight:800;
  font-size:14px;
  margin:0;
}
.anbk-topbar .meta{
  font-size:12px;
  color:#6b7280;
}
.anbk-topbar .right{
  display:flex;
  align-items:center;
  gap:10px;
}
.anbk-chip{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid #e5e7eb;
  background:#f9fafb;
  font-weight:700;
  font-size:12px;
}

.anbk-layout{
  padding:12px;
}
@media(min-width:992px){
  .anbk-layout{
    display:grid;
    grid-template-columns: 1fr 320px;
    gap:12px;
    align-items:start;
  }
}

.anbk-card{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:12px;
  overflow:hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,.06);
}
.anbk-card .anbk-card-hd{
  padding:10px 14px;
  border-bottom:1px solid #eef2f7;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.anbk-card .anbk-card-hd h3{
  margin:0;
  font-weight:900;
  font-size:14px;
}
.anbk-card .anbk-card-bd{
  padding:14px;
}
.anbk-card .anbk-card-ft{
  padding:10px 14px;
  border-top:1px solid #eef2f7;
}

/* Palette */
.anbk-palette-wrap{
  position: sticky;
  top: 10px;
}
.anbk-palette{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.anbk-palette a.btn{
  width:44px;
  height:40px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  border-radius:10px !important;
  padding:0 !important;
}
.anbk-legend{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:10px;
  font-size:12px;
  color:#374151;
}
.anbk-legend .dot{
  display:inline-block;
  width:12px; height:12px;
  border-radius:4px;
  margin-right:6px;
  vertical-align:middle;
  border:1px solid rgba(0,0,0,.08);
}
.dot-unanswered{ background:#ffffff; }
.dot-answered{ background:#3c8dbc; }
.dot-doubt{ background:#f39c12; }

/* Fixed bottom nav (ANBK-like) */
.anbk-bottom-nav{
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 9997;
  background:#ffffff;
  border-top:1px solid #e5e7eb;
  padding:10px 12px;
}
.anbk-bottom-nav .inner{
  display:flex;
  justify-content:space-between;
  gap:10px;
  max-width: 1280px;
  margin: 0 auto;
}
.anbk-bottom-nav .btn{
  border-radius:10px !important;
  font-weight:800;
}

/* Make room for bottom bar */
body.anbk-pro{
  padding-bottom: 70px;
}

/* Lock overlay */
.anbk-lock{
  position:fixed;
  inset:0;
  z-index:99999;
  background: rgba(10,10,10,.82);
  display:none;
  align-items:center;
  justify-content:center;
  padding:16px;
}
.anbk-lock .panel{
  background:#fff;
  border-radius:14px;
  width:min(560px, 96vw);
  padding:18px;
  text-align:center;
}
.anbk-lock .panel h3{
  margin:0 0 8px;
  font-weight:900;
}
.anbk-lock .panel p{
  margin:0 0 14px;
  color:#374151;
}
