:root {
    --primary: #007bff;
    --primary-dark: #0056b3;
    --secondary: #f97316;
    --dark: #111827;
    --gray: #4b5563;
    --light-gray: #f9fafb;
    --white: #ffffff;
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html {
    overflow-x: hidden; /* Prevent horizontal scrolling at the HTML level */
    width: 100%;
  }
  
  body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal overflow */
    width: 100%; /* Use 100% instead of 100vw to prevent scrollbar issues */
    position: relative; /* For proper positioning of fixed elements */
    min-height: 100vh; /* Ensure full height */
  }
  
  a {
    text-decoration: none;
    color: inherit;
  }
  
  .container {
    width: 90%; /* Changed from 80% to 90% */
    max-width: 1200px; /* Added max-width */
    margin: 0 auto;
    padding: 0; /* Removed padding that could cause extra space */
  }
  
  /* Back to Top Button */
  #myBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    font-size: 18px;
    border: none;
    outline: none;
    color: white;
    background-color: var(--primary); /* Added missing background color */
    cursor: pointer;
    padding: 15px;
    border-radius: 100px;
  }
  
  #myBtn:hover {
    background-color: #555;
  }
  
  /* Header & Navbar */
  header {
    background: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%; /* Ensure full width */
    position: relative;
  }
  
  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .logo img {
    width: 170px;
    height: auto;
  }
  
  .nav-menu {
    list-style: none;
    display: flex;
  }
  
  .nav-menu li {
    margin: 0 15px;
  }
  
  .nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
  }
  
  .nav-menu a:hover {
    color: #007bff;
  }
  
  /* Buttons */
  .auth-buttons {
    display: flex;
    gap: 10px;
  }
  
  .btn {
    padding: 8px 16px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
    transition: 0.3s;
  }
  
  .btn-login {
    background: transparent;
    border: 2px solid #007bff;
    color: #007bff;
  }
  
  .btn-login:hover {
    background: #007bff;
    color: #fff;
  }
  
  .btn-signup {
    background: #007bff;
    color: #fff;
  }
  
  .btn-signup:hover {
    background: #0056b3;
  }
  
  /* Hamburger Menu Styling */
  .hamburger {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 100;
    transition: all 0.3s ease;
  }
  
  .hamburger-line {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #333;
    border-radius: 3px;
    position: absolute;
    transition: all 0.3s ease;
  }
  
  .hamburger-line:nth-child(1) {
    top: 0;
  }
  
  .hamburger-line:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
  }
  
  .hamburger-line:nth-child(3) {
    bottom: 0;
  }
  
  /* Active state for hamburger animation */
  .hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
  }
  
  .hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
  }
  
  /* Mobile Menu */
  .mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: #fff;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s;
    padding-top: 20px;
    z-index: 2000; /* Ensure it's above other elements */
    overflow-y: auto; /* Allow scrolling inside menu */
  }
  
  .mobile-menu.active {
    right: 0;
  }
  
  .mobile-menu-close {
    text-align: right;
    padding: 15px;
    cursor: pointer;
  }
  
  .mobile-nav {
    display: flex;
    flex-direction: column;
    padding: 20px;
  }
  
  .mobile-nav-item {
    margin: 10px 0;
  }
  
  .mobile-nav-link {
    text-decoration: none;
    color: #333;
    font-size: 18px;
    padding: 10px 0;
    display: block; /* Make the entire area clickable */
    transition: color 0.3s;
  }
  
  .mobile-nav-link:hover {
    color: #007bff;
  }
  
  .mobile-auth {
    padding: 20px;
    text-align: center;
  }
  
  /* Fixed Sidebar Dashboard Styling */
  .sidebar-dashboard {
    position: fixed;
    top: 0;
    left: -300px; /* Start off-screen */
    width: 280px;
    height: 100vh;
    background-color: #ffffff;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    overflow-y: auto;
    transition: left 0.3s ease;
  }
  
  .sidebar-dashboard.open {
    left: 0;
  }
  
  .sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  
  .sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
  }
  
  .sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eaeaea;
  }
  
  .sidebar-logo img {
    height: 40px;
  }
  
  .sidebar-close {
    cursor: pointer;
    color: #666;
    transition: color 0.2s ease;
  }
  
  .sidebar-close:hover {
    color: #333;
  }
  
  /* User Profile Section */
  .user-profile {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eaeaea;
  }
  
  .user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
  }
  
  .user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .user-info {
    flex: 1;
  }
  
  .user-name {
    margin: 0 0 5px;
    font-size: 16px;
    font-weight: 600;
  }
  
  .user-account {
    margin: 0;
    font-size: 14px;
    color: #666;
  }
  
  /* Menu Section */
  .menu-section {
    padding: 15px 0;
  }
  
  .menu-section .section-title {
    font-size: 12px;
    text-transform: uppercase;
    color: #999;
    margin: 0 20px 10px;
    letter-spacing: 1px;
  }
  
  .menu-items {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .menu-item {
    margin: 2px 0;
  }
  
  .menu-item a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s ease;
  }
  
  .menu-item a:hover {
    background-color: #f5f5f5;
  }
  
  .menu-item.active a {
    background-color: #f0f7ff;
    color: #0066cc;
    font-weight: 500;
  }
  
  .menu-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    margin-right: 15px;
  }
  
  .menu-text {
    font-size: 15px;
  }
  
  /* Sidebar Footer */
  .sidebar-footer {
    padding: 20px;
    border-top: 1px solid #eaeaea;
    margin-top: auto;
  }
  
  .btn-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px;
    background-color: #f5f5f5;
    border: none;
    border-radius: 6px;
    color: #333;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
  }
  
  .btn-logout:hover {
    background-color: #e5e5e5;
  }
  
  .logout-icon {
    margin-right: 10px;
  }
  
  /* Add this to ensure proper spacing between sections */
  .sidebar-menu {
    display: flex;
    flex-direction: column;
    flex: 1;
  }
  
  /* Only show sidebar dashboard on button click, not based on screen size */
  @media (max-width: 768px) {
    body.no-scroll {
      overflow: hidden;
    }
    
    .hamburger {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }
    
    .nav-menu {
      display: none;
    }
    
    .auth-buttons {
      display: none;
    }
  }
  /* Footer */
footer {
    background: var(--dark);
    color: var(--white);
    padding: 80px 0 30px;
    width: 100%; /* Ensure full width */
  }
  
  .footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
  }
  
  .footer-col h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--white);
  }
  
  .footer-logo {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--white);
  }
  
  .footer-desc {
    font-size: 15px;
    opacity: 0.8;
    margin-bottom: 25px;
  }
  
  .social-icons {
    display: flex;
    gap: 15px;
  }
  
  .social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
  }
  
  .social-icons a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
  }
  
  .footer-links {
    list-style: none;
  }
  
  .footer-links li {
    margin-bottom: 12px;
  }
  
  .footer-links a {
    font-size: 15px;
    opacity: 0.8;
    transition: all 0.3s ease;
  }
  
  .footer-links a:hover {
    opacity: 1;
    padding-left: 5px;
    color: var(--secondary);
  }
  
  .contact-info {
    list-style: none;
  }
  
  .contact-info li {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 15px;
    font-size: 15px;
    opacity: 0.8;
  }
  
  .contact-info svg {
    width: 20px;
    height: 20px;
  }
  
  .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    font-size: 14px;
    opacity: 0.7;
  }