/* logout dropdown — restyled to match site neon dark theme
   - items are dark panels with pink accents and subtle neon glow
   - text remains highly legible
   - items stretch full width and align with the top-pill header look
*/

.logout-dropdown {
  position: absolute;
  right: 8px;
  top: 56px;
  z-index: 1200;

  /* dark translucent panel to match the site background */
  background: linear-gradient(180deg, rgba(8,6,10,0.96), rgba(10,7,14,0.94));
  border-radius: 14px;

  /* neon pink border subtle */
  border: 1px solid rgba(255,105,180,0.06);

  padding: 10px;
  min-width: 200px; /* slightly wider for comfortable spacing */

  /* stacked layout so items line up as pills */
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;

  /* subtle outer glow like the rest of the header */
  box-shadow:
    0 8px 28px rgba(0,0,0,0.6),
    0 0 22px rgba(255,20,147,0.06),
    inset 0 1px 0 rgba(255,255,255,0.02);
}

/* make forms inside the dropdown full width */
.logout-dropdown form {
  width: 100%;
  margin: 0;
  display: block;
}

/* Shared item base so anchors and buttons look consistent */
.logout-dropdown .dd-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  box-sizing: border-box;

  /* dark inner panel that matches the site (keeps strong contrast) */
  background: linear-gradient(180deg, rgba(18,12,20,0.96), rgba(14,10,18,0.96));
  border: 1px solid rgba(255,105,180,0.04);

  /* text color & subtle neon text glow consistent with theme */
  color: #ffd9f7;
  font-weight: 700;
  font-size: 0.98rem;
  text-shadow: 0 1px 6px rgba(255,20,147,0.06);
}

/* Icons inside items */
.logout-dropdown .dd-item i {
  width: 18px;
  text-align: center;
  color: #ffd9f7;
  opacity: 0.98;
}

/* Hover / focus states: brighten the pink accent and add a glow */
.logout-dropdown .dd-item:hover,
.logout-dropdown .dd-item:focus {
  background: linear-gradient(180deg, rgba(26,14,30,0.98), rgba(20,12,26,0.98));
  border-color: rgba(255,105,180,0.12);
  box-shadow:
    0 12px 30px rgba(0,0,0,0.6),
    0 0 28px rgba(255,20,147,0.08);
  color: #fff;
  outline: none;
}

/* Link-specific rule */
.logout-dropdown a.dd-item {
  cursor: pointer;
}

/* Button-specific rule: reuse dd-item styling but keep button semantics */
.logout-dropdown form .logout-link {
  all: unset;                /* remove default button styles then reapply */
  display: inline-flex;
  align-items: center;
  gap: 10px;

  /* reuse the shared look */
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  box-sizing: border-box;

  background: linear-gradient(180deg, rgba(18,12,20,0.96), rgba(14,10,18,0.96));
  border: 1px solid rgba(255,105,180,0.04);

  color: #ffd9f7 !important;
  font-weight: 700;
  font-size: 0.98rem;
  text-shadow: 0 1px 6px rgba(255,20,147,0.06);
  cursor: pointer;
}

/* Button hover */
.logout-dropdown form .logout-link:hover,
.logout-dropdown form .logout-link:focus {
  background: linear-gradient(180deg, rgba(26,14,30,0.98), rgba(20,12,26,0.98));
  border-color: rgba(255,105,180,0.12);
  box-shadow:
    0 12px 30px rgba(0,0,0,0.6),
    0 0 28px rgba(255,20,147,0.08);
  color: #fff !important;
  outline: none;
}

/* Small-screen adjustments */
@media (max-width: 540px) {
  .logout-dropdown { right: 6px; top: 48px; min-width: 160px; padding: 8px; }
  .logout-dropdown .dd-item,
  .logout-dropdown form .logout-link {
    padding: 8px 10px;
    font-size: 0.95rem;
  }
}