* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: Arial, sans-serif;
        }
        body {
            background: #f4f4f4;
        }
        .navbar {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: #2c3e50;
  color: white;
  z-index: 999;
}
        .logo a {
            font-size: 22px;
            font-weight: bold;
            color: white;
            text-decoration: none;
        }
        .profile-container {
            position: relative;
            cursor: pointer;
        }
        .avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            border: 2px solid white;
        }
        .nav-menu {
            display: none;
            position: absolute;
            top: 50px;
            right: 0;
            background: white;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
            border-radius: 5px;
            overflow: hidden;
            width: 180px;
        }
        .nav-menu.active {
            display: block;
        }
        .nav-menu li {
            list-style: none;
            border-bottom: 1px solid #ddd;
        }
        .nav-menu li:last-child {
            border-bottom: none;
        }
        .nav-menu li a {
            display: flex;
            align-items: center;
            padding: 10px;
            text-decoration: none;
            color: #333;
            font-size: 16px;
        }
        .nav-menu li a:hover {
            background: #f1f1f1;
        }
        .nav-menu li a i {
            margin-right: 10px;
        }
        .logout {
            color: red !important;
        }
        
        a:hover {
  text-decoration: none;
  cursor: default;
}
/* Default navbar: NOT sticky */
.navbar {
  position: relative;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: #2c3e50;
  color: white;
  transition: all 0.3s ease;
  z-index: 999;
}

/* Sticky mode (after scrolling) */
.navbar.sticky {
  position: fixed;
  top: 0;
  background: #263544;  /* Slight darker shade */
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
  padding: 8px 20px;  /* Compressed header like YouTube */
}
