@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

/* ................. */

* {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
}

a {
  text-decoration: none !important;
}

code {
    font-size: 1em !important;
}

.token {
  font-family: Consolas, monospace !important;
}

::-webkit-scrollbar {
  width: 10px;
  height: 4px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
  border-radius: 5px;
}

.errors li {
  margin-left: 20px;
}

.view-img {
  z-index: 101 !important;
}

input[class="error"] {
  border: 1px solid #E73635 !important;
}

label[class="error"] {
  color: #E73635;
  font-size: 14px;
}

.swal2-popup {
  width: 31em !important;
}

.noTestAlert {
  margin-top: 15%;
  text-align: center;
}

/* scroll to top */
.scroll_To_Top {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, rgb(42, 39, 218), rgb(0, 204, 255));
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (max-width: 991px) {
  .scroll_To_Top {
    bottom: 15px;
    width: 49px;
    height: 49px;
  }
}

/* custom loader */
.loader {
  width: 56px;
  height: 56px;
  display: grid;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10000;
}

.loader::before,
.loader::after {
  content: "";
  grid-area: 1/1;
  background: var(--c) 50% 0,
    var(--c) 50% 100%,
    var(--c) 100% 50%,
    var(--c) 0 50%;
  background-size: 13.4px 13.4px;
  background-repeat: no-repeat;
  animation: loader-3hs4a3 1s infinite;
}

.loader::before {
  --c: radial-gradient(farthest-side, #474bff 92%, #0000);
  margin: 4.5px;
  background-size: 9px 9px;
  animation-timing-function: linear;
}

.loader::after {
  --c: radial-gradient(farthest-side, #474bff 92%, #0000);
}

@keyframes loader-3hs4a3 {
  100% {
    transform: rotate(.5turn);
  }
}

/*image zooming*/
.zoomed-img {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 90%;
  max-height: 90%;
  z-index: 9999;
}

.zoom-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  z-index: 9998;
}

.zoom-close {
  position: fixed;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #fff;
  color: #000;
  border: none;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000;
}

.zoom-caption {
  position: fixed;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 14px;
  text-align: center;
  z-index: 10000;
  width: 80%;
}
/*.............*/

/* admin auth begin */
.adminAuth {
  background-color: #112a42;
}

.adminAuth .authBx {
  width: 800px;
  height: 500px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
}

.adminAuth .authBx .imgBx,
.adminAuth .authBx .formBx {
  transition: 0.5s;
}

.adminAuth .authBx .signupBx {
  pointer-events: none;
}

.adminAuth .authBx.active .signupBx {
  pointer-events: initial;
}

.adminAuth .authBx .signupBx .formBx,
.adminAuth .authBx.active .signinBx .formBx {
  left: 100%;
}

.adminAuth .authBx .signinBx .formBx,
.adminAuth .authBx.active .signupBx .formBx,
.adminAuth .authBx .signinBx .imgBx,
.adminAuth .authBx.active .signupBx .imgBx {
  left: 0%;
}

.adminAuth .authBx .signupBx .imgBx,
.adminAuth .authBx.active .signinBx .imgBx {
  left: -100%;
}

.adminAuth .btn-primary,
.adminAuth .btn-primary:focus {
  background-color: #112a42;
  border: none;
  outline: none;
  padding: 10px 0;
  border-radius: 0;
}

.adminAuth .btn-primary:hover,
.adminAuth .btn-primary:disabled {
  background: #0e2133;
}

.adminAuth .liney-text {
  position: relative;
}

.adminAuth .liney-text::before,
.adminAuth .liney-text::after {
  content: "";
  position: absolute;
  top: 50%;
  border-bottom: 1px solid #ddd;
  width: 40%;
  margin-top: -1px;
}

.adminAuth .liney-text::before {
  left: 0;
}

.adminAuth .liney-text::after {
  right: 0;
}

@media (max-width: 991px) {
  .adminAuth .authBx {
    max-width: 400px;
  }

  .adminAuth .authBx .imgBx {
    display: none;
  }
}

/*navbar begin*/
.navBar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
  color: #000;
  padding: 0 30px;
  width: 100%;
  text-transform: uppercase;
  font-weight: 500;
  font-size: 16px;
  background: linear-gradient(145deg, #fff, #ffffff);
  box-shadow: 5px 5px 10px #e1e3e6, -5px -5px 10px #ffffff;
}

.navBar .logoS {
  display: none;
}

.navBar .menu ul {
  list-style: none;
  display: flex;
  align-items: center;
  margin-bottom: 0;
}

.navBar .menu ul li a {
  color: #000;
  line-height: 40px;
  display: block;
  padding: 0 10px;
  margin-left: 20px;
  border-radius: 20px;
  text-align: center;
}

.navBar i {
  display: none;
}

.msgList img {
  max-width: 100%;
  height: auto;
}

.navBar .menu ul li a:hover {
  /* background: red; */
  color: #F26638;
}

.navBar .menu li img,
.navBar .menu .profileImage {
  height: 35px;
  width: 35px;
  border: 1px solid #e1e6e1;
  object-fit: cover;
}

.navBar [data-bs-target="#newFeatures"] img {
  width: 45px !important;
  height: auto !important;
}

.navBar .mobile-menu {
  display: none;
}

.tools {
  background: #fff;
  margin-top: 10px;
  padding: 10px 0px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.tools i:not(.goback) {
  display: none;
}

@media (max-width: 750px) {
  .navBar {
    padding: 0 15px;
  }

  .navBar .logoS {
    display: block;
  }

  .navBar .logoL {
    display: none;
  }

  .navBar .menu ul {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .navBar .menu ul li a {
    margin: 0;
    padding: 0;
  }

  .navBar span {
    display: none;
  }

  .navBar i {
    height: 35px;
    width: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #e6e6e6;
    color: #9c9c9c;
    border-radius: 50%;
  }

  .tools i:not(.goback) {
    display: block;
  }

  .tools span {
    display: none;
  }
}

/*nabvar end*/

/* admin panel start */
/*index*/
#viewProfile .footer i {
  display: none;
}

.profileData img,
.profileData .profileImage {
  height: 100px;
  width: 100px;
  font-size: 50px;
  object-fit: cover;
}

/*dashboard*/
.dashboard .spacer {
  border: 1px solid #fff;
}

.dashboard .spacer:not(:last-child) {
  border-bottom: 1px solid #ddd;
}

/*view test*/
.viewTestBody .qsnSets {
  border-radius: 50px 50px 0 0;
}

.qsnSets .qsn {
  margin-top: 30px;
  background: linear-gradient(145deg, #fff, #ffffff);
  box-shadow: 5px 5px 10px #e1e3e6, -5px -5px 10px #ffffff;
  padding: 20px;
  border-radius: 10px;
}

.qsnSets i {
  cursor: pointer;
}

#testqsn img {
  height: auto !important;
  max-width: 400px !important;
  margin-bottom: 15px;
  border-radius: 5px;
}

#testqsn img:hover {
  cursor: zoom-in;
}

#test_link::selection {
  background: transparent;
}

/*view result*/
.viewResult .scoreTable {
  white-space: nowrap;
}

.viewResult .scoreTable i {
  cursor: pointer;
}

.scoreTable thead img {
  width: 15px;
  height: 15px;
}

.scoreTable tbody tr:hover {
  cursor: grab;
}

.scoreTable tbody tr:active {
  cursor: grabbing;
}

.scoreTable .fa-angle-down,
.scoreTable .fa-angle-up{
    color: #ccc;
}

/* disable selection only while actively dragging */
.drag-scrolling,
.drag-scrolling * {
  user-select: none !important;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
}

/*view answersheet*/
.viewAnswersheet .fa-check {
  color: green;
}

.viewAnswersheet .fa-xmark {
  color: red;
}

@media only screen and (max-width: 750px) {

  /*index*/
  #viewProfile .profileData {
    gap: 30px;
    flex-direction: column;
  }

  #viewProfile .footer span {
    display: none;
  }

  #viewProfile .footer i {
    display: block;
  }

  .profileData .ms-3 {
    margin: 0 !important;
  }

  /*dashboard*/
  .dashboard .fstTest {
    width: 100%;
    padding: 0 10px;
  }

  .dashboard .fstTest img {
    width: 100px;
    height: 100px;
  }

  .dashboard .table td span {
    display: none
  }

  .dashboard .table td:first-of-type~*,
  .dashboard .table th:first-of-type~* {
    display: none;
  }

  /*view test*/
  #testqsn img {
    max-width: 100% !important;
  }

  /*view result*/
  .viewResult .resultHead {
    /* flex-direction: column; */
    gap: 10px;
  }

  .resultHead div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
  }
  
  #import-test {
    height: auto !important;
  }
}

@media (max-width: 991.98px) {
    .viewResult td,
    .viewResult th {
      white-space: nowrap;
    }
  }

/*dashboard end*/

/* attendee section */
.attendeeDash ol {
  list-style-type: decimal !important;
  text-align: justify;
}

/* test panel */
.qsnbar::-webkit-scrollbar {
  width: 5px;
}

.toggle-qsnbar {
  z-index: 7;
}

.timer {
  position: sticky !important;
  top: 0;
  z-index: 1;
}

.btn-check:checked+.option-box {
  background-color: rgba(128, 0, 128, 0.1);
  border-color: purple !important;
}

#answerPage img{
    max-width: 600px;
    height: auto;
}

/* attendee score */

.score-container {
  max-width: 1000px !important;
}

.completion-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
}

.detail-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.detail-content h3 {
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.instructions-content {
  background: linear-gradient(135deg, #dbeafe, #e0f2fe);
  border-radius: 12px;
}

.instruction-bullet {
  width: 8px;
  height: 8px;
  background: #3b82f6;
}

.score-truncate {
  display: block;
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media only screen and (max-width: 767.98px) {
  .attendeeDash ol {
    text-align: left;
  }
  
  .attendeeDash table {
    width: 100% !important;
  }

  .qsnbar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 5;
  }

  .qsnbar.show {
    transform: translateX(0);
  }

  .testPanel .timer h4 {
    font-size: 16px;
  }
  
  #answerPage img{
      max-width: 100%;
  }
}

/* ..... */

/*bootstrap reset*/
ul,
ol {
  margin: 0 !important;
  padding: 0 !important;
}

.modal p {
  margin: 0;
}

.modal ::-webkit-scrollbar {
  width: 5px;
}

.modal ::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.modal ::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 5px;
}

.modal ::-webkit-scrollbar-thumb:hover {
  background: #555;
  border-radius: 5px;
}

.form-control.error,
.form-select.error {
  border: 1px solid #E73635 !important;
}

input::placeholder,
textarea::placeholder {
  color: #ccc !important;
  font-size: 14px !important;
}

button:focus,
input:focus,
select:focus,
.selectize-input,
.swal2-confirm:focus,
.swal2-cancel:focus,
textarea:focus {
  outline: none !important;
  outline-width: 0 !important;
  box-shadow: none !important;
  -moz-box-shadow: none;
  -webkit-box-shadow: none;
}

.tooltip-inner {
  max-width: 355px !important;
  text-align: left !important;
  padding: 15px !important;
}

.tooltip-inner li {
  padding: 5px;
  list-style: none;
}

.alert {
  margin: 0 !important;
}

.no-select {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.bg-success-gradient {
  background: linear-gradient(135deg, #10b981, #059669);
}

.bg-primary-gradient {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.bg-warning-gradient {
  background: linear-gradient(135deg, #fb923c, #f8715c);
}

.bg-purple-gradient {
  background: linear-gradient(135deg, #a78bfa, #7c3aed);
}

@media only screen and (max-width: 750px) {
  .toast {
    border-radius: 0rem !important;
  }

  #successToast.p-3 {
    padding: 0 !important;
  }
  
  .tooltip-inner {
      max-width: 300px !important;
    }
}

.ui-draggable-handle {
  cursor: move;
}

#calculator .modal-title {
  font-size: 14px;
}
/*.............*/