/* Side panel styles */
.side-panel {
  height: 100%;
  width: 400px; /* Fixed width */
  position: fixed;
  z-index: 3; /* Ensure the panel is above other elements */
  top: 0;
  left: -400px; /* Position off-screen initially */
  background-color: #fff;
  overflow-x: hidden;
  transition: 0.5s;
  padding-top: 40px;
}

.close-btn,
#json-structure-popup-close-btn {
  position: absolute;
  top: 10px;
  right: 25px;
  font-size: 36px;
  margin-left: 50px;
  color: #213271;
}

.side-panel textarea,
.side-panel input[type="file"],
.side-panel button,
.side-panel div {
  width: 90%;
  margin: 10px;
  padding: 10px;
  /* border: none; */
  border-radius: 4px;
  box-sizing: border-box;
}

.side-panel textarea {
  height: 200px;
}

.open-btn {
  cursor: pointer;
  color: #213271;
  border: none;
  padding: 10px 10px;
  position: fixed;
  left: 5px;
  z-index: 1; /* Ensure the button is below the panel */
}

/* Backdrop overlay styles */
#backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 2; /* Ensure the backdrop is below the panel but above other elements */
  display: none; /* Hidden by default */
}

.side-panel ol {
  padding-inline-start: 20px;
}

.side-panel ul {
  list-style-type: none;
  padding: 0;
}

.side-panel ul li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f0f0f0;
  border-radius: 4px;
  padding: 10px;
  margin: 5px 0;
  cursor: pointer;
  transition: background-color 0.3s;
  width: 100%;
  position: relative;
}

.side-panel ul li:hover {
  background-color: #ddd;
}

.side-panel ul li .question-set-name {
  width: 80%;
  padding-left: 10px;
}

.side-panel ul li .tick-mark {
  position: absolute;
  top: -5px;
  left: -5px;
  color: white;
  font-size: 16px;
  width: 25px;
  height: 25px;
  display: flex;
  border-radius: 50%;
  background: #213271;
  justify-content: center;
  align-items: center;
}

.question-set-button-container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  width: 20%;
  position: relative;
}

.question-set-button-container button {
  background-color: #e86349;
  border: none;
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  padding: 5px 10px;
  transition: background-color 0.3s;
  float: right;
  margin: 5px;
}
.question-set-button-container button:hover {
  background-color: #d35b43;
}

button.question-set-delete-btn {
  background-color: #b12002;
}

button.question-set-delete-btn:hover {
  background-color: #991a00;
}

#show-json-structure {
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
  font-weight: 500;
  margin-left: 30px;
}

#json-structure-popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  background-color: #fff;
  padding: 20px;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
