/* Estilos para el panel del alumno */
.dashboard-container {
  display: flex;
  min-height: calc(100vh - 60px);
  margin-top: 60px;
}

.sidebar {
  width: 300px;
  background-color: #2c3e50;
  color: white;
  padding: 20px;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar h3 {
  margin-bottom: 20px;
  font-size: 1.3rem;
  border-bottom: 2px solid #3498db;
  padding-bottom: 10px;
}

.materias-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.materia-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 15px;
  border-radius: 6px;
  transition: all 0.3s;
}

.materia-card:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateX(5px);
}

.materia-card h4 {
  margin-bottom: 5px;
  color: #3498db;
}

.materia-card p {
  font-size: 0.9rem;
  margin-bottom: 10px;
  color: #ecf0f1;
}

.materia-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
}

.horario {
  color: #bdc3c7;
}

.estado {
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: bold;
}

.estado.activa {
  background-color: #27ae60;
  color: white;
}

.estado.por-iniciar {
  background-color: #f39c12;
  color: white;
}

.main-content {
  flex: 1;
  padding: 30px;
  background-color: #f9f9f9;
}

.actividades-section h2 {
  color: #2c3e50;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #3498db;
}

.actividades-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.actividad-card {
  background-color: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  border-left: 4px solid #3498db;
}

.actividad-card.urgente {
  border-left: 4px solid #e74c3c;
}

.actividad-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.actividad-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.actividad-header h3 {
  color: #2c3e50;
  font-size: 1.1rem;
}

.fecha {
  font-size: 0.8rem;
  background-color: #ecf0f1;
  padding: 3px 8px;
  border-radius: 12px;
  color: #7f8c8d;
}

.actividad-card p {
  color: #555;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.actividad-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.materia {
  font-size: 0.85rem;
  color: #3498db;
  font-weight: 600;
}

.actividad-btn {
  padding: 6px 15px;
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.question {
    margin-top: 1rem;
}

.offsel {
    opacity: 75%;
}

.item:not(.offsel):has(+ .offsel), .item.offsel + .item:not(.offsel) {
    font-weight: bold;
}