#test-constructor-root {
  max-width: 820px;
  margin: 40px auto;
  background: #ffffff;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  font-family: 'Segoe UI', sans-serif;
}

#test-constructor-root h2 {
  font-size: 1.7em;
  margin-bottom: 28px;
  color: #2c3e50;
  text-align: center;
}

.tc-field {
  margin-bottom: 20px;
}

.tc-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: #333;
}

.tc-field input[type="text"],
.tc-field textarea,
.tc-field select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1em;
  background-color: #f9f9f9;
}

.question-block {
  background: #f4f9ff;
  padding: 20px;
  margin-bottom: 25px;
  border-left: 4px solid #007acc;
  border-radius: 10px;
  position: relative;
}

.question-block h4 {
  margin-top: 0;
  color: #007acc;
  font-size: 1.1em;
}

.remove-question {
  background: none;
  border: none;
  color: #d32f2f;
  font-weight: bold;
  position: absolute;
  top: 12px;
  right: 12px;
  cursor: pointer;
}

#add-question-btn {
  background-color: #007acc;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 1em;
  cursor: pointer;
  margin-bottom: 30px;
}

#add-question-btn:hover {
  background-color: #005fa3;
}

.tc-actions {
  text-align: center;
  margin-top: 30px;
}

.tc-actions button {
  margin: 0 12px;
  padding: 14px 24px;
  border: none;
  font-size: 1em;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
}

#preview-test {
  background-color: #e3f2fd;
  color: #007acc;
}

#submit-test {
  background-color: #007acc;
  color: #fff;
}

#preview-modal {
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.1);
  position: fixed;
  top: 5%;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 800px;
  z-index: 9999;
}

#close-preview {
  margin-top: 20px;
  background: #d32f2f;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
}