/* Add the following CSS rules to your existing "style.css" file or create a new one */

/* General Styles */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Merriweather', serif;
  }
  
  body {
    font-family: Arial, sans-serif;
    line-height: 1.5;
  }
  
  ul {
    list-style-type: none;
  }
  
  a {
    text-decoration: none;
    color: #000;
  }
  
  /* Header Styles */

  
  /* Main Styles */
  
  main {
    padding: 20px;
  }
  
  .banner {
    text-align: center;
    margin-bottom: 30px;
  }
  
  .banner h1 {
    font-size: 36px;
    margin-bottom: 10px;
  }
  
  .courses {
    margin-bottom: 30px;
  }
  
  .courses h3 {
    font-size: 24px;
    margin-bottom: 10px;
  }
  
  .course {
    background-color: #f4f4f4;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
  }
  
  .course h4 {
    font-size: 20px;
    margin-bottom: 10px;
  }
  
  .course p {
    color: #666;
  }
  
  .viewme {
    display: inline-block;
    padding: 10px 20px;
    background-color: #ff7f50;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
  }
  
  .viewme:hover {
    background-color: #ffa07a;
  }
  
  .loading-animation {
    position: relative;
    display: none;
  }

  .loading-animation:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: silver;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .loading-animation:before:after {
    content: "";
    display: block;
    width: 100px;
    height: 100px;
    background-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
  }

  @keyframes spin {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
  }
  
/* Forms Styles */

.forms {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
  }
  
  .form-slider {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  
  .slide {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px;
    max-width: 500px;
    min-height: auto;
    font-size: 14px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  }
  
  .slide h3 {
    font-size: 24px;
    margin-bottom: 10px;
  }
  
  .slide form input,
  .slide form button {
    margin-bottom: 10px;
    padding: 20px 15px;
    width: 100%;
    border: none;
    border-radius: 5px;
    font-size: 16px;
  }
  
  .slide form input[type="text"],
  .slide form input[type="password"] {
    background-color: #f1f1f1;
  }
  
  .slide form button {
    background-color: #4CAF50;
    color: white;
    font-weight: bold;
    cursor: pointer;
  }
  
  .slide form button:hover {
    background-color: #45a049;
  }
  
  .slide p {
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
  }
  
  .slide p a {
    color: #4CAF50;
    font-weight: bold;
  }
  
  .slide p a:hover {
    color: #45a049;
  }

  
  /* Analytics Styles */
  
  .analytics {
    margin-bottom: 30px;
  }
  
  .analytics h3 {
    font-size: 24px;
    margin-bottom: 10px;
  }
  
  #analyticsData {
    margin-bottom: 20px;
  }
  
  #analyticsChart,
  #analyticsTable {
    width: 100%;
  }
  
  /* Footer Styles */
  
  footer {
    background-color: #f1f1f1;
    padding: 20px;
    text-align: center;
    font-size: 14px;
    color: #888;
  }
/* CSS for the user details popup */
.popup-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    z-index: 9999;
  }
  
  .popup-content {
    min-width: 400px;
    text-align: center;
    font-size: 16px;
    background-color: #fff;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  
  .popup-content p {
    margin-bottom: 20px;
  }
  
  #logoutBtn {
    display: block;
    width: 100%;
    padding: 8px 12px;
    background-color: #f44336;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
  }
  
  #logoutBtn:hover {
    background-color: #d32f2f;
  }
  .progress {
    height: 20px;
    margin-bottom: 15px;
  }
  
  .progress-bar {
    transition: width 0.3s ease-in-out;
    border-radius: 2px;
    text-align: center;
    font-weight:400;
    color:#f9f9f9;
  }
  
  .bg-danger {
    background-color: #dc3545 !important;
    text-shadow: 1px 1px 1px #dc3545;
  }
  
  .bg-warning {
    background-color: #ffc107 !important;
    text-shadow: 1px 1px 1px #ffc107;
  }
  
  .bg-info {
    background-color: #17a2b8 !important;
    text-shadow: 1px 1px 1px #17a2b8;
  }
  
  .bg-success {
    background-color: #28a745 !important;
    text-shadow: 1px 1px 1px #28a745;
  }
  
  
  @media only screen and (max-width: 600px) {
    ul {
      display: none;
    }

    .menu-toggle {
      display: flex;
    }
    .form-slider {
      width: 100%;
      min-height: fit-content;
    }
    form{
      width: 100%;
      min-height: fit-content;
      display: flex;
      align-items: center;
    }
      .slide{
          width: 100%;
          min-height: fit-content;
          padding: 10px;
      }

.slide h3 {
  font-size: 20px;
}

.slide form input,
.slide form button {
  font-size: 14px;
  padding:20px 10px;
  margin-bottom:10px;
}

.slide p {
  font-size: 12px;
}
  }
  #loginSuccess{
      color: green;
      font-weight: 600;
  }
  #loginError{
      color: red;
      font-weight: 600;
  }
  #registerSuccess{
      color: green;
      font-weight: 600;
  }
  #registerError{
      color: red;
      font-weight: 600;
  }
  #profileNavItem{
      cursor: pointer;
  }
  @media only screen and (max-width: 480px) {
    /* Styles for small screens */
    .popup-container {
      width: 80%;
    }
    ul {
      display: none;
    }

    .menu-toggle {
      display: flex;
    }
  }

  