body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #f4f4f4;
}

#app {
  width: 90%;
  max-width: 800px;
  background: #fff;
  padding: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

.page {
  display: flex;
  flex-direction: column;
}

h1 {
  margin-bottom: 20px;
  font-size: 24px;
}

label {
  margin-bottom: 5px;
  font-weight: bold;
}

input, textarea, select {
  margin-bottom: 15px;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
  width: 100%;
}

textarea {
  height: 100px;
  resize: vertical;
}

button {
  padding: 10px 15px;
  font-size: 16px;
  color: #fff;
  background-color: #007BFF;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

button:hover {
  background-color: #0056b3;
}

.course-container {
  display: flex;
  flex-direction: column;
}

.course-container input, .course-container select {
  margin-bottom: 10px;
}

select {
  width: calc(100% - 22px);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

th, td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: left;
}

th {
  background-color: #f4f4f4;
}

ul {
  list-style-type: none;
  padding: 0;
}

ul li {
  padding: 10px;
  border-bottom: 1px solid #ddd;
  display: flex;
  flex-direction: column;
}

ul li > div {
  margin-right: 20px;
  flex: 1;
  min-width: 150px;
}

ul li > div:last-child {
  margin-right: 0;
}

ul li p {
  margin: 0;
}

ul li a {
  color: #007BFF;
}

ul li a:hover {
  text-decoration: underline;
}

.actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.actions i {
  cursor: pointer;
  font-size: 1.2em;
  color: #dc3545;
}

.actions i:hover {
  color: #c82333;
}

.actions i.edit {
  color: #ffc107;
}

.actions i.edit:hover {
  color: #e0a800;
}

.actions i.add {
  color: #28a745;
}

.actions i.add:hover {
  color: #218838;
}

.actions i.fa-caret-up,
.actions i.fa-caret-down {
  color: #007BFF;
}

.selected-lesson {
  background-color: #e0f7fa;
  color: #007BFF;
}

.item-name {
  cursor: pointer;
  position: relative;
}

.item-name:hover {
  text-decoration: underline;
}

.description-text {
  white-space: pre-wrap; /* This ensures the text wraps properly within its container */
  word-wrap: break-word; /* Ensures long words are wrapped */
}

@media (max-width: 600px) {
  body {
    padding: 10px;
  }

  #app {
    width: 100%;
    padding: 15px;
  }

  h1 {
    font-size: 20px;
    text-align: center;
  }

  table, th, td {
    font-size: 14px;
    padding: 5px;
  }

  input, textarea, select {
    font-size: 14px;
    padding: 8px;
  }

  button {
    font-size: 14px;
    padding: 8px 10px;
  }

  .actions i {
    font-size: 1em;
  }
}
