body {
  margin: 0;
  font-family: 'Noto Sans Lao', sans-serif;
  background: #f5f5f5;
  display: flex;
  flex-direction: column;
  min-height: 100vh;   /* ทำให้สูงเต็มจอ */
}

header {
  background: #4CAF50;
  color: white;
  padding: 1rem;
  text-align: center;
  position: relative;
}

.menu-toggle {
  position: absolute;
  top: 15px;
  left: 15px;
  font-size: 20px;
  background: #388E3C;
  color: white;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 5px;
}

.container {
  display: flex;
  flex: 1;  /* ดัน footer ลงไปล่าง */
}

nav#sidebar {
  width: 220px;
  background: #333;
  color: white;
  height: 100vh;
  position: fixed;
  left: -220px;
  top: 0;
  transition: 0.3s;
  padding-top: 60px;
}

nav#sidebar.active {
  left: 0;
}

nav#sidebar ul {
  list-style: none;
  padding: 0;
}

nav#sidebar li {
  padding: 12px;
}

nav#sidebar li a {
  color: white;
  text-decoration: none;
}

.close-menu {
  position: absolute;
  top: 10px;
  right: 10px;
  background: red;
  color: white;
  border: none;
  padding: 5px 8px;
  cursor: pointer;
}

.content {
  margin-left: 0;
  padding: 20px;
  flex: 1;
  transition: 0.3s;
}

.lesson-card {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

ul.lesson-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

ul.lesson-list li {
  display: flex;             
  justify-content: space-between; 
  align-items: center;
  margin: 10px 0;
  font-size: 18px;
  padding: 8px 12px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.btn-speak {
  margin-left: 10px;
  background: #4CAF50;
  color: white;
  border: none;
  padding: 5px 8px;
  border-radius: 5px;
  cursor: pointer;
  flex-shrink: 0; 
}

.btn-speak:hover {
  background: #388E3C;
}

footer {
  text-align: center;
  padding: 15px;
  background: #333;
  color: white;
}