.user-dashboard-menu {
  position: relative;
  display: inline-block;
  direction: rtl;
  user-select: none;
}

.dashboard-toggle {
  background: #0a1040; /* سورمه‌ای تیره‌تر */
  color: #ffd700;      /* طلایی */
  border: none;
  padding: 10px 20px;
  font-size: 10px;
  border-radius: 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.3s ease;
}

.dashboard-toggle:hover,
.dashboard-toggle:focus {
  background: #2c3878; /* سورمه‌ای روشن‌تر (اما تیره‌تر از قبل) */
  outline: none;
}

.dashboard-dropdown {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  top: 50px;
  right: 0;
  background: #0a1040; /* سورمه‌ای تیره‌تر */
  width: 150px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
  border-radius: 15px;
  z-index: 9999999;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.dashboard-dropdown.show {
  opacity: 1;
  visibility: visible;
}

.dashboard-dropdown .user-name {
  background: #ffd700; /* طلایی */
  color: #0a1040;      /* سورمه‌ای تیره‌تر */
  padding: 10px 15px;
  text-align: center;
  font-weight: bold;
  font-size: 15px;
  border-top-right-radius: 15px;
  border-top-left-radius: 15px;
}

.dashboard-dropdown ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dashboard-dropdown ul li {
  border-bottom: 1px solid rgba(255, 215, 0, 0.3);
}

.dashboard-dropdown ul li a {
  display: block;
  padding: 12px 1px;
  color: #ffd700; /* طلایی */
  text-decoration: none;
  font-weight: 400;
  transition: background 0.3s ease, color 0.3s ease;
  border-radius: 0 15px 15px 0;
}

.dashboard-dropdown ul li a:hover,
.dashboard-dropdown ul li a:focus {
  background: #2c3878; /* سورمه‌ای روشن‌تر (جدید) */
  color: #fff;
  outline: none;
}

@media (max-width: 768px) {
  .user-dashboard-menu {
    width: 100%;
    display: block;
    text-align: center;
  }

  .dashboard-toggle {
      background: #0a1040; /* سورمه‌ای تیره‌تر */
  color: #ffd700;      /* طلایی */
    width: 100%;
    font-size: 14px;
    padding: 10px;
    justify-content: center;
  }

  .dashboard-dropdown {
      background: #0a1040; /* سورمه‌ای تیره‌تر */
  color: #ffd700;      /* طلایی */
    position: fixed;
    top: 60px;
    right: 10px;
    left: 10px;
    width: auto;
    max-width: calc(100% - 20px);
    border-radius: 15px;
    z-index: 9999999;
  }

  .dashboard-dropdown .user-name {
    font-size: 10px;
  }

  .dashboard-dropdown ul li a {
    font-size: 10px;
    padding: 12px 16px;
    border-radius: 0;
    text-align: right;
  }
}
