/* 🔲 Modal Overlay */
.assign-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
}

/* 🧾 Modal Box */
.assign-modal .assign-modal-content {
  background: #fff;
  max-width: 750px;
  margin: 5% auto;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* 📌 Modal Heading */
.assign-modal .assign-modal-content h2 {
  color: #972141;
  margin-top: 0;
}

/* 📋 Quiz List Container */
.assign-modal .quiz-list {
  display: block;
  margin-bottom: 20px;
  max-height: 250px;
  overflow-y: auto;
  padding: 10px;
  background-color: #f8f8f8;
  border: 1px solid #ccc;
  border-radius: 8px;
}

/* 🧩 Individual Quiz Card */
.assign-modal .quiz-item {
  background: #f5f5f5;
  padding: 10px 15px;
  border-radius: 8px;
  margin-bottom: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.assign-modal .quiz-item .input-group {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 🎯 Quiz Title */
.assign-modal .quiz-title {
  font-weight: bold;
  margin-bottom: 5px;
}

/* 🔢 Input Groups */
.assign-modal .input-group {
  margin-top: 5px;
  display: flex;
  align-items: center;
}

.assign-modal .input-group label {
  min-width: 160px;
  font-weight: 500;
}

.assign-modal .input-group input {
  width: 60px;
  margin-left: 10px;
  padding: 4px 6px;
}

/* ⏲️ Assignment Options */
.assign-modal .assignment-type,
.assign-modal .time-limit {
  margin: 20px 0;
}

/* 🧭 Button Row */
.assign-modal .assign-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.assign-modal .btn {
  padding: 10px 20px;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.assign-modal .btn.cancel-assign {
  background: #ccc;
}

.assign-modal .btn.create-assign {
  background: #972141;
  color: white;
}

/* 🔗 Result Box */
.assign-modal .assignment-result {
  margin-top: 20px;
  background: #e9f5e9;
  padding: 12px;
  border-radius: 6px;
}

.assign-modal #generated-link {
  width: 100%;
  padding: 8px;
  font-family: monospace;
  margin-bottom: 10px;
}
.assign-modal-content {
  background: #fff;
  max-width: 750px;
  margin: 5% auto;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);

  /* ✅ Add this */
  max-height: 90vh;
  overflow-y: auto;
}
