@import "https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap";

@font-face {
  font-family: "Good Timing Rg";
  src: url("/_a/font/good-timing-bd.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

/* ---------- Hover Effects ---------- */
.hover-focus1 {
  transition: .15s ease-in-out;
}
.hover-focus1:hover:not(.selectedTab) {
  background-color: rgba(212, 175, 55, .18) !important;
}

.hover-focus2 {
  transition: .15s ease-in-out;
}
.hover-focus2:hover:not(.selectedTab) {
  background-color: rgba(212, 175, 55, .28) !important;
}

/* ---------- Sidebar ---------- */
.sidebar-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 20vw;
  height: 100vh;
  overflow-y: scroll;
  overflow-x: hidden;
}

.sidebar-container header {
  display: flex;
  width: 20vw;
  height: 99vh;
  margin: 0;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  flex-shrink: 0;
  border-radius: .4rem;
  position: absolute;
  left: .5rem;
  transition: .2s ease-in-out;
}

.sidebar-container header.closed {
  background: #0e0b05;
  border: 1px solid rgba(212, 175, 55, .35);
  position: fixed;
}

.sidebar-container header.closed:not(:hover):not(.hovered) {
  transform: translateX(-120%);
}

/* ---------- Header Content ---------- */
.sidebar-container header .page-data {
  width: 95%;
  padding: .3rem 0;
}

.sidebar-container header .page-data #controls {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sidebar-container header .page-data #controls button {
  background-color: transparent;
  border: none;
  outline: none;
  color: #e6d28a;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  position: relative;
}

.sidebar-container header .page-data #controls button .tooltip {
  padding: 6.5px 8px;
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #2a210b;
  color: #f5e6b0;
  visibility: hidden;
  opacity: 0;
  transition: .15s ease;
  border-radius: 5px;
  font-size: 14.5px;
}

.sidebar-container header .page-data #controls button:hover .tooltip {
  visibility: visible;
  opacity: 1;
  top: 28px;
}

.logo-name {
  font-size: 13px;
  color: rgba(230, 210, 138, .85);
  font-weight: 600;
}

.sidebar-container header .page-data #controls button .icon {
  font-size: 1.2rem;
  padding: .4rem;
  border-radius: 6px;
}

.sidebar-container header .page-data #controls button svg {
  width: 36px;
  height: 36px;
  border-radius: .5rem;
}

/* ---------- URL Bar ---------- */
.sidebar-container header .page-data #url-form {
  padding: 1rem 0;
  border-bottom: .5px solid rgba(212, 175, 55, .25);
}

.sidebar-container header .page-data #url-form input {
  background-color: rgba(212, 175, 55, .18);
  border: none;
  outline: none;
  color: #fff;
  font: inherit;
  padding: .5rem;
  border-radius: 6px;
  font-size: .8rem;
  width: 100%;
}

/* ---------- New Tab Button ---------- */
.sidebar-container header .page-data #new-tab {
  width: 100%;
  margin-top: 1rem;
  border-radius: 6px;
  background-color: rgba(212, 175, 55, .22);
  border: none;
  outline: none;
  color: #fff;
  font: inherit;
  padding: .5rem;
  display: flex;
  gap: .5rem;
}

.sidebar-container header .page-data #new-tab .icon {
  font-size: 1.2rem;
}

/* ---------- Alerts ---------- */
.r-alert {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 8px;
  background-color: #141008;
  border: 1px solid rgba(212, 175, 55, .4);
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0,0,0,.3);
  color: #f5e6b0;
  z-index: 1000;
}

.r-alert p {
  margin: 0;
  font-size: 14.5px;
}

/* ---------- Tabs ---------- */
header #tab-list {
  height: 70vh;
  overflow: scroll;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

header #tab-list .tab-item {
  position: relative;
  display: flex;
  gap: .5rem;
  width: 95%;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  padding: .5rem;
  font: inherit;
  color: #f5e6b0;
  animation: slide-in-from-top .15s ease;
}

header #tab-list .tab-item span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 80%;
}

header #tab-list .tab-item.selectedTab {
  background: rgba(212, 175, 55, .35);
}

header #tab-list .tab-item .close:hover {
  background-color: rgba(212, 175, 55, .25);
}

/* ---------- Tab View ---------- */
#tab-view {
  width: 80vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  right: 0;
}

#tab-view.full-width {
  width: 100vw;
}

#tab-view .tab-frame {
  height: 97%;
  width: 98%;
  background-color: #fff;
  border-radius: 8px;
  border: none;
}

/* ---------- Menu Overlay ---------- */
#menu-overlay {
  position: fixed;
  top: 48px;
  left: 0;
  width: calc(20vw + 10px);
  height: calc(100% - 48px);
  background-color: #0e0b05;
  transform: translateX(-100%);
  transition: .15s ease;
  z-index: 1000;
  padding: 20px;
}

#menu-overlay.active {
  transform: translateX(0);
}

.option {
  color: #f5e6b0;
  margin-bottom: 5px;
  cursor: pointer;
  padding: .5rem;
  background: rgba(212, 175, 55, .2);
  border-radius: 6px;
}

.option:hover {
  background: rgba(212, 175, 55, .3);
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 0;
  height: 0;
}
