/* Reset and basic styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  font-family: "Lato", sans-serif;
  line-height: 1.6;
  background-color: rgb(251, 251, 251);
  display: flex;
  flex-direction: column;
}

main {
  flex: 1; /* This ensures the main content area takes up the remaining space */
}

/* Navbar styles */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgb(135, 206, 235);
  padding: 10px 20px;
}

.logo {
  width: 50px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links a {
  text-decoration: none;
  color: black;
  font-weight: 600;
}

.nav-links a:hover {
  color: white;
}

/* Menu styles */
.menu {
  width: 100%;
  background-color: #f1f1f1;
}

.menu ul {
  list-style-type: none;
  padding: 10px;
}

.list li a {
  display: block;
  color: #000;
  padding: 15px 20px;
  text-decoration: none;
  font-size: 20px;
}

.list li a:hover {
  background-color: rgb(135, 206, 235);
  color: white;
}

/* Main content styles */
.dashboard {
  padding: 20px;
}

.container {
  width: 100%;
  margin: 0 auto;
}

.card {
  background-color: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 20px;
}

.text-input-area textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  margin-bottom: 15px;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.options div {
  width: 100%;
}

select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.button {
  background-color: #3498db;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s;
}

.button:hover {
  background-color: #2980b9;
}

#audio-player {
  width: 100%;
  margin-top: 20px;
}

/* Footer styles */
footer {
  background-color: #3498db;
  color: white;
  padding: 20px 0;
  text-align: center;
}

/* Ensure footer is always at the bottom */
footer .container {
  max-width: 800px;
  margin: 0 auto;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.actions a {
  background-color: #3498db;
  color: white;
  padding: 10px;
  border-radius: 5px;
  text-align: center;
  text-decoration: none;
}

.actions a:hover {
  background-color: #2980b9;
}

/* Media queries for larger screens */
@media (min-width: 768px) {
  .navbar {
    padding: 10px 30px;
  }

  .nav-links {
    gap: 50px;
  }

  .menu {
    width: 20%;
    float: left;
    height: 100vh;
    position: fixed;
  }

  .dashboard {
    width: 80%;
    float: right;
    padding: 40px;
  }

  .options {
    flex-direction: row;
    gap: 20px;
  }

  .options div {
    width: calc(50% - 10px);
  }

  .actions {
    flex-direction: row;
    justify-content: space-between;
  }

  .actions a {
    width: 48%;
  }
}
