:root {
  --md-primary: #3f51b5;
  --md-primary-dark: #303f9f;
  --md-primary-darker: #1a237e;
  --md-on-primary: #ffffff;
  --md-surface: #121212;
  --md-surface-variant: #1a1a1a;
  --md-outline: rgba(255, 255, 255, 0.1);
  --md-hover: #383838;
  --md-entry-bg: #262626;
  --md-label-bg: #2a2a2a;
  --md-focus: rgba(48, 63, 159, 0.35);
}

* {
  font-family: "Inter", "Segoe UI", sans-serif;
  transition: all 250ms ease;
  box-sizing: border-box;
  color: #e0e0e0;
  background-color: transparent;
}

body {
  background-color: var(--md-surface);
  margin: 0;
  padding: 0;
}

#background {
  background-color: var(--md-surface-variant);
}

#window {
  all: unset;
  background-color: #181818;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  padding: 1rem;
  max-width: 600px;
  margin: 2rem auto;
}

#window #outer-box {
  margin: 0;
}

#window #outer-box #input {
  background-color: var(--md-label-bg);
  color: #f0f0f0;
  border: 1px solid var(--md-outline);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-size: 1rem;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
}

#window #outer-box #input:focus,
#window #outer-box #input:focus-visible,
#window #outer-box #input:active {
  background-color: #2d2d2d;
  border: 1px solid var(--md-primary-dark);
  box-shadow: 0 0 0 3px var(--md-focus);
  outline: none;
}

#window #outer-box #scroll {
  border-top: 1px solid var(--md-outline);
  padding-top: 0.5rem;
  margin-top: 0.5rem;
}

#window #outer-box #scroll #inner-box #entry {
  color: #f5f5f5;
  background-color: var(--md-entry-bg);
  padding: 0.7rem 1rem;
  border-radius: 8px;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  transition: background-color 250ms ease;
  cursor: pointer;
}

#window #outer-box #scroll #inner-box #entry:hover {
  background-color: var(--md-hover);
}

#window #outer-box #scroll #inner-box #entry:selected {
  background-color: var(--md-primary-dark);
  color: var(--md-on-primary);
}

#window #outer-box #scroll #inner-box #entry #img {
  margin-right: 0.6rem;
  width: 1rem;
  height: 1rem;
  opacity: 0.8;
  flex-shrink: 0;
}

#window #outer-box #scroll #inner-box #entry:hover #img {
  filter: brightness(1.15);
}

#custom-key-label-box {
  background-color: var(--md-label-bg);
  border-radius: 8px;
  padding: 0.5em 1em;
  margin: 0.5em 0 0.5em 0.5em;
  font-weight: 500;
  color: #eaeaea;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.03);
  flex-shrink: 0;
  user-select: none;
}

#custom-key-hint-text {
  margin-left: 0.75em;
  opacity: 0.6;
  font-size: 0.95rem;
}
