@import url(https://fonts.googleapis.com/css2?family=Tenor+Sans&display=swap);
.sp-layout{height:79vh}.sp-stack{height:100% !important}
html, body, #root, .sandpack-container {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  font-family: sans-serif;
}

.header {
  width: 100%;
  background-color: #596774; 
  padding: 0;
}

.header-menu {
  flex: 1 1;
}

.menu-icon {
  width: 20px;
  height: 20px;
}

.menu-item {
  margin: 0 8px;
  font-size: 16px;
}

.menu-item.active {
  background-color: #3E3E3E;
  color: white;
  font-size: 18px;
}


.content-layout {
  display: flex;
  flex-direction: row;
}

.content-layout-height{
  height: 84vh;
}

.code-sidebar {
  background-color: #2E2E2E;
  display: flex;
  justify-content: flex-start;
  flex-direction: column;
  gap: 20px;
  padding: 10px;
}

.icon-button {
  background-color: #3E3E3E;
  border: none;
  height: 45px !important;
  width: 45px !important;
  transition: background-color 0.2s;
}

.icon-button:hover, .icon-button:focus {
  background-color: #666666;
}

.highlighted {
  background-color: whitesmoke;
}


.file-explorer {
  background-color: #1C1C1C;
  flex: 0 0 300px;
  transition: all 0.3s ease;
}

.question-explorer {
  flex: 0 0 300px;
  transition: all 0.3s ease;
}

.question-content {
  padding: 1rem 1rem;
  background-color: white;
  color: black;
  overflow-y: auto; 
  overflow-x: hidden; 
  word-wrap: break-word;
  white-space: pre-wrap;
  scrollbar-width: thin;
  scrollbar-color: #4A4A4A #1E1E1E;
}

.question-content::-webkit-scrollbar {
  width: 8px;
}

.question-content::-webkit-scrollbar-track {
  background: #1E1E1E;
  border-radius: 10px;
}

.question-content::-webkit-scrollbar-thumb {
  background-color: #4A4A4A;
  border-radius: 10px;
  border: 2px solid #1E1E1E;
}

.question-content::-webkit-scrollbar-thumb:hover {
  background-color: #888;
}

.file-explorer.show {
  display: block;
}

.file-explorer.hide {
  display: none;
}

.file-explorer-content {
  overflow: auto;
  background-color: #1C1C1C;
  color: white;
}

.dependency-installer {
  padding: 10px;
  background-color: #2d2d2d;
  border-radius: 5px;
}

.icon-button {
  background-color: #3C3C3C;
  border: none;
  height: 45px !important;
  width: 45px !important;
}

.icon-button:hover {
  background-color: #555555;
}

.sandpack-file-explorer::-webkit-scrollbar{
  display: none;
}

.content {
  margin-left: 0;
  background-color: black;
  transition: margin-left 0.3s ease;
}

.content.shifted {
  margin-left: -80px;
  background-color: black;
  transition: margin-left 0.3s ease;
}

.split {
  display: flex;
  height: 100%;
  width: 100%;
}

.editor-pane, .preview-pane {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.split > .gutter {
  background-color: #444;
  cursor: col-resize;
  width: 3px;
}

.split > .gutter:hover {
  background-color: #666;
}

.action-buttons{
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0.5rem;
  z-index: 2;
  position: relative;
  background-color: black;
}

.cm-scroller::-webkit-scrollbar {
  display: none;
}

.loader {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 50px;
}

.show-testcase{
  display: block;
}

.hide-testcase{
  display: none;
}

.question-logger-container {
  background-color: whitesmoke;
  padding: 0 0 0.5rem;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
}

.test-logger-container {
  background-color: #1E1E1E;
  padding: 0.5rem;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
}

.sp-layout {
  border-radius: 0px !important;
}

.testRunner{
  position: absolute;
  margin-top: -8.5rem;
  background-color: black;
  min-height: calc(25vh - .7rem);
  max-height: calc(25vh - .7rem);
  width: calc(100vw - 15.45rem);
  overflow: auto;
}

.loadingContainer {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh; 
  width: 100vw; 
  background-color: #f0f2f5;
}

.testRunner::-webkit-scrollbar{
  display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .file-explorer {
    flex: 0 0 100px;
  }

  .content.shifted {
    margin-left: 0;
  }
}

.sp-preview-actions > button:nth-child(2) {
  display: none;
}

.sp-loading {
  display: none;
}
.custom-content{margin:24px 16px;height:100vh;overflow-y:scroll;overflow-x:hidden !important}
body {
  margin: 0px;
  font-family: "DM-sans", sans-serif;
  height: 100vh;
  overflow: auto;
  position: relative;
  -webkit-print-color-adjust: exact !important;
  print-color-adjust: exact !important;
}

.ant-form-item-label
  > label.ant-form-item-required:not(
    .ant-form-item-required-mark-optional
  )::before {
  display: none !important;
}

.ant-form-item-label
  > label.ant-form-item-required:not(
    .ant-form-item-required-mark-optional
  )::after {
  display: inline-block !important;
  margin-right: 4px !important;
  color: red !important;
  font-size: 14px;
  font-family: SimSun, sans-serif !important;
  line-height: 1;
  content: "*" !important;
}

