* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

body {
  background: #f4f6f8;
  color: #333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#logo {
  font-size: 2.5rem;
  font-weight: bold;
  color: #007bff;
  margin-bottom: 1rem;
}
.x {
  color: red;
}
.login,
.signup {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  width: 90%;
  max-width: 400px;
}

.login h2,
.signup h2 {
  margin-bottom: 1rem;
  text-align: center;
  color: #444;
}

input {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border-radius: 0.5rem;
  border: 1px solid #ccc;
}

button {
  width: 100%;
  padding: 0.75rem;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  font-weight: bold;
}

button:hover {
  background: #0056b3;
}

a {
  color: #007bff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

p {
  text-align: center;
  margin-top: 1rem;
}
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#loader.hidden {
  display: none;
}

.cube {
  width: 40px;
  height: 40px;
  background-color: red;
  animation: spin 1s infinite linear;
}

@keyframes spin {
  0% {
    transform: rotateY(0deg) rotateX(0deg);
  }
  100% {
    transform: rotateY(360deg) rotateX(360deg);
  }
}
body.loading {
  overflow: hidden;
}
.lesson-card {
  border: 1px solid #ddd;
  padding: 1rem;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  background-color: #fff;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}
.lesson-card h2 {
  margin-top: 0;
}
.lesson-content {
  margin-bottom: 1rem;
}
#back-btn {
  margin-right: 0.5rem;
}

/*add nice colored popup messages (green for success, red for error), for course-lesson.html*/
.popup {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 10px 20px;
  border-radius: 5px;
  color: white;
  font-weight: bold;
  z-index: 9999;
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.popup.show {
  opacity: 1;
  transform: translateY(0);
}
.popup.success {
  background-color: green;
}
.popup.error {
  background-color: red;
}
.progress-bar-container {
  background-color: #eee;
  border-radius: 5px;
  overflow: hidden;
  height: 12px;
  margin: 5px 0;
}

.progress-bar {
  height: 100%;
  background-color: #007bff;
  transition: width 0.3s ease-in-out;
}

.certificate-btn {
  margin-top: 10px;
  background-color: #28a745;
  color: white;
  border: none;
  padding: 6px 10px;
  border-radius: 5px;
  cursor: pointer;
}
#forgot-password {
  color: red;
  margin: 10px;
}
#messsage-passwordreset {
  color: grey;
}
