/* ==========================================================================
   dropdown.css - the combo box from dropdown.js

   Modelled on the Windows 8 XAML ComboBox: square, borderless fill, a hairline
   outline that brightens on hover, and a flat list that overlays the page
   rather than dropping a shadowed card. Only the accent bar marks selection.
   ========================================================================== */

.dd {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 9px 9px 11px;
  font-size: 13px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.dd:hover { background: rgba(255, 255, 255, 0.11); border-color: rgba(255, 255, 255, 0.3); }
.dd:focus-visible { outline: none; border-color: var(--accent); }
.dd.is-open { background: rgba(255, 255, 255, 0.11); border-color: var(--accent); }

.dd-value { overflow: hidden; text-overflow: ellipsis; }

.dd-arrow {
  display: flex;
  color: rgba(255, 255, 255, 0.55);
  transition: color 120ms linear;
}
.dd:hover .dd-arrow,
.dd.is-open .dd-arrow { color: #fff; }

/* Lives on <body> so app scrollers can't clip it. */
.dd-list {
  position: fixed;
  z-index: 900;
  overflow-y: auto;
  padding: 1px;
  background: #1b1b1b;
  border: 1px solid rgba(255, 255, 255, 0.22);
  /* Win8 flyouts have no rounding and no shadow - the border does the work. */
  animation: dd-open 140ms cubic-bezier(0.1, 0.9, 0.2, 1);
}
@keyframes dd-open {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}

.dd-option {
  padding: 9px 26px 9px 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.86);
  cursor: pointer;
}
.dd-option.is-active { background: rgba(255, 255, 255, 0.14); color: #fff; }
.dd-option.is-selected { background: var(--accent); color: #fff; }
.dd-option.is-selected.is-active { filter: brightness(1.18); }

@media (prefers-reduced-motion: reduce) {
  .dd-list { animation: none; }
}
