   /* ======= Admin Toolbar ======= */
.admin-toolbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 42px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 18px;
  background: rgb(46, 62, 70);
  color: #f5f5f5;
  font-family: "IRANSans", sans-serif;
  font-size: 14px;
  z-index: 9999;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  animation: fadeInDown 0.5s ease;
}

.toolbar-left, .toolbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  margin-right: 10px;
  letter-spacing: 0.5px;
  transition: transform 0.2s ease, color 0.2s ease;
}
.logo:hover {
  transform: translateY(-2px);
  color: #4fc3f7;
}

.toolbar-link {
  color: #d1d1d1;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 0.2s ease, color 0.2s ease;
}
.toolbar-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.user-menu {
  position: relative;
  display: flex;
  align-items: center;
  cursor: pointer;
  gap: 6px;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  object-fit: cover;
}

.user-name {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  text-transform: capitalize;
  margin-left: 3px;
}

.user-menu:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(6px);
}

.dropdown {
  position: absolute;
  top: 38px;
  left: 0;
  background: rgba(30, 30, 30, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  overflow: hidden;
  min-width: 150px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  backdrop-filter: blur(6px);
}

.dropdown a {
  display: block;
  padding: 8px 12px;
  color: #eee;
  text-decoration: none;
  font-size: 13px;
  transition: background 0.2s ease;
}
.dropdown a:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* fade in animation */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* adjust page content to not go under toolbar */
body {
  padding-top: 44px;
}

/* Responsive */
@media (max-width: 768px) {
  .admin-toolbar {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    padding: 8px 12px;
  }

  .toolbar-left {
    flex-wrap: wrap;
    gap: 6px;
  }

  .toolbar-link, .logo {
    font-size: 13px;
  }

  .toolbar-right {
    margin-top: 6px;
    width: 100%;
    justify-content: flex-end;
  }

  .dropdown {
    right: 5px;
  }
}
