* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  background: #121212;
  color: #e8eaed;
}

#tabs {
  position: fixed;
  top: 0;
  left: 0;
  height: 34px;
  width: 100%;

  display: flex;
  align-items: flex-end;

  padding: 6px 8px 0;
  background: #101010;

  z-index: 1;
  align-items: flex-end;
  overflow: hidden;
  cursor: default;
}

.tab {
  position: relative;
  height: 32px;
  min-width: 60px;
  max-width: 240px;
  flex: 1 1 200px;

  padding: 0 16px;
  margin-left: -6px;

  display: flex;
  align-items: center;
  gap: 8px;

  background: transparent;
  color: #e8eaed;
  font-size: 0.85rem;

  border-radius: 8px 8px 0 0;
  user-select: none;

  z-index: 1;
  transition: background 120ms ease, box-shadow 120ms ease;
}

.tab:first-child {
  margin-left: 0;
}

.tab:not(.active):hover {
  background: #1f1f1f;
}

.tab.active {
  background: #202124;
  z-index: 10;
  box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.08), 0 -2px 6px rgba(0, 0, 0, 0.45);
}

.tab.dragging {
  opacity: 0.6;
  transition: none !important;
}

.tab .title {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.tab .close {
  border: none;
  background: none;
  font-size: 1rem;
  color: #9aa0a6;
}

.tab .close:hover {
  color: #ffffff;
}

#new-tab {
  height: 28px;
  width: 28px;
  margin-left: 6px;
  margin-bottom: 5px;
  align-items: flex-end;
  padding: 0px 0px 0;
  border-radius: 50%;
  border: none;
  font: bold;
  background: transparent;
  font-size: 1.5rem;
  color: #9aa0a6;
  align-self: center;
  user-select: none;
}

#new-tab:hover {
  background: rgba(255, 255, 255, 0.1);
}

form#idk {
  position: fixed;
  top: 34px;
  left: 0;
  width: 100%;
  height: 46px;

  display: flex;
  align-items: center;
  gap: 8px;

  padding: 6px 12px;

  background: #202124;
  z-index: 15;
}

.nav-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: transparent;
  display: grid;
  place-items: center;
  color: #9aa0a6;
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.nav-btn:disabled {
  opacity: 0.35;
  pointer-events: none;
}

.nav-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.search-input {
  flex: 1;
  height: 32px;
  padding: 0 14px;

  border-radius: 999px;
  border: 1px solid #3c4043;
  background: #303134;

  font-size: 0.85rem;
  color: #e8eaed;
  outline: none;
}

.search-input::placeholder {
  color: #9aa0a6;
}

.search-input:focus {
  border-color: #8ab4f8;
  box-shadow: 0 0 0 1px rgba(138, 180, 248, 0.4);
}

#views {
  position: absolute;
  top: 80px;
  left: 0;
  width: 100%;
  height: calc(100% - 80px);
  background: #121212;
}

.view {
  width: 100%;
  height: 100%;
  border: none;
  display: none;
  opacity: 0;
  transition: opacity 120ms ease;
}

.view.active {
  display: block !important;
  opacity: 1;
}

.tab {
  animation: tab-enter 140ms cubic-bezier(0.4, 0, 0.2, 1);
}

.tab.closing {
  animation: tab-exit 100ms ease forwards;
  pointer-events: none;
}

@keyframes tab-enter {
  from {
    opacity: 0;
    transform: translateX(-6px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes tab-exit {
  to {
    opacity: 0;
    transform: translateY(6px) scale(0.94);
  }
}

@media (max-width: 600px) {
  form#idk {
    flex-wrap: wrap;
    height: auto;
  }

  .search-input {
    width: 100%;
  }

  #views {
    top: 96px;
    height: calc(100% - 96px);
  }
}
.tab.active::before,
.tab.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  width: 14px;
  height: 15px;
  background: transparent;
  z-index: 3;
}
.tab.active::before {
  left: -14px;
  border-bottom-right-radius: 14px;
  box-shadow: 6px 6px 0 6px #202124;
}
.tab.active::after {
  right: -14px;
  border-bottom-left-radius: 14px;
  box-shadow: -6px 6px 0 6px #202124;
}

.tab:not(.active):hover::after {
  background: rgba(255, 255, 255, 0.18);
}

.tab:not(.active) {
  box-shadow: inset 0 -1px rgba(255, 255, 255, 0.06);
}

.site-status {
  width: 16px;
  height: 16px;
  position: relative;
  flex-shrink: 0;
}

.spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: #8ab4f8;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.lock {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #8ab4f8;
  stroke-width: 2;
  display: none;
}

#site-status {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  pointer-events: none;
  display: grid;
  place-items: center;
}

#site-status .spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

#site-status .lock {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  display: none;
}

#site-status[data-state="loading"] {
  color: #facc15;
}
#site-status[data-state="loading"] .lock {
  display: none;
}
#site-status[data-state="loading"] .spinner {
  display: block;
}

#site-status[data-state="secure"] .spinner {
  display: none;
}
#site-status[data-state="secure"] .lock {
  display: block;
}

#site-status[data-state="insecure"] .spinner {
  display: none;
}
#site-status[data-state="insecure"] .lock {
  display: block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.address-bar {
  position: relative;
  flex: 1;
}

.address-bar .search-input {
  padding-left: 38px;
}

#site-status {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  pointer-events: none;
}

#site-status .spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: #8ab4f8;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

#site-status .lock {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #8ab4f8;
  stroke-width: 2;
  display: none;
}

#site-status.loaded .spinner {
  display: none;
}

#site-status.loaded .lock {
  display: block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

#url.search-input {
  width: 100%;
}

#site-status {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: #9aa0a6;
  pointer-events: none;
}

#site-status .lock {
  display: none;
}

#site-status .status-text {
  display: none;
  white-space: nowrap;
}

#site-status[data-state="loading"] .spinner {
  display: block;
}

#site-status[data-state="secure"] .spinner {
  display: none;
}
#site-status[data-state="secure"] .lock {
  display: block;
}

#site-status[data-state="insecure"] .spinner {
  display: none;
}
#site-status[data-state="insecure"] .lock {
  display: block;
}

#proxysel,
#trans {
  display: none;
}
