body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  z-index: 9999;
}

#top-bar {
  background: #222;
  color: #fff;
  padding: 10px;
  display: flex;
  align-items: center;
  height: 40px;
  flex-shrink: 0;
}


#previewBtn {
  padding: 6px 12px;
  background: #c42a73;
  position: absolute;
  left:  calc(50% + 20px);
  z-index: 1000;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-right: 10px;
  font-family: 'Poppins', sans-serif;
}

#codeGeneratorUIPreviewBtn,
#exportBtn,
#fullScreenModePreviewBtn,
#modeSelector {
  padding: 6px 12px;
  background: #c42a73;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-right: 10px;
  font-family: 'Poppins', sans-serif;
}

#fullScreenModePreviewBtn {
display: none;
}

#editorContainer {
  display: flex;
  flex: 1;
  height: 100%;
  overflow: hidden;
}

#editor {
  width: 50%;
  min-width: 150px;
  max-width: 90%;
  transition: width 0.3s ease;
}

#divider {
  width: 5px;
  /* cursor: col-resize; */
  background: #444;
}

iframe {
  flex: 1;
  height: 100%;
  border: none;
}

.hidden {
  display: none !important;
}

#codeGeneratorUI {
  width: calc(50% - 40px);
  min-width: 150px;
  max-width: 90%;
  transition: width 0.3s ease;
  height: 100%; /* Set a fixed height or max-height */
  overflow: auto; 
  padding: 20px; 
}

#codeGeneratorUI h3 {
  margin-top: 0;
  font-family: 'Poppins', sans-serif;
}

#codeGeneratorUI label {
  display: block;
  margin: 10px 0 5px;
  font-weight: bold;
  font-family: 'Poppins', sans-serif;
}

#codeGeneratorUI input[type="text"],
#codeGeneratorUI textarea,
#codeGeneratorUI select {
  width: 100%;
  padding: 8px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: 'Poppins', sans-serif;
}

#codeGeneratorUI input[type="color"] {
  margin-bottom: 10px;
  font-family: 'Poppins', sans-serif;
}

#codeGeneratorUI .switch {
  position: relative;
  display: inline-block;
  width: 34px;
  height: 20px;
  font-family: 'Poppins', sans-serif;
}

#codeGeneratorUI .switch input {
  opacity: 0;
  width: 0;
  height: 0;
  font-family: 'Poppins', sans-serif;
}

#codeGeneratorUI .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 20px;
  font-family: 'Poppins', sans-serif;
}

#codeGeneratorUI .slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
  font-family: 'Poppins', sans-serif;
}

#codeGeneratorUI input:checked + .slider {
  background-color: #c42a73;
  font-family: 'Poppins', sans-serif;
}

#codeGeneratorUI input:checked + .slider:before {
  transform: translateX(14px);
  font-family: 'Poppins', sans-serif;
}

#seedColorContainer {
  /* display: none; */
  margin-top: 10px;
  font-family: 'Poppins', sans-serif;
  width: 160px; 
}

#seedColor {
    width: 30px; /* Set the width of the color picker */
    height: 30px; /* Set the height equal to the width to make it a square */
    padding: 0; /* Remove any default padding */
    border: 1px solid #ccc; /* Optional: Add a border for better visibility */
    border-radius: 0; /* Remove rounded corners for a square look */
    cursor: pointer; /* Add a pointer cursor for better UX */
}

#codeGeneratorUI input,
#codeGeneratorUI select,
#codeGeneratorUI textarea {
  width: 100%; /* Set the desired width, e.g., full width */
  box-sizing: border-box; /* Ensure padding and border are included in the width */
}

/* Ensure the parent container has a constrained height */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden; /* Prevent scrolling on the entire page */
  font-family: 'Poppins', sans-serif;
}

/* Hidden class to hide the overlay */
.hidden {
  display: none;
}

/* Link styling */
.theme-link {
  text-decoration: none;
  color: #c42a73;
  font-size: 12px;
  margin-left: 4px;
  margin-top: 6px;
  display: flex;
  align-items: center;
}