body{background:#0f172a;color:#e5e7eb;font-family:Arial;margin:0}
h1{text-align:center;background:#020617;margin:0;padding:10px}

/* Tabs wrapper */
#tabs{
  display:flex;
  gap:8px;
  padding:8px;
  background:#020617;
  flex-wrap:wrap;
  justify-content:center;
}

/* Shared helpers */
.fullWidth{width:100%}
.tab{display:none}
.tab.active{display:block}

/* Boxes */
.box{
  max-width:900px;
  margin:10px auto;
  padding:10px;
  background:#020617;
  border-radius:8px;
  border:1px solid #1f2937;
}

input,select{
  width:100%;
  padding:6px;
  margin-top:5px;
  margin-bottom:6px;
  border-radius:4px;
  border:1px solid #374151;
  background:#020617;
  color:#e5e7eb;
  box-sizing:border-box;
}

textarea{
  width:100%;
  padding:6px;
  min-height:40px;
  border-radius:4px;
  border:1px solid #374151;
  background:#020617;
  color:#e5e7eb;
  box-sizing:border-box;
}

/* Tables */
table{width:100%;border-collapse:collapse;margin-top:6px}
td,th{border:1px solid #1f2937;padding:6px;font-size:0.85rem}
th{background:#111827}

.small{font-size:0.85rem;color:#9ca3af}
#countdown{font-weight:bold}

#logArea{
  background:#020617;
  padding:6px;
  white-space:pre-wrap;
  border-radius:4px;
  max-height:300px;
  overflow:auto;
  font-family:Consolas,monospace;
}

/* =========================================================
   Button style: .cssbuttons-io
   ========================================================= */
.cssbuttons-io {
  position: relative;
  font-family: inherit;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.05em;
  border-radius: 0.8em;
  cursor: pointer;
  border: none;
  background: linear-gradient(to right, #8e2de2, #4a00e0);
  color: ghostwhite;
  overflow: hidden;
}

.cssbuttons-io span {
  position: relative;
  z-index: 10;
  transition: color 0.4s;
  display: inline-flex;
  align-items: center;
  padding: 0.8em 1.2em 0.8em 1.05em;
  justify-content:center;
  width:100%;
  box-sizing:border-box;
}

.cssbuttons-io::before,
.cssbuttons-io::after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.cssbuttons-io::before {
  content: "";
  background: #000;
  width: 120%;
  left: -10%;
  transform: skew(30deg);
  transition: transform 0.4s cubic-bezier(0.3, 1, 0.8, 1);
}

.cssbuttons-io:hover::before { transform: translate3d(100%, 0, 0); }
.cssbuttons-io:active { transform: scale(0.95); }

/* Tabs sizing */
.tabBtn{ flex:1 1 160px; min-width:160px; }
.tabBtn.active{
  outline:2px solid rgba(255,255,255,0.35);
  box-shadow:0 0 0 3px rgba(0,0,0,0.35) inset;
}

/* Danger button variant */
.dangerBtn{ background: linear-gradient(to right, #b91c1c, #7f1d1d); }

/* =========================================================
   Login form style (From Uiverse.io by Praashoo7)
   ========================================================= */
.form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 2em;
  padding-right: 2em;
  padding-bottom: 0.4em;
  background-color: #171717;
  border-radius: 25px;
  transition: .4s ease-in-out;
}

.form:hover {
  transform: scale(1.02);
  border: 1px solid black;
}

#heading {
  text-align: center;
  margin: 1.4em 0 0.6em 0;
  color: rgb(255, 255, 255);
  font-size: 1.2em;
}

.field {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  border-radius: 25px;
  padding: 0.6em;
  border: none;
  outline: none;
  color: white;
  background-color: #171717;
  box-shadow: inset 2px 5px 10px rgb(5, 5, 5);
}

.input-icon {
  height: 1.3em;
  width: 1.3em;
  fill: white;
  flex:0 0 auto;
}

.input-field {
  background: none;
  border: none;
  outline: none;
  width: 100%;
  color: #d3d3d3;
  font-size: 1rem;
}

.form .btn {
  display: flex;
  justify-content: center;
  flex-direction: row;
  margin-top: 1.6em;
}

.button1, .button2, .button3 {
  padding: 0.5em;
  border-radius: 5px;
  border: none;
  outline: none;
  transition: .4s ease-in-out;
  background-color: #252525;
  color: white;
}

.button1 { padding-left: 1.1em; padding-right: 1.1em; margin-right: 0.5em; }
.button2 { padding-left: 2.3em; padding-right: 2.3em; }
.button3 { margin-bottom: 1.2em; }

.button1:hover, .button2:hover { background-color: black; color: white; }
.button3:hover { background-color: red; color: white; }


/* Admin click-to-select items */
.adminSelectable{
  border:1px solid #1f2937;
  padding:10px;
  border-radius:12px;
  margin:10px 0;
  background:#020617;
  cursor:pointer;
}
.adminSelectable:hover{
  border-color:#334155;
}
.adminSelectable.selected{
  outline:2px solid rgba(255,255,255,0.25);
  box-shadow:0 0 0 3px rgba(0,0,0,0.35) inset, 0 0 18px rgba(142,45,226,0.18);
}
.adminActions{
  display:none;
  gap:8px;
  flex-wrap:wrap;
  margin-top:10px;
}
.adminSelectable.selected .adminActions{
  display:flex;
}


/* Floating label input for 2-hour check answers (dark theme) */
.inputbox {
  position: relative;
  width: 100%;
}

.inputbox input {
  position: relative;
  width: 100%;
  padding: 18px 10px 10px;
  background: transparent;
  outline: none;
  box-shadow: none;
  border: none;
  color: #e5e7eb;
  font-size: 1em;
  letter-spacing: 0.05em;
  transition: 0.5s;
  z-index: 10;
}

.inputbox span {
  position: absolute;
  left: 0;
  padding: 18px 10px 10px;
  font-size: 1em;
  color: #9ca3af;
  letter-spacing: 0.05em;
  transition: 0.35s;
  pointer-events: none;
}

/* support both required and optional */
.inputbox input:valid ~ span,
.inputbox input:focus ~ span {
  color: #5748f2;
  transform: translateX(-10px) translateY(-30px);
  font-size: 0.78em;
}

.inputbox i {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: #5748f2;
  border-radius: 6px;
  transition: 0.35s;
  pointer-events: none;
  z-index: 9;
  opacity: 0.95;
}

.inputbox input:valid ~ i,
.inputbox input:focus ~ i {
  height: 44px;
  opacity: 0.14; /* subtle fill behind text */
}


/* Smaller buttons (admin/action buttons) */
.cssbuttons-io.btnSmall{
  font-size: 14px;
  border-radius: 0.7em;
}
.cssbuttons-io.btnSmall span{
  padding: 0.55em 0.85em;
}


/* Simple answer input (Uiverse.io by Yaseen549) */
.answerInput {
  color: white;
  border: 2px solid #8707ff;
  border-radius: 10px;
  padding: 10px 25px;
  background: transparent;
  width: 100%;
  box-sizing: border-box;
}

.answerInput:focus,
.answerInput:active {
  outline: none;
  box-shadow: 2px 2px 15px #8707ff inset;
}


/* Product progression DONE button */
.cssbuttons-io.doneBtn {
  background: linear-gradient(to right, #16a34a, #15803d);
}
.cssbuttons-io.doneBtn:hover {
  background: linear-gradient(to right, #22c55e, #16a34a);
}


/* Toast notifications */
.toast-wrap{position:fixed;right:16px;bottom:16px;z-index:9999;display:flex;flex-direction:column;gap:8px}
.toast{background:#020617;color:#e5e7eb;border:1px solid #1f2937;border-left:4px solid #8e2de2;
  padding:10px 12px;border-radius:10px;box-shadow:0 10px 25px rgba(0,0,0,.35);min-width:220px;font-size:14px}
.toast.success{border-left-color:#22c55e}
.toast.warn{border-left-color:#f59e0b}
.toast.hide{opacity:0;transform:translateY(6px);transition:.25s}

/* Visual hierarchy */
.box.activeBox{outline:2px solid rgba(142,45,226,.35);box-shadow:0 0 0 3px rgba(0,0,0,.35) inset}
.cycleActive{outline:2px dashed rgba(34,197,94,.35)}
.stepDone{opacity:.65}

/* Disabled clarity */
button:disabled{opacity:.55;cursor:not-allowed}


/* Settings gear button (Uiverse.io by vinodjangid07) */
.setting-btn {
  width: 45px;
  height: 45px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background-color: rgb(129, 110, 216);
  border-radius: 10px;
  cursor: pointer;
  border: none;
  box-shadow: 0px 0px 0px 2px rgb(212, 209, 255);
}
.bar {
  width: 50%;
  height: 2px;
  background-color: rgb(229, 229, 229);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: 2px;
}
.bar::before {
  content: "";
  width: 2px;
  height: 2px;
  background-color: rgb(126, 117, 255);
  position: absolute;
  border-radius: 50%;
  border: 2px solid white;
  transition: all 0.3s;
  box-shadow: 0px 0px 5px white;
}
.bar1::before { transform: translateX(-4px); }
.bar2::before { transform: translateX(4px); }
.setting-btn:hover .bar1::before { transform: translateX(4px); }
.setting-btn:hover .bar2::before { transform: translateX(-4px); }

/* Settings dropdown */
.settingsMenu{
  margin-top:8px;
  background:#020617;
  border:1px solid #1f2937;
  border-radius:12px;
  min-width:190px;
  overflow:hidden;
  box-shadow:0 10px 25px rgba(0,0,0,.35);
}
.settingsItem{
  width:100%;
  background:transparent;
  color:#e5e7eb;
  border:none;
  padding:10px 12px;
  text-align:left;
  cursor:pointer;
  font-size:14px;
}
.settingsItem:hover{
  background:#111827;
}

/* Modal */
.modalBackdrop{
  position:fixed; inset:0;
  background:rgba(0,0,0,.55);
  display:flex; align-items:center; justify-content:center;
  z-index:9500;
  padding:16px;
}
.modalCard{
  width:min(520px, 100%);
  background:#020617;
  border:1px solid #1f2937;
  border-radius:14px;
  padding:14px;
  box-shadow:0 20px 40px rgba(0,0,0,.45);
}

.hidden{display:none}

/* Settings container fixed in top-right */
#settingsContainer{
  position:fixed;
  top:12px;
  right:12px;
  z-index:20000;
  display:none; /* enabled when logged in */
}
