/* =============================================
   user.css — User dropdown styles
   Linked directly from web/views/partials/user.ejs
   ============================================= */

/* ── Dropdown container ── */
.dropdown-content {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: #0f1022;
  min-width: 240px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5), 0 0 0 1px rgba(88,101,242,0.15);
  border-radius: 14px;
  padding: 6px;
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(0.98);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  border: 1px solid rgba(88,101,242,0.14);
}

.user-dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* ── Header (avatar + name + id) ── */
.dd-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px 10px;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.dd-header-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(88,101,242,0.4);
  object-fit: cover;
  flex-shrink: 0;
}

.dd-header-avatar--placeholder {
  background: linear-gradient(135deg, #5865f2, #4752c4);
  color: #fff;
  font-size: 0.9rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

.dd-header-info    { display: flex; flex-direction: column; min-width: 0; }
.dd-header-name    { font-size: 0.85rem; font-weight: 700; color: #e4e6f0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dd-header-id      { font-size: 0.68rem; color: #474c66; font-family: 'Cascadia Code','Courier New',monospace; }

/* ── Section label ── */
.dd-section-label {
  font-size: 0.62rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: #474c66;
  padding: 8px 12px 4px;
  pointer-events: none;
}

/* ── Divider ── */
.dd-divider {
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin: 4px 6px;
}

/* ── Items ── */
.dd-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  color: #c8caf0;
  font-size: 0.85rem; font-weight: 500;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.dd-item:hover           { background: rgba(88,101,242,0.1);  color: #e4e6f0; }
.dd-item--danger:hover   { background: rgba(237,66,69,0.1);   color: #ed4245; }
.dd-item i { margin-right: 0; width: auto; font-size: 0.9rem; color: inherit; }

/* ── Item icon boxes ── */
.dd-item-icon {
  width: 28px; height: 28px;
  border-radius: 7px; flex-shrink: 0;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.07);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; color: #818cf8;
  transition: background 0.15s;
}
.dd-item-icon--green  { color: #57f287; background: rgba(87,242,135,0.08);  border-color: rgba(87,242,135,0.2); }
.dd-item-icon--gold   { color: #f0b429; background: rgba(240,180,41,0.08);  border-color: rgba(240,180,41,0.2); }
.dd-item-icon--danger { color: #ed4245; background: rgba(237,66,69,0.08);   border-color: rgba(237,66,69,0.2); }
.dd-item:hover        .dd-item-icon { background: rgba(88,101,242,0.15); }
.dd-item--danger:hover .dd-item-icon { background: rgba(237,66,69,0.15); }

/* ── Legacy overrides (keep dropdown-content a rules from working) ── */
.dropdown-content a { color: inherit; }
.dropdown-content a:hover { background: none; padding-left: 12px; }
