/* 🏠 Generale */
body {
  font-family: "Arial", sans-serif;
  background: #f8f9fa;
  margin: 0;
  padding: 0;
}

h1 {
  font-size: 24px;
  font-weight: bold;
}

/* 📦 Contenitore delle lezioni */
.lesson-container {
  text-align: left;
}

/* 🔲 Grid delle lezioni */
.lesson-grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* 🏫 Scheda di ogni istruttore */
.lesson-card {
  background: #f0f1f5;
  padding: 20px;
  border-radius: 10px;
  width: 250px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  min-height: 150px; /* 🔹 Aggiunto per mantenere lo spazio quando si sposta uno studente */
}

/* 🔹 Quando un'area è evidenziata per il drop */
.lesson-droppable {
  background: #e3f2fd; /* Blu chiaro per evidenziare */
  min-height: 150px;
  padding: 10px;
  border-radius: 10px;
  transition: background 0.2s ease-in-out;
}

/* 👤 Nome istruttore */
.instructor {
  font-size: 14px;
  color: #666;
}

/* 📚 Titolo della lezione */
.lesson-title {
  font-weight: bold;
  font-size: 16px;
}

/* 🎓 Contenitore studenti */
.students {
  margin-top: 10px;
  min-height: 50px; /* 🔹 Aggiunto per mantenere lo spazio quando la lista è vuota */
}

/* 🏷️ Singolo studente */
.student-card {
  background: white;
  padding: 10px;
  border-radius: 5px;
  margin-top: 5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  cursor: grab; /* 🖱️ Mostra che è trascinabile */
  transition: transform 0.2s ease-in-out;
}

/* 🏷️ Quando lo studente è in fase di trascinamento */
.student-card:active {
  transform: scale(1.05); /* 🔹 Effetto di ingrandimento */
}

/* 💙 Nome dello studente */
.student-card strong {
  color: #009fbf;
}

/* 📊 Barra dettagli studente */
.student-details {
  display: flex;
  gap: 5px;
  margin-top: 5px;
}

.student-details span {
  width: 30px;
  height: 8px;
  background: #d3d3d3;
  border-radius: 5px;
}

/* 🔘 Bottone */
.lesson-btn {
  margin-top: 10px;
  background: #00afcc;
  border: none;
  height: 6px;
  width: 50px;
  border-radius: 10px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}