
  body {
    margin: 0;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
  }
  .topbar {
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
  }
  .menu-icon {
    font-size: 24px;
    cursor: pointer;
    margin-right: 15px;
    display: none;
  }
  .topbar h2 {
    margin: 0;
    font-size: 28px;
    text-decoration: underline;
  }
  .container {
    display: flex;
    flex: 1;
    flex-direction: row;
    margin-top: 50px;
  }
  .sidebar {
    width: 250px;
    background: #333;
    color: #fff;
    padding: 20px;
    height: calc(100vh - 50px);
    overflow-y: auto;
    transition: transform 0.3s ease;
    position: fixed;
    top: 50px;
    left: 0;
    z-index: 1000;
    transform: translateX(0);
  }
  .sidebar.mobile-hidden {
    transform: translateX(-100%);
  }
  .sidebar.mobile-visible {
    transform: translateX(0);
  }
  .module {
    margin-top: 20px;
  }
  .module button {
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    text-align: left;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .module button .icon {
    font-weight: bold;
  }
  .practice-sets {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
    margin-left: 15px;
  }
  .practice-sets.active {
    max-height: 1000px;
  }
  .practice-sets a {
    color: #fff;
    text-decoration: none;
    display: block;
    margin: 5px 0;
    padding: 8px;
    background-color: #444;
    border-radius: 4px;
    transition: background-color 0.3s;
  }
  .practice-sets a:hover {
    background-color: #555;
  }
  .main {
    margin-left: 290px;
    flex: 1;
    padding: 20px;
    position: relative;
    z-index: 1;

    background-image: url('boosting skills.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    background-size: 300px 300px;
    opacity: 1;
  }
  .main::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: -1;
    pointer-events: none;
  }
  #questionBox {
    position: relative;
    background-color: transparent;
    border-radius: 8px;
    padding: 20px;
    z-index: 2;
  }
  #practiceSetInfo {
    background-color: #007bff;
    color: white;
    padding: 12px 20px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0,123,255,0.5);
    max-width: 600px;
  }
  .question-box {
    border: 1px solid #ccc;
    padding: 20px;
    border-radius: 8px;
    background: transparent;
  }
  .question-number {
    font-weight: bold;
    margin-bottom: 10px;
  }
  .options {
    display: block;
  }
  .options div {
    display: block;
    width: 600px;
    word-wrap: break-word;
    margin: 8px 0;
    padding: 10px;
    border: 1px solid #aaa;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s, color 0.3s;
    white-space: pre-wrap;
  }
  .options div:hover {
    background-color: #ddd;
  }
  .options div.correct {
    background-color: #d4edda;
    border-color: #28a745;
    color: #155724;
    cursor: default;
  }
  .options div.wrong {
    background-color: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
    cursor: default;
  }
  button.show-btn {
    margin-top: 15px;
    padding: 10px 15px;
    border: none;
    background: #28a745;
    color: #fff;
    cursor: pointer;
    border-radius: 5px;
  }
  button.show-result-btn {
    display: block;
    margin: 30px auto 0 auto;
    padding: 15px 30px;
    font-size: 20px;
    font-weight: bold;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,123,255,0.4);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
  }
  button.show-result-btn:hover {
    background-color: #0056b3;
    box-shadow: 0 7px 20px rgba(0,86,179,0.6);
  }
  .question-text {
    font-weight: bold;
    border: 1px solid #ccc;
    padding: 15px;
    margin-bottom: 10px;
    background-color: #fff;
    border-radius: 6px;
    white-space: pre-wrap;
  }
  .explanation {
    white-space: pre-wrap;
  }
  hr {
    border: none;
    height: 8px;
    background-color: red;
    margin: 20px 0;
  }
  .code-box-container {
    position: relative;
    max-width: 600px;
    margin-top: 10px;
    border-radius: 6px;
    overflow: hidden;
    border-left: 6px solid red;
    padding-left: 10px;
    padding-right: 0;
    padding-top: 35px;
    padding-bottom: 15px;
    display: inline-block;
    background-color: #2d2d2d;
  }
  .code-box {
    color: #fff;
    font-family: 'Courier New', Courier, monospace;
    padding: 15px 0;
    white-space: pre;
    overflow-x: auto;
    margin: 0;
    background: transparent;
    display: block;
  }
  .copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #007bff;
    color: white;
    border: none;
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
    user-select: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
  }
  .copy-btn:hover {
    opacity: 1;
  }
  #resultBox {
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -20%);
    background: white;
    border-radius: 10px;
    padding: 20px 30px;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
    z-index: 2000;
    display: none;
    width: 300px;
    text-align: center;
    font-size: 18px;
    color: #333;
  }
  #resultBox button.close-btn {
    margin-top: 15px;
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
  }
  @media (max-width: 768px) {
    .menu-icon {
      display: block;
    }
    .container {
      flex-direction: column;
      margin-top: 50px;
    }
    .sidebar {
      width: 100%;
      height: calc(100vh - 50px);
      position: fixed;
      top: 50px;
      left: 0;
      z-index: 9999;
      transform: translateX(-100%);
      transition: transform 0.3s ease;
    }
    .sidebar.mobile-visible {
      transform: translateX(0);
    }
    .sidebar.mobile-hidden {
      transform: translateX(-100%);
    }
    .main {
      margin-left: 0;
      padding: 10px;
    }
    .question-box {
      padding: 15px;
    }
    .options div {
      width: auto;
      max-width: 100%;
    }
    .code-box-container {
      max-width: 100%;
    }
    #practiceSetInfo {
      max-width: 100%;
    }
  }
  footer {
  background: linear-gradient(135deg, #007bff, #00c6ff);
  color: white;
  text-align: center;
  padding: 30px 20px;
  font-size: 16px;
  border-top-left-radius: 30px;
  border-top-right-radius: 30px;
  animation: fadeInUp 1s ease-in-out;
  margin-top: 50px;
  transition: all 0.4s ease-in-out;
}
footer p {
  margin: 5px 0;
}
@keyframes fadeInUp {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@media (max-width: 768px) {
  footer {
    font-size: 14px;
    padding: 20px 10px;
  }
}
.comment-wrapper {
  max-width: 600px;
  width: 90%;
  margin: 40px auto;
  background: #f9f9f9;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}
.comment-heading {
  font-size: 1.2rem;
  margin-bottom: 10px;
}
.comment-box {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 15px;
  resize: vertical;
}
.comment-btn {
  margin-top: 10px;
  padding: 10px 20px;
  background: #28a745;
  border: none;
  color: white;
  border-radius: 5px;
  cursor: pointer;
}
.comment-list {
  margin-top: 20px;
}
.comment-list div {
  background: #f1f1f1;
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 5px;
  font-size: 15px;
}
.main-footer {
  background: linear-gradient(135deg, #007bff, #00c6ff);
  color: white;
  text-align: center;
  padding: 30px 20px;
  font-size: 16px;
  border-top-left-radius: 30px;
  border-top-right-radius: 30px;
  animation: fadeInUp 1s ease-in-out;
  margin-top: 40px;
  width: 100%;
}

.main-footer p {
  margin: 5px 0;
}
@keyframes fadeInUp {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@media (max-width: 768px) {
  .main-footer {
    font-size: 14px;
    padding: 20px 10px;
  }
}
.attractive-social-bar {
  position: fixed;
  top: 40%;
  right: 0;
  transform: translateY(-50%);
  z-index: 9999;
}

.attractive-social-bar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.attractive-social-bar ul li {
  margin: 8px 0;
  position: relative;
}

.attractive-social-bar ul li a {
  width: 50px;
  height: 50px;
  background: #fff;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50px 0 0 50px;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  position: relative;
  transition: all 0.3s ease-in-out;
  overflow: visible;
}

.attractive-social-bar ul li a i {
  font-size: 20px;
  z-index: 2;
}

.attractive-social-bar ul li a span {
  position: absolute;
  right: 55px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 8px 15px;
  border-radius: 5px 0 0 5px;
  white-space: nowrap;
  font-size: 14px;
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.3s ease;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
  pointer-events: none;
}

/* 👇 Hover effect: Show label */
.attractive-social-bar ul li a:hover span {
  opacity: 1;
  transform: translateX(0);
}

/* 🔷 Brand Backgrounds */
.attractive-social-bar ul li:nth-child(1) a { background: #3b5998; }
.attractive-social-bar ul li:nth-child(2) a { background: #1da1f2; }
.attractive-social-bar ul li:nth-child(3) a { background: #e1306c; }
.attractive-social-bar ul li:nth-child(4) a { background: #ff0000; }
.attractive-social-bar ul li:nth-child(5) a { background: #25d366; }

/* 📱 Mobile view */
@media (max-width: 768px) {
  .attractive-social-bar ul li a {
    width: 40px;
    height: 40px;
  }
  .attractive-social-bar ul li a i {
    font-size: 16px;
  }
  .attractive-social-bar ul li a span {
    font-size: 12px;
    right: 45px;
    padding: 6px 12px;
    height: auto;
  }
}

