/* Reset dasar */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #f4f4f9;
  overflow: hidden;
}

.container {
  display: flex;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Toolbox dan workspace mengisi layar penuh */
.toolbox {
  width: 50%;
  height: 100%;
  max-height: 100vh;
  padding: 20px;
  border-radius: 8px;
  background: #ececec;
  position: relative;
  overflow-y: auto;
  margin-right: 20px;
}
/* Menambahkan latar belakang pink pada span ketika checkbox dicentang */
.select-soal:checked + span {
    background-color: pink;
}
.question-content {
    display: flex;
    align-items: center;
   
}

.question-number {
    font-weight: bold;
    margin-right: 10px;
    font-size: 1.2em;
    color: #2a9d8f; /* Warna hijau untuk nomor soal */
}

.question-text {
    font-size: 1.1em;
    color: #333; /* Warna teks soal */
}

.workspace {
  width: 50%;
  height: 100%;
  max-height: 100vh;
  background-color: #fff;
  border: 2px dashed #ccc;
  padding: 20px;
  border-radius: 8px;
  overflow-y: auto;
}

/* Filter-container untuk menata filter */
.filter-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

/* Filter untuk dropdown dan input teks */
.filter {
  display: flex;
  flex-direction: column;
  width: 200px;
}

/* Label untuk filter */
.filter label {
  font-weight: bold;
  margin-bottom: 8px;
  font-size: 14px;
}

/* Dropdown dan input filter */
.filter select,
.filter input {
  padding: 8px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 100%;
}

/* Hover effect pada dropdown dan input */
.filter select:hover,
.filter input:hover {
  border-color: #007bff;
}

/* Styling untuk soal dan tombol */
.tool {
  padding: 10px;
  margin: 10px 0;
  background-color: #007bff;
  color: white;
  border-radius: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.add-btn {
  padding: 5px 10px;
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.add-btn:hover {
  background-color: #218838;
}

/* Styling soal dan pilihan */
.question {
  padding: 10px;
  margin: 10px;
  border-radius: 5px;
  background-color: #f8f9fa;
  position: relative;
}

.option {
  margin: 5px 0;
  background-color: #f0f0f0;
  padding: 8px;
  border-radius: 4px;
  cursor: pointer;
}

.option:hover {
  background-color: #e0e0e0;
}

/* Styling untuk soal essay */
.essay {
  padding: 10px;
  margin: 10px;
  border-radius: 5px;
  background-color: #f8f9fa;
  position: relative;
}

.essay textarea {
  width: 100%;
  min-height: 150px;
  padding: 10px;
  font-size: 14px;
  border-radius: 4px;
  border: 1px solid #ccc;
  resize: vertical;
}

.essay label {
  display: block;
  font-weight: bold;
  margin-bottom: 10px;
}

/* Styling untuk pilihan A, B, C, D, E */
/* Menampilkan pilihan dalam satu baris jika teksnya pendek */
.options-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Jika ada lebih dari dua pilihan per baris, tampilkan 3 pilihan dalam satu baris */
.three-options-row .option {
    flex: 1 1 30%; /* Membuat tiga kolom per baris */
}

/* Jika pilihan terlalu panjang, tampilkan satu per baris */
.long-option {
    display: block;
    width: 100%;
}

.option {
  font-weight: normal;
  padding-left: 20px;
}

.option::before {
  content: attr(data-label);
  font-weight: bold;
  margin-right: 10px;
}

.remove-btn {
  margin-top: 10px;
  padding: 5px 10px;
  background-color: #dc3545;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.remove-btn:hover {
  background-color: #c82333;
}

.question-number {
  font-weight: bold;
  font-size: 18px;
  color: #007bff; /* Warna biru untuk nomor soal */
  
}

/* Styling untuk menandai jawaban yang benar */
.correct-option {
  background-color: #28a745;  /* Warna hijau untuk jawaban benar */
  color: white;
}

/* Styling untuk workspace */
.workspace {
  padding: 20px;
  border-radius: 8px;
  background-color: #fff;
  border: 2px dashed #ccc;
  min-height: 200px;
  background-color: #fafafa;
}

.workspace h3 {
  margin-bottom: 20px;
  font-size: 16px;
  font-weight: bold;
}
.download-btn {
  position: fixed;
    bottom: 100px; /* Distance from the bottom */
    right: 20px; /* Distance from the right */
    background-color: #ff0000; /* Button color */
    color: white; /* Text color */
    border: none;
    padding: 10px 15px;
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    font-size: 11px;
    transition: background-color 0.3s, transform 0.2s;
    z-index: 1000; /* Ensure it's on top of other elements */
}

.download-btn:hover {
    background-color: #45a049;
}
.download-btn1 {
  position: fixed;
    bottom: 60px; /* Distance from the bottom */
    right: 20px; /* Distance from the right */
    background-color: #ff0000; /* Button color */
    color: white; /* Text color */
    border: none;
    padding: 10px 15px;
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    font-size: 11px;
    transition: background-color 0.3s, transform 0.2s;
    z-index: 1000; /* Ensure it's on top of other elements */
}

.download-btn1:hover {
    background-color: #45a049;
}
.download-btn2 {
  position: fixed;
    bottom: 140px; /* Distance from the bottom */
    right: 20px; /* Distance from the right */
    background-color: #ff0000; /* Button color */
    color: white; /* Text color */
    border: none;
    padding: 10px 15px;
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    font-size: 11px;
    transition: background-color 0.3s, transform 0.2s;
    z-index: 1000; /* Ensure it's on top of other elements */
}

.download-btn2:hover {
    background-color: #45a049;
}

.download-btn5 {
  position: fixed;
  bottom: 20px;
  /* Distance from the bottom */
  right: 20px;
  /* Distance from the right */
  background-color: #ff0000;
  /* Button color */
  color: white;
  /* Text color */
  border: none;
  padding: 10px 15px;
  border-radius: 10px;
  /* Rounded corners */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  font-size: 11px;
  transition: background-color 0.3s, transform 0.2s;
  z-index: 1000;
  /* Ensure it's on top of other elements */
}

.download-btn5:hover {
  background-color: #45a049;
}


/* Responsivitas untuk filter dan layout */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }

  .toolbox, .workspace {
    width: 100%;
    max-height: none;
    margin-right: 0;
  }

 .filter-container {
    flex-direction: row;  /* Menyusun filter secara horizontal */
    gap: 15px; /* Menambah jarak antar elemen */
  }

  /* Filter lebar 50% pada layar kecil untuk 2 filter dalam satu baris */
  .filter {
    width: 45%; /* Lebar filter 50% dari kontainer, memberi ruang antar filter */
  }

  /* Ukuran teks lebih kecil di layar kecil */
  .filter label {
    font-size: 12px;
  }

  .filter select,
  .filter input {
    font-size: 12px;
    padding: 10px; /* Lebih besar padding agar nyaman dipakai di layar kecil */
  }

}
