   
.navbar {
    background-color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-bottom:1px dashed var(--primary);
    margin-bottom:1px;
}

.navbar .Ncontainer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--gray);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a.active {
    color: var(--primary);
    font-weight: 600;
}

.nav-links a:hover {
    color: var(--primary);
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-btn, .notif-btn {
    background: none;
    border: none;
    font-size: 1.1rem;
    color: var(--gray);
    cursor: pointer;
    transition: var(--transition);
}

.search-btn:hover, .notif-btn:hover {
    color: var(--primary);
}

.user-avatar {
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #ccc; /* fallback if PHP doesn't inject */
  color: #fff;
  font-weight: bold;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  text-transform: uppercase;
  overflow: hidden;
}
.user-avatar img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Sidebar */
.right-sidebar {
  position: fixed;
  top: 0;
  right: -300px; /* Hidden off-screen */
  width: 300px;
  height: 100%;
  background: #fff;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  transition: right 0.3s ease;
  z-index: 1000;
}
.menu_header{
    display:flex;
    justify-content:space-between;
}
.right-sidebar.active {
  right: 0;
}

.sidebar-content h3 {
  margin-top: 0;
}

.sidebar-content ul {
  list-style: none;
  padding: 0;
}

.sidebar-content ul li {
  margin: 15px 0;
}

.sidebar-content ul li a {
  text-decoration: none;
  color: #333;
}
.theme-picker {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.theme-picker label {
  font-size: 14px;
  color: #444;
}

.theme-picker input[type="color"] {
  width: 100%;
  height: 40px;
  border: none;
  padding: 0;
  cursor: pointer;
}

/* Close Button */
.close-btn {
  background: none;
  border: none;
  font-size: 24px;
  position: absolute;
  top: 15px;
  right: 15px;
  cursor: pointer;
}
    .login-button {
  display: inline-block;
  padding: 8px 16px;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.login-button:hover,
.login-button:focus {
  background-color: darken(var(--primary), 10%);
  /* or use a darker shade manually, e.g. */
  /* background-color: #0056b3; */
  color: white;
  outline: none;
  cursor: pointer;
}
@media (max-width: 780px) {

    .nav-links {
        display: none;
    }
}
@media (max-width: 480px) {

    .nav-links {
        display: none;
    }
}