#sidePanel {
  margin-left: 20px;
  border: 1px solid #000;
}

#chapterList {
  /* padding-left: 55px; */
  position: relative;
  padding: 0px 0 0 70px;
  /* font-family: 'APS-DV-PrakashRoman'; */
  /* font-weight: bold; */
  font-size: 14px;
  list-style: none;
}

#sidePanel-auto li.checkbox {
  position: relative;
  margin-bottom: 15px;
}

#sidePanel-auto #chapterList .checkbox input[type="checkbox"] {
  position: absolute;
  left: -32px;
  top: 0px;
}

#jj {
  width: 20px;
  height: 20px;
}

#sidePanel-auto {
  background: #fafafa;
  /* border-right: 2px solid #000; */
  padding: 10px 10px 5px 20px;
  width: 22%;
  height: 100%;
  overflow-y: auto;
  float: left;
  -webkit-box-shadow: 0px 0px 4px 0px rgba(92, 69, 69, 0.33);
  -moz-box-shadow: 0px 0px 4px 0px rgba(92, 69, 69, 0.33);
  -ms-box-shadow: 0px 0px 4px 0px rgba(92, 69, 69, 0.33);
  -o-box-shadow: 0px 0px 4px 0px rgba(92, 69, 69, 0.33);
  box-shadow: 0px 0px 4px 0px rgba(92, 69, 69, 0.33);
}

#sidePanel-auto ul.side-panel-select {
  position: relative;
  margin-bottom: 15px;
  list-style: none;
  padding: 10px 10px 0;
  /* font-family: 'APS-DV-PrakashRoman'; */
  font-weight: bold;
  font-size: 20px;
}

#mainPage {
  height: 100%;
  width: 80%;
  margin: auto;
}

#typeAuto {
  height: 100%;
  width: 100%;
}

#sidePanel-auto h3 {
  margin-bottom: 10px;
  /* font-family: 'APS-DV-PrakashRoman'; */
  font-weight: bold;
  font-size: 20px;
  background: #3facc4;
  color: #fff;
  padding: 13px;
  border-bottom: 2px #0097a7 solid;
  letter-spacing: 0.5px;
}

#mainFrame {
  /* margin-left: 252px; */
}

.instructions-area {
  padding: 0px 0px;
}

#sidePanel-auto.readonly-pannel:before {
  position: absolute;
  content: "";
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  z-index: 99999;
}

.activityDetails {
  margin-top: 0px;
  /* background: #eff1f9; */
  /* border: 1px solid #a6adbf; */
  padding: 20px 20px;
}

.auto-seelctquestions {
  /* font-family: 'APS-DV-PrakashRoman'; */
  /* font-weight: bold; */
  font-size: 16px;
  width: 100%;
  max-width: 637px;
  text-align: left;
  margin: 20px 0;
}

#sidePanel-auto.readonly-pannel #chapterList:before {
  position: absolute;
  content: "";
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  z-index: 99999;
}

#sidePanel-auto.readonly-pannel {
  position: relative;
}

#sidePanel-auto.readonly-pannel label.checkbox input[type="checkbox"] {
  opacity: 0.5;
}

.auto-toptitle {
  position: relative;
  /* background: #9c27b0; */
  background-color: #005dba;
  text-align: left;
  padding: 0;
  min-height: 130px;
  color: #ffffff;
  /* MOD */
  display: flex;
  justify-content: space-between;
}

/*.auto-toptitle:after {
    content: '';
        width: 320px;
    height: 100%;
    background: url(../img/header_design.png) no-repeat;
    position: absolute;
    left: 450px;
    top: 0px;
    background-size: 100%;
}*/
.auto-tabs-section {
  text-align: center;
  float: right;
  /* background: #9c27b0; */
  background-color: #005dba;
  padding: 10px;
  height: 100%;
  box-sizing: border-box;
}

.ml100 {
  margin-left: 100px;
}

.auto-seelctquestions select:disabled {
  opacity: 0.6;
}

.activity-submit-wrap {
  padding: 15px 0;
  /* background: #d9edf7; */
}

.mltop40 {
  margin-top: 40px;
}

#auto-level-1 {
  position: relative;
  height: 100%;
}

#auto-level-2 {
  position: relative;
  height: 100%;
}

#auto-level-3 {
  height: 100%;
  position: relative;
}

#mainFrame {
  /* overflow: auto; */
  height: 100%;
}

#auto-page1,
#auto-page2 {
  width: 78%;
  float: right;
  background: #f2f2f2;
  height: 100%;
  overflow: auto;
}

.worksheet-selection {
  padding-left: 20px;
  display: none;
}

#section-worksheet {
  padding-left: 0px;
}

.bottom-total-ls {
  max-width: 673px;
  width: 100%;
  padding: 0px;
  text-align: right;
  box-sizing: border-box;
  padding-right: 43px;
}

#total-marks-obj {
  -webkit-appearance: none;
  -moz-appearance: none;
  -ms-appearance: none;
  -o-appearance: none;
  padding: 0.5em;
  line-height: 1.2em;
  width: 40px;
  /* cursor: pointer; */
  border: 1px solid #66cfdc;
  background: #ffffff;
  border-radius: 0;
  font-size: 14px;
  color: #444;
  display: inline-block;
  text-align: center;
  position: relative;
  left: 19px;
  margin-top: 19px;
}

.input-marks-teacher {
  position: relative;
}

#auto-filter-difficulty {
  width: 280px;
  margin: 0px 36px;
  float: left;
}
#auto-filter-outcome {
  width: 280px;
  margin: 0px 36px;
  float: left;
  /* display: none; */
}

#auto-filter-difficulty ul,
#auto-filter-outcome ul {
  list-style: none;
}

#auto-filter-difficulty ul li,
#auto-filter-outcome ul li {
  margin-bottom: 10px;
}

#auto-filter-difficulty h3,
#auto-filter-outcome h3 {
  margin-bottom: 20px;
  font-weight: 500;
}

.optWrapper.multiple li {
  display: block;
}

.manual-filter-container {
  clear: both;
  position: absolute;
  right: 7%;
  bottom: 6%;
  /* width: 98%; */
  padding: 0 10px;
  vertical-align: top;
}
.manual-filter-container div {
  display: inline-block;
  color: #000;
}
.manual-filter-container label {
  line-height: 30px;
  display: inline-block;
  margin-right: 9px;
  color: #ffffff;
  font-size: 15px;
  vertical-align: top;
}

.margin0 {
  margin: 0px !important;
}

#section-prev-test {
  float: right;
  margin-left: 10px;
}

.question-info {
  margin-left: 5%;
  margin-top: 10px;
  font-size: 12px;
  border-top: 1px solid #d8d8d9;
  display: inline-block;
  padding-top: 10px;
  z-index: 0;
  position: relative;
  display: none;
}

.question-info > div {
  display: inline-block;
  margin-right: 50px;
  width: 220px;
}

.summary-selection {
  position: fixed;
  bottom: 0px;
  left: 0px;
  width: 100%;
  margin: auto;
  height: 7%;
  padding: 0;
}

.summary-container {
  width: 80%;
  margin: auto;
  background: rgb(246, 246, 246);
  padding: 20px 20px 0px 20px;
  box-sizing: border-box;
  height: 100%;
  text-align: center;
  vertical-align: middle;
}

.summary_leftpane > div {
  margin-bottom: 1%;
  margin-bottom: 4px;
  color: #000000;
  font-weight: bold;
  display: inline-block;
  width: 45%;
  font-size: 12px;
  line-height: normal;
  vertical-align: top;
}
.summary_leftpane {
  width: 70%;
  display: inline-block;
}

.summary_rightPane {
  width: 25%;
  float: right;
  margin-right: 0px;
  text-align: right;
}

.summary_rightPane .macm_logo img {
  max-width: 120px;
  text-align: right;
}
.question-parent .question-outcome,
.question-difficulty {
  font-size: 12px;
}

.question-parent .question-outcome {
  margin-top: 15px;
  display: none;
}

#auto-reset-btn {
  display: none;
}

.editingmode-on {
  background: rgba(255, 191, 179, 0.3);
}

#level2 div#userInfo,
#auto-level-2 div#userInfo {
  z-index: 99;
  position: absolute;
  width: 80%;
  background: rgb(216, 251, 255);
  left: 10%;
  box-shadow: 0px 0px 5px 1px rgba(0, 0, 0, 0.18);
  border-radius: 20px;
  border: 2px #00bcd4 solid;
}

body.overlayus div#sContainIn {
  position: relative;
}
body.overlayus div#sContainIn:before,
body.overlayus #toolbars:before {
  content: "";
  width: 100%;
  height: 100%;
  left: 0px;
  top: 0px;
  background: rgba(122, 116, 116, 0.31);
  position: absolute;
  z-index: 1;
}

a.tool-replace[disabled] {
  opacity: 0.6;
  cursor: default;
  background: #fff !important;
  color: #213049 !important;
}

.question-difficulty {
  display: none !important;
}

/* #auto-filter-difficulty {
  display: none !important;
} */

.summary-diffictulty {
  display: none !important;
}

.summary-outcome {
  display: none !important;
}

#pdfPreview .options,
#pdfPreview .question-answer {
  padding-top: 10px;
}

#previewHTML h3 {
  /*margin-left: 2%;*/
  margin-left: 0px;
}

#explorer > #stats .info_btn {
  margin-top: 0px;
  margin-bottom: 0px;
  padding: 6px 15px;
}

#activityArea,
#mainPage {
  border-left: 1px solid red;
  border-right: 1px solid red;
  border-color: #a42543;
}

@media print {
  #activityArea,
  #mainPage {
    border: none;
  }
}

/* Modern UI refresh */
:root {
  --ui-bg: #eaf3ff;
  --ui-panel: #ffffff;
  --ui-panel-soft: #dcecff;
  --ui-ink: #17324d;
  --ui-muted: #5f7896;
  --ui-line: #bdd5f0;
  --ui-primary: #226fc4;
  --ui-primary-dark: #14559b;
  --ui-teal: #1d98b5;
  --ui-coral: #ee8b6b;
  --ui-gold: #f5c96b;
  --ui-radius: 14px;
  --ui-radius-lg: 18px;
  --ui-shadow: 0 18px 34px rgba(20, 85, 155, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.88);
  --ui-shadow-soft: 0 10px 20px rgba(20, 85, 155, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

* {
  box-sizing: border-box;
}

html,
body {
  color: var(--ui-ink);
  background: var(--ui-bg);
  font-family: "Roboto", "Segoe UI", Arial, sans-serif;
}

body {
  background: linear-gradient(145deg, #f8fbff 0%, #eaf3ff 38%, #d7eaff 100%);
}

input,
textarea,
select {
  border: 1px solid var(--ui-line) !important;
  background: #ffffff !important;
  border-radius: 12px !important;
  color: var(--ui-ink) !important;
  box-shadow: none !important;
}

input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--ui-primary);
}

button,
input[type="submit"],
.info_btn,
.sm_button {
  border: 0 !important;
  border-radius: 14px !important;
  background: linear-gradient(180deg, #3d8ce0 0%, var(--ui-primary) 100%) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  box-shadow:
    0 12px 22px rgba(34, 111, 196, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.38);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

button:hover,
input[type="submit"]:hover,
.info_btn:hover,
.sm_button:hover {
  background: var(--ui-primary-dark) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow:
    0 16px 28px rgba(20, 85, 155, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.sm_button {
  min-width: 156px;
  min-height: 48px;
  padding: 12px 26px !important;
  font-size: 17px;
  border-radius: 999px !important;
}

.startScreenWrap {
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 20%, rgba(118, 190, 255, 0.36), transparent 26%),
    radial-gradient(circle at 82% 18%, rgba(245, 201, 107, 0.28), transparent 24%),
    radial-gradient(circle at 75% 82%, rgba(238, 139, 107, 0.22), transparent 28%),
    linear-gradient(135deg, #f8fcff 0%, #e8f5ff 45%, #f4fbff 100%);
  background-size: 130% 130%, 125% 125%, 140% 140%, 100% 100%;
  background-position: 0% 35%, 100% 20%, 80% 100%, center;
  position: relative;
  animation: abstractBgDrift 14s ease-in-out infinite alternate;
}

.startScreenWrap::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(120deg, transparent 0 16%, rgba(34, 111, 196, 0.09) 16% 16.5%, transparent 16.5% 100%),
    linear-gradient(58deg, transparent 0 38%, rgba(29, 152, 181, 0.08) 38% 38.5%, transparent 38.5% 100%),
    linear-gradient(150deg, transparent 0 66%, rgba(238, 139, 107, 0.08) 66% 66.5%, transparent 66.5% 100%);
  background-size: 560px 360px, 520px 340px, 600px 420px;
  opacity: 0.8;
  pointer-events: none;
  animation: abstractLinesDrift 18s linear infinite;
}

.startScreenWrap::after {
  content: "";
  position: fixed;
  inset: auto -10% -18% auto;
  width: 52vw;
  height: 52vw;
  z-index: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  box-shadow:
    -48vw -24vw 0 rgba(34, 111, 196, 0.1),
    -18vw -42vw 0 rgba(29, 152, 181, 0.1);
  pointer-events: none;
  animation: abstractBubbleDrift 12s ease-in-out infinite alternate;
}

.video-background {
  display: none;
}

.video-background::after {
  display: none;
}

@keyframes abstractBgDrift {
  0% {
    background-position: 0% 35%, 100% 20%, 80% 100%, center;
  }

  100% {
    background-position: 14% 28%, 86% 28%, 70% 86%, center;
  }
}

@keyframes abstractLinesDrift {
  0% {
    background-position: 0 0, 0 0, 0 0;
  }

  100% {
    background-position: 560px 0, -520px 0, 600px 0;
  }
}

@keyframes abstractBubbleDrift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.72;
  }

  100% {
    transform: translate3d(-28px, -22px, 0) scale(1.08);
    opacity: 0.95;
  }
}

.main-logo {
  z-index: 3;
}

.main-logo img {
  width: 150px;
  max-width: 30vw;
  filter: drop-shadow(0 8px 16px rgba(31, 41, 55, 0.16));
}

.startScreen {
  z-index: 2;
  width: 31.5%;
  min-height: 100vh;
  margin: 0 auto;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: url(../img/q_img/BookCover.png) no-repeat !important;
  background-size: 100% !important;
}

.typewriter {
  position: absolute !important;
  width: auto;
  max-width: 90%;
  margin: 18px auto 22px !important;
  white-space: nowrap;
  overflow: hidden;
  animation:
    titleTyping 3.2s steps(20, end) infinite,
    titleCursor 0.7s step-end infinite,
    titleSoftLift 2.8s ease-in-out infinite alternate;
  top: 72%;
  left: 50%;
  transform: translateX(-50%) !important;
  color: #14559b !important;
  background: transparent !important;
  -webkit-text-fill-color: #14559b;
  border: 0;
  border-right: 4px solid #226fc4;
  border-radius: 0;
  /* padding: 14px 8px 16px; */
  box-shadow: none;
  filter: none;
  font-size: 28px !important;
  line-height: 1.1;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
  text-shadow:
    0 1px 0 #ffffff,
    0 7px 14px rgba(20, 85, 155, 0.18);
}

.typewriter::before {
  display: none;
}

.typewriter::after {
  display: none;
}

@keyframes titleSoftLift {
  0% {
    transform: translateX(-50%) translateY(0);
    text-shadow:
      0 1px 0 #ffffff,
      0 6px 12px rgba(20, 85, 155, 0.16);
  }

  100% {
    transform: translateX(-50%) translateY(-3px);
    text-shadow:
      0 1px 0 #ffffff,
      0 10px 18px rgba(20, 85, 155, 0.22);
  }
}

@keyframes titleTyping {
  0% {
    width: 0;
  }

  58%,
  82% {
    width: 28ch;
  }

  100% {
    width: 0;
  }
}

@keyframes titleCursor {
  0%,
  100% {
    border-right-color: transparent;
  }

  50% {
    border-right-color: #226fc4;
  }
}

.tgMainTitle {
  display: none;
}

.TG_bg {
  width: 441px;
  height: 244px;
  margin-top: 90% !important;
  background: none !important;
}

.TG_bg .sm_button {
  position: absolute !important;
  left: 50% !important;
  bottom: 10% !important;
  transform: translate(-50%, -50%) !important;
  background: linear-gradient(180deg, #3d8ce0 0%, var(--ui-primary) 100%) !important;
  box-shadow:
    0 14px 26px rgba(34, 111, 196, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.TG_bg .sm_button:hover {
  background: var(--ui-primary-dark) !important;
}

.instruction_btn {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 4;
}

.instruction_btn a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: rgba(47, 125, 211, 0.9);
  border-radius: 50%;
  text-decoration: none;
  backdrop-filter: blur(10px);
}

#activityArea,
#typeAuto,
#mainPage {
  border: 0;
  background: linear-gradient(145deg, #f7fbff 0%, #eaf3ff 44%, #dceeff 100%);
}

#level1,
#level2,
#level3,
.auto-level-page {
  height: 100%;
  background: transparent;
}

#topHeader,
#toolbars,
.level3-navigation,
.auto-toptitle {
  min-height: 112px !important;
  height: auto !important;
  padding: 18px 26px;
  display: flex;
  align-items: center;
  gap: 22px;
  background: #ffffff !important;
  color: var(--ui-ink);
  border-bottom: 1px solid var(--ui-line);
  box-shadow:
    0 12px 28px rgba(20, 85, 155, 0.14),
    inset 0 -1px 0 rgba(255, 255, 255, 0.75);
}

.level1-header,
#toolbars > *,
.level3-navigation > *,
.auto-toptitle > * {
  float: none !important;
}

.level1-header {
  min-height: 0 !important;
  width: auto;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0;
  text-align: left;
}

.publication_logo {
  position: static !important;
  width: 112px;
  max-height: 82px;
  object-fit: contain;
  padding: 10px 12px;
  margin-left: -14px;
  border-radius: 16px;
  background:
    linear-gradient(145deg, #ffffff 0%, #eff8ff 48%, #dcecff 100%);
  border: 1px solid rgba(20, 85, 155, 0.22);
  box-shadow:
    0 12px 22px rgba(20, 85, 155, 0.18),
    0 4px 0 rgba(20, 85, 155, 0.08),
    inset 0 2px 0 rgba(255, 255, 255, 0.95),
    inset 0 -8px 16px rgba(34, 111, 196, 0.08);
  transform: perspective(600px) rotateX(2deg) rotateY(-4deg);
  filter:
    drop-shadow(0 3px 0 rgba(255, 255, 255, 0.95))
    drop-shadow(0 8px 10px rgba(20, 85, 155, 0.22));
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.publication_logo:hover {
  transform: perspective(600px) rotateX(0deg) rotateY(-2deg) translateY(-2px) scale(1.03);
  filter:
    drop-shadow(0 3px 0 rgba(255, 255, 255, 0.95))
    drop-shadow(0 12px 14px rgba(20, 85, 155, 0.28));
  box-shadow:
    0 16px 28px rgba(20, 85, 155, 0.22),
    0 5px 0 rgba(20, 85, 155, 0.09),
    inset 0 2px 0 rgba(255, 255, 255, 0.95),
    inset 0 -8px 16px rgba(34, 111, 196, 0.08);
}

.book_name {
  min-width: 0 !important;
  flex: 1 1 auto;
  float: none;
  text-align: left;
  padding: 0;
  color: var(--ui-ink);
}

.book_name h1,
#topHeader h1 {
  color: var(--ui-ink) !important;
  font-size: 28px !important;
  font-weight: 900 !important;
  line-height: 1.1;
}

h1.tgTitle {
  position: relative !important;
  top: -8px !important;
  display: inline-block !important;
  margin: 0 auto !important;
  padding: 9px 22px 11px !important;
  border: 1px solid rgba(20, 85, 155, 0.5) !important;
  border-radius: 16px 16px 34px 34px !important;
  background:
    linear-gradient(180deg, #ffffff 0%, #fffbe5 45%, #e9f4ff 100%) !important;
  color: #0d3158 !important;
  font-size: 26px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-shadow: 0 1px 0 #ffffff;
  box-shadow:
    0 10px 0 rgba(20, 85, 155, 0.12),
    0 16px 24px rgba(20, 85, 155, 0.16),
    inset 0 2px 0 rgba(255, 255, 255, 0.95),
    inset 0 -7px 14px rgba(34, 111, 196, 0.08);
}

h1.tgTitle::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: 5px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  pointer-events: none;
}

.book_name h3 {
  padding: 7px 0 0;
  color: var(--ui-muted);
  font-size: 13px;
  letter-spacing: 0.08em;
}

#wrapper-button {
  width: auto !important;
  min-width: 245px;
  padding: 12px 16px;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
  background: linear-gradient(180deg, #f8fbff 0%, var(--ui-panel-soft) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 8px 18px rgba(20, 85, 155, 0.08);
  text-align: left;
}

.totalQues {
  margin: 0 0 6px;
  color: var(--ui-ink);
  font-weight: 800;
}

#wrapper-button p {
  margin: 0 !important;
  color: var(--ui-muted) !important;
}

.auto-tabs-section,
.auto_level-buttons {
  height: auto !important;
  padding: 0 !important;
  background: transparent !important;
  text-align: right;
}

.auto-tabs-wrapper,
.auto_level-buttons {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-direction:column;
}

.auto-tabs-wrapper button,
.auto_level-buttons button {
  width: 42px !important;
  height: 42px !important;
  margin: 0 !important;
  padding: 0 !important;
  display: inline-grid;
  place-items: center;
  border-radius: 12px !important;
  background: linear-gradient(180deg, #ffffff 0%, #dbeeff 100%) !important;
  color: var(--ui-primary-dark) !important;
  border: 1px solid #c3ddf7 !important;
  box-shadow:
    0 8px 16px rgba(20, 85, 155, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.auto-tabs-wrapper button:hover,
.auto_level-buttons button:hover {
  transform: translateY(-2px);
  box-shadow:
    0 12px 20px rgba(20, 85, 155, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

#level1_explorer,
#mainFrame {
  width: 100%;
  height: calc(100% - 112px);
  display: flex;
  background: transparent;
}

#collectionList,
#sidePanel-auto {
  width: 292px !important;
  flex: 0 0 292px;
  height: 100% !important;
  margin: 0 !important;
  padding: 18px !important;
  float: none;
  background: linear-gradient(180deg, #ffffff 0%, #edf6ff 100%) !important;
  border-right: 1px solid var(--ui-line);
  box-shadow: 10px 0 22px rgba(20, 85, 155, 0.1) !important;
  overflow: auto;
}

h3.navTitle,
#sidePanel-auto h3 {
  margin: 0 0 16px;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--ui-line);
  background: transparent !important;
  color: var(--ui-ink) !important;
  font-size: 18px;
  font-weight: 900;
}

#container,
#chapterList {
  color: var(--ui-ink);
}

#container .jstree-anchor {
  min-height: 32px;
  padding: 4px 8px;
  border-radius: 7px;
  color: var(--ui-ink);
}

#container .jstree-clicked,
#container .jstree-hovered {
  background: linear-gradient(180deg, #eef7ff 0%, #d9ebff 100%) !important;
  color: var(--ui-primary-dark) !important;
  box-shadow: inset 0 1px 0 #ffffff, 0 5px 12px rgba(20, 85, 155, 0.1) !important;
}

div#explorer,
#auto-page1,
#auto-page2 {
  width: calc(100% - 292px) !important;
  flex: 1 1 auto;
  height: 100% !important;
  padding: 22px;
  float: none;
  background: transparent !important;
  overflow: auto;
}

#breadcrums {
  min-height: 48px;
  margin: 0 0 18px;
  padding: 12px 16px !important;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
  background: linear-gradient(180deg, #ffffff 0%, #f0f7ff 100%) !important;
  color: var(--ui-muted) !important;
  box-shadow: var(--ui-shadow-soft);
}

#breadcrums .breadLabel,
#breadcrums :last-child,
#breadcrums :nth-child(2n) {
  padding: 0 !important;
  margin: 0 !important;
  color: var(--ui-primary-dark) !important;
  font-weight: 800;
}

#folders {
  margin: 0 !important;
  padding: 4px !important;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  background: transparent !important;
  perspective: none !important;
}

div#folders > div {
  width: auto !important;
  max-width: none !important;
  min-height: 138px;
  height: auto !important;
  float: none !important;
  margin: 0 !important;
  padding: 18px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  border-radius: var(--ui-radius-lg) !important;
  background: linear-gradient(155deg, #ffffff 0%, #edf6ff 100%) !important;
  color: var(--ui-ink) !important;
  border: 1px solid var(--ui-line);
  box-shadow:
    0 16px 26px rgba(20, 85, 155, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -10px 20px rgba(34, 111, 196, 0.08);
  transform: none !important;
  clip-path: none !important;
  isolation: auto !important;
  transform-style: flat !important;
}

div#folders > div .folder {
  display: none !important;
}

div#folders > div .folder_name {
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  display: block !important;
  color: var(--ui-ink) !important;
  font-size: 18px !important;
  line-height: 1.35 !important;
  text-align: center !important;
}

div#folders > div .folder_name a {
  display: block !important;
  width: 100% !important;
  color: var(--ui-ink) !important;
  text-decoration: none !important;
  font-size: 17px !important;
  font-weight: 900 !important;
  line-height: 1.35 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  text-shadow: none !important;
}

div#folders > div::before {
  display: none;
}

div#folders > div::after {
  opacity: 1 !important;
  inset: auto 16px 14px auto !important;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ui-teal) !important;
  box-shadow: none;
  filter: drop-shadow(0 6px 10px rgba(20, 85, 155, 0.22));
}

div#folders > div:nth-child(3n + 1)::after {
  background: var(--ui-primary) !important;
}

div#folders > div:nth-child(3n + 2)::after {
  background: var(--ui-coral) !important;
}

div#folders > div:hover,
div#folders > div:focus-visible {
  transform: translateY(-3px) !important;
  clip-path: none !important;
  box-shadow:
    0 22px 36px rgba(20, 85, 155, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

@media (min-width: 1180px) {
  #folders {
    grid-template-columns: repeat(5, minmax(160px, 1fr));
  }
}

@media (min-width: 981px) and (max-width: 1179px) {
  #folders {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  }

  div#folders > div {
    min-height: 128px;
  }
}

#stats {
  height: auto !important;
  min-height: 70px;
  margin: 0 0 18px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
  background: linear-gradient(180deg, #ffffff 0%, #eef7ff 100%);
  box-shadow: var(--ui-shadow-soft);
}

#stats > div {
  width: auto !important;
  flex: 1 1 auto;
  padding: 0 !important;
}

#stats label,
.quesSec {
  color: var(--ui-muted);
  font-weight: 800;
}

#stats input#totalQuestions,
#stats input#questionSelected {
  width: 42px !important;
  height: 34px;
  margin: 0 3px;
  border-radius: 7px !important;
  text-align: center;
  font-weight: 800;
}

.question-parent {
  margin: 0 0 14px !important;
  padding: 18px 18px 18px 56px !important;
  border: 1px solid var(--ui-line) !important;
  border-radius: var(--ui-radius);
  background: linear-gradient(180deg, #ffffff 0%, #f3f9ff 100%) !important;
  box-shadow: var(--ui-shadow-soft);
}

#level1 .question-parent {
  border-bottom: 1px solid var(--ui-line) !important;
}

.question-parent.selection,
.editingmode-on {
  background: linear-gradient(180deg, #fffdf5 0%, #fff4c9 100%) !important;
  border-color: var(--ui-gold) !important;
}

.question-title,
.simp-ans-text,
.bold-txt {
  color: var(--ui-ink);
  line-height: 1.5;
}

.question-title {
  font-size: 18px !important;
  font-weight: 800;
}

.numbering,
#pdfPreview label.numbering {
  /* color: var(--ui-primary-dark); */
  font-weight: 900;
}

#toolbars,
.level3-navigation {
  min-height: 128px !important;
}

.toolbars_preview,
.level3_buttons {
  flex: 1 1 auto;
}

.finalise_btns,
.level3_buttons {
  display: flex !important;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.finalise_btns .info_btn,
.level3_buttons .info_btn {
  margin: 0 !important;
}

#level2 #toolbars,
#auto-level-2 #toolbars {
  display: grid !important;
  grid-template-columns: auto minmax(230px, 1fr) auto auto;
  grid-template-areas: "logo title actions nav";
  align-items: center !important;
  gap: 14px !important;
  min-height: 132px !important;
  padding: 18px 22px !important;
}

#level2 #toolbars .publication_logo,
#auto-level-2 #toolbars .publication_logo {
  grid-area: logo;
}

#level2 #toolbars .book_name,
#auto-level-2 #toolbars .book_name {
  grid-area: title;
  position: static !important;
  min-width: 230px !important;
  padding-right: 12px !important;
  z-index: 1;
}

#level2 #toolbars .toolbars_preview,
#auto-level-2 #toolbars .toolbars_preview {
  grid-area: actions;
  width: auto !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  position: static !important;
  z-index: 2;
}

#level2 #toolbars .finalise_btns,
#auto-level-2 #toolbars .finalise_btns {
  position: static !important;
  margin: 0 !important;
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
}

#level2 #toolbars .finalise_btns .info_btn,
#auto-level-2 #toolbars .finalise_btns .info_btn {
  min-width: 132px;
  margin: 0 !important;
  padding: 9px 14px !important;
  white-space: nowrap;
  font-size: 13px;
}

#level2 #toolbars .top_checkbox,
#auto-level-2 #toolbars .top_checkbox {
  margin: 0 !important;
  align-self: flex-end;
}

#level2 #toolbars .auto_level-buttons,
#auto-level-2 #toolbars .auto_level-buttons {
  grid-area: nav;
}

#level3 .level3-navigation,
#auto-level-3 .level3-navigation {
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 14px !important;
  padding-right: 18px !important;
}

#level3 .level3-navigation .book_name,
#auto-level-3 .level3-navigation .book_name {
  flex: 1 1 auto !important;
  min-width: 220px !important;
  padding-right: 18px !important;
}

#level3 .level3_buttons,
#auto-level-3 .level3_buttons {
  width: auto !important;
  flex: 0 0 auto !important;
  margin: 0 0 0 auto !important;
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 10px !important;
  position: static !important;
  z-index: 2;
}

#level3 .level3_buttons .info_btn,
#auto-level-3 .level3_buttons .info_btn {
  width: auto !important;
  min-width: 128px;
  min-height: 38px;
  margin: 0 !important;
  padding: 9px 14px !important;
  white-space: nowrap;
  font-size: 13px;
}

#level3 .level3_buttons .word-export,
#auto-level-3 .level3_buttons .word-export {
  color: #ffffff !important;
  text-decoration: none !important;
  display: block;
}

#level3 .auto_level-buttons,
#auto-level-3 .auto_level-buttons {
  flex: 0 0 auto !important;
  margin-left: 2px !important;
}

.top_checkbox {
  margin-top: 12px;
  color: var(--ui-muted);
  list-style: none;
}

#pdfPreview,
#previewHTML {
  height: calc(100% - 128px) !important;
  padding: 24px;
  background: linear-gradient(145deg, #dcecff 0%, #eef7ff 100%);
}

#pdfPreview > div,
#previewHTML > div,
#sContainIn {
  /* max-width: 980px; */
  margin: 0 auto;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border-radius: var(--ui-radius-lg);
  box-shadow: var(--ui-shadow);
  padding-bottom: 3rem;
}

#pdfPreview .question-parent {
  box-shadow: none;
  border-left: 4px solid #dce6f5 !important;
}

#pdfPreview > div > h3,
#previewHTML h3,
#main_Head,
.main_Div h3 {
  color: var(--ui-ink) !important;
}

#level2 div#userInfo,
#auto-level-2 div#userInfo {
  background: #ffffff;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius-lg);
  box-shadow: var(--ui-shadow);
}

.alert.alert-info {
  border: 1px solid #cfe1ff;
  border-radius: var(--ui-radius);
  background: #edf5ff;
  color: #24436f;
}

.activityDetails {
  margin: 18px 0;
  padding: 20px;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius-lg);
  background: linear-gradient(180deg, #ffffff 0%, #f0f7ff 100%);
  box-shadow: var(--ui-shadow-soft);
}

#testgenerator-type {
  display: none;
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 9999 !important;
  padding: 22px;
  align-items: center;
  justify-content: center;
  background: rgba(20, 40, 64, 0.42) !important;
  backdrop-filter: blur(5px);
}

#testgenerator-type[style*="display: block"],
#testgenerator-type[style*="display:block"] {
  display: flex !important;
}

.tg-type-container {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  transform: translateX(clamp(0px, 8vw, 150px)) !important;
  width: min(460px, calc(100vw - 36px)) !important;
  height: auto !important;
  min-height: 270px;
  overflow: hidden;
  border: 1px solid rgba(20, 85, 155, 0.28) !important;
  border-radius: 22px !important;
  background:
    linear-gradient(180deg, #ffffff 0%, #f3f9ff 100%) !important;
  box-shadow:
    0 24px 48px rgba(12, 38, 74, 0.32),
    0 8px 0 rgba(20, 85, 155, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
}

.tg-type-container::before {
  content: "";
  position: absolute;
  inset: -60px -70px auto auto;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: rgba(34, 111, 196, 0.1);
  pointer-events: none;
}

.tg-type-container .topTitle {
  position: relative;
  padding: 22px 24px !important;
  border: 0 !important;
  background:
    linear-gradient(135deg, #226fc4 0%, #1d98b5 100%) !important;
  color: #ffffff !important;
  font-size: 22px !important;
  font-weight: 900 !important;
  text-align: center;
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.typePannel {
  position: relative;
  margin: 0 !important;
  min-height: 180px;
  padding: 34px 28px 38px;
  display: grid;
  grid-template-columns: repeat(2, minmax(130px, 1fr));
  gap: 18px;
  align-items: center;
}

.typePannel .sm_button {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 58px;
  margin: 0 !important;
  border-radius: 18px !important;
  font-size: 16px;
  box-shadow:
    0 14px 24px rgba(34, 111, 196, 0.24),
    0 5px 0 rgba(20, 85, 155, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.36);
}

.typePannel .sm_button:hover {
  transform: translateY(-3px);
}

.typePannel .sm_button:first-child::before {
  content: "\f085";
  font-family: FontAwesome;
  display: block;
  margin-bottom: 6px;
  font-size: 22px;
}

.typePannel .sm_button:last-child::before {
  content: "\f044";
  font-family: FontAwesome;
  display: block;
  margin-bottom: 6px;
  font-size: 22px;
}

.summary-selection {
  box-shadow: 0 -10px 24px rgba(23, 32, 51, 0.1);
}

.summary-container {
  width: 100%;
  background: #ffffff;
  border-top: 1px solid var(--ui-line);
}

@media (max-width: 980px) {
  body {
    overflow: auto;
  }

  #topHeader,
  #toolbars,
  .level3-navigation,
  .auto-toptitle {
    padding: 16px;
    flex-wrap: wrap;
  }

  .level1-header {
    width: 100%;
    flex-wrap: wrap;
  }

  #wrapper-button {
    min-width: 0;
    width: 100% !important;
  }

  #level1_explorer,
  #mainFrame {
    height: auto;
    min-height: calc(100vh - 112px);
    display: block;
  }

  #collectionList,
  #sidePanel-auto,
  div#explorer,
  #auto-page1,
  #auto-page2 {
    width: 100% !important;
    height: auto !important;
    min-height: 0;
  }

  #stats {
    flex-wrap: wrap;
  }

  #pdfPreview,
  #previewHTML {
    height: auto !important;
    min-height: 70vh;
    padding: 14px;
  }

  #folders {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)) !important;
    gap: 12px !important;
  }

  div#folders > div {
    min-height: 124px !important;
  }

  #level3 .level3-navigation,
  #auto-level-3 .level3-navigation {
    flex-wrap: wrap !important;
  }

  #level3 .level3-navigation .book_name,
  #auto-level-3 .level3-navigation .book_name {
    min-width: 0 !important;
    flex: 1 1 calc(100% - 120px) !important;
  }

  #level3 .level3_buttons,
  #auto-level-3 .level3_buttons {
    width: 100% !important;
    order: 3;
    justify-content: flex-end !important;
    flex-wrap: wrap !important;
  }

  #level2 #toolbars,
  #auto-level-2 #toolbars {
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "logo title nav"
      "actions actions actions";
  }

  #level2 #toolbars .toolbars_preview,
  #auto-level-2 #toolbars .toolbars_preview {
    align-items: stretch;
  }

  #level2 #toolbars .finalise_btns,
  #auto-level-2 #toolbars .finalise_btns {
    justify-content: flex-end !important;
  }
}

@media (max-width: 640px) {
  .main-logo {
    top: 18px;
    left: 18px;
  }

  .main-logo img {
    width: 125px;
  }

  .instruction_btn {
    top: 18px;
    right: 18px;
  }

  .startScreen {
    width: min(420px, 92%);
    padding-top: 0;
    background-size: contain !important;
  }

  .typewriter {
    max-width: 86%;
    padding: 12px 6px 14px;
    font-size: 20px !important;
    top: 74.5%;
    letter-spacing: 0.04em;
  }

  .typewriter::after {
    font-size: 16px;
  }

  .book_name h1,
  #topHeader h1 {
    font-size: 22px !important;
  }

  h1.tgTitle {
    top: -4px !important;
    padding: 8px 16px 10px !important;
    font-size: 22px !important;
    border-radius: 14px 14px 26px 26px !important;
  }

  .publication_logo {
    width: 86px;
    margin-left: 0;
    transform: none;
  }

  .question-parent {
    padding: 16px 14px 16px 42px !important;
  }

  #folders {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)) !important;
    gap: 10px !important;
  }

  div#explorer,
  #auto-page1,
  #auto-page2 {
    padding: 12px !important;
  }

  div#folders > div {
    min-height: 108px !important;
    padding: 14px 12px !important;
  }

  div#folders > div .folder_name a {
    font-size: 15px !important;
  }

  div#folders > div::after {
    width: 24px;
    height: 24px;
    right: 12px !important;
    bottom: 10px !important;
  }

  .finalise_btns,
  .level3_buttons {
    display: grid !important;
    grid-template-columns: 1fr;
  }

  .finalise_btns .info_btn,
  .level3_buttons .info_btn,
  .sm_button {
    width: 100%;
  }

  #level3 .level3_buttons,
  #auto-level-3 .level3_buttons {
    grid-template-columns: 1fr !important;
  }

  #level3 .level3_buttons .info_btn,
  #auto-level-3 .level3_buttons .info_btn {
    width: 100% !important;
  }

  #level2 #toolbars,
  #auto-level-2 #toolbars {
    grid-template-columns: 1fr;
    grid-template-areas:
      "logo"
      "title"
      "actions"
      "nav";
    justify-items: stretch;
  }

  #level2 #toolbars .book_name,
  #auto-level-2 #toolbars .book_name {
    min-width: 0 !important;
    text-align: center;
  }

  #level2 #toolbars .finalise_btns,
  #auto-level-2 #toolbars .finalise_btns {
    display: grid !important;
    grid-template-columns: 1fr;
  }

  #level2 #toolbars .finalise_btns .info_btn,
  #auto-level-2 #toolbars .finalise_btns .info_btn {
    width: 100% !important;
  }

  .typePannel {
    grid-template-columns: 1fr;
    padding: 28px 22px 32px;
  }

  .tg-type-container .topTitle {
    font-size: 19px !important;
    padding: 18px 18px !important;
  }

  .tg-type-container {
    transform: none !important;
  }
}

@media (max-width: 980px) {
  .tg-type-container {
    transform: translateX(0) !important;
  }
}
