@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,300..600&display=swap');

* {
  box-sizing: border-box;
}

:root {
  --bg-root: #111;
  --bg-panel: #232323;
  --bg-panel-hover: #2c2c2c;
  --text-primary: #e0e0e0;
  --text-muted: #9e9e9e;
}

html,
body {
  height: 100%;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 14px;
  letter-spacing: -0.01em;
}

body {
  margin: 0;
  background: var(--bg-root);
  color: var(--text-primary);
  overflow: hidden;
  position: relative;
}

#address_bar {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  z-index: 10;

  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 6px;
  align-items: center;

  width: min(700px, calc(100% - 20px));
  padding: 4px 6px;

  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
}

#favicon_container {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #1e1e1e;

  display: flex;
  align-items: center;
  justify-content: center;
}

#favicon_img {
  width: 16px;
  height: 16px;
}

#url_box {
  width: 100%;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;

  color: inherit;
  font: inherit;

  padding: 0;
}

#url_box::placeholder,
#wisp_url_input::placeholder,
#eval_js_input::placeholder {
  color: var(--text-muted);
}

button {
  min-width: 28px;
  min-height: 28px;
  border-radius: 999px;
  border: none;
  background: #202020;
  color: inherit;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
}

button:hover {
  background: var(--bg-panel-hover);
}

button i {
  pointer-events: none;
  font-size: 13px;
}

#frame_container {
  position: absolute;
  inset: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: 1;
}

#frame_container iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

#options_div {
  position: absolute;
  top: 60px;
  right: 12px;
  z-index: 20;

  width: 320px;
  min-height: 220px;
  padding: 12px;

  display: flex;
  flex-direction: column;
  gap: 10px;

  background: #252525;
  border: 1px solid #303030;
  border-radius: 10px;

  opacity: 0;
  transform: translateY(-8px);
  animation: fadeIn 160ms ease forwards;

  cursor: text;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#wisp_row {
  display: flex;
  gap: 6px;
  align-items: center;
  cursor: text;
}

#wisp_row span {
  color: var(--text-muted);
}

#wisp_url_input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;

  color: inherit;
  font: inherit;
  font-size: 13px;

  padding: 0;
}

#eval_js_input {
  width: 100%;
  height: 100px;

  border: none;
  outline: none;
  background: transparent;

  color: inherit;
  font: inherit;

  resize: none;
}
