body {
  margin: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: 'Rubik', sans-serif;
  background-color: #000;
  color: #e5b94e;
}

.leftnavbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 72px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  z-index: 100;
  transition: width 0.2s ease;
  background-color: #0a0a0a;
  border-right: 1px solid #222;
}

.leftnavbar .navitem {
  width: 52px;
  height: 52px;
  font-size: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  color: #e5b94e;
  background-color: #111;
  border-radius: 50%;
  border: 1px solid #333;
  transition: all 0.2s ease;
}

.leftnavbar .navitem:hover {
  background-color: #222;
  box-shadow: 0 0 10px rgba(229, 185, 78, 0.5);
}

@media (max-width: 700px) {
  .leftnavbar {
    flex-direction: row;
    height: 64px;
    width: 100%;
    top: unset;
    bottom: 0;
    border-radius: 20px 20px 0 0;
    padding: 0 8px;
    gap: 0;
    justify-content: center;
    background-color: #0a0a0a;
    border-top: 1px solid #222;
  }

  .leftnavbar .navitem {
    width: 44px;
    height: 44px;
    font-size: 1.7rem;
    margin: 0 6px;
  }
}

.tabsbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 20px;
  margin-left: 80px;
  flex: 0 0 auto;
  height: 40px;
  background-color: #0a0a0a;
  border-bottom: 1px solid #222;
}

.tab {
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 10px;
  background-color: #111;
  border: 1px solid #333;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  color: #e5b94e;
  cursor: pointer;
  user-select: none;
  gap: 6px;
  transition: all 0.2s ease;
}

.tab:hover {
  background-color: #1a1a1a;
  box-shadow: 0 0 8px rgba(229, 185, 78, 0.3);
}

.tab.active {
  background-color: #1a1a1a;
  border-color: #e5b94e;
  box-shadow: 0 0 12px rgba(229, 185, 78, 0.4);
}

.tabicon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
}

.tabttl {
  max-width: 100px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 13px;
  font-weight: 600;
  color: #e5b94e;
}

.tabclose {
  font-size: 14px;
  margin-left: 6px;
  color: #888;
  cursor: pointer;
  transition: color 0.2s ease;
}

.tabclose:hover {
  color: #e5b94e;
}

.tab.add {
  width: 40px;
  justify-content: center;
  padding: 0;
  font-size: 20px;
  font-weight: 600;
  border: 1px solid #333;
  background-color: #111;
  color: #e5b94e;
  transition: all 0.2s ease;
}

.tab.add:hover {
  background-color: #1a1a1a;
  box-shadow: 0 0 10px rgba(229, 185, 78, 0.5);
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: 80px;
  margin-top: 8px;
  margin-bottom: 8px;
  padding: 0 20px;
  flex: 0 0 auto;
}

.search-bar-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #111;
  border: 1px solid #333;
  border-radius: 50%;
  color: #e5b94e;
  cursor: pointer;
  transition: all 0.2s ease;
}

.search-bar-btn:hover {
  background-color: #1a1a1a;
  box-shadow: 0 0 10px rgba(229, 185, 78, 0.5);
}

.search-bar-btn i {
  width: 22px;
  height: 22px;
  color: #e5b94e;
}

.search-bar-input-container {
  flex: 1;
  display: flex;
  align-items: center;
  height: 40px;
  border-radius: 20px;
  background-color: #101022;
  border: 1px solid #333;
  overflow: hidden;
  transition: all 0.2s ease;
}

.search-bar-input-container:focus-within {
  border-color: #e5b94e;
  box-shadow: 0 0 12px rgba(229, 185, 78, 0.4);
}

.search-bar-input-container input[type="text"] {
  flex: 1;
  font-size: 16px;
  padding: 0 12px;
  height: 100%;
  outline: none;
  background-color: transparent;
  border: none;
  color: #e5b94e;
}

.search-bar-input-container input[type="text"]::placeholder {
  color: #777;
}

#proxysel {
  background-color: #101022;
  color: #e5b94e;
  border: 1px solid #333;
  border-radius: 20px;
  padding: 8px 12px;
  font-family: 'Rubik', sans-serif;
  font-size: 14px;
  font-weight: 500;
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

#proxysel:hover, #proxysel:focus {
  border-color: #e5b94e;
  box-shadow: 0 0 10px rgba(229, 185, 78, 0.4);
}

#proxysel option {
  background-color: #0a0a0a;
  color: #e5b94e;
}

#proxysel option:disabled {
  color: #555;
  background-color: #0a0a0a;
  cursor: not-allowed;
}

#proxyIframe {
  flex-grow: 1;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 2;
}

/* Hyperion Proxy title styling */
.title-container {
  text-align: center;
  margin-top: 120px;
  margin-bottom: 20px;
}

.title-container h1 {
  font-size: 48px;
  font-weight: 700;
  color: #e5b94e;
  margin-bottom: 10px;
  text-shadow: 0 0 15px rgba(229, 185, 78, 0.6);
}

.title-container p {
  font-size: 18px;
  color: #aaa;
}

/* Homepage search bar */
.homepage-search {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.homepage-search .search-bar-input-container {
  width: 100%;
  height: 50px;
  margin-bottom: 30px;
  border-radius: 25px;
  border: 2px solid #333;
  background: linear-gradient(to right, #0a0a1a, #101030);
  box-shadow: 0 0 20px rgba(17, 17, 51, 0.7);
}

.homepage-search .search-bar-input-container:focus-within {
  border-color: #e5b94e;
  box-shadow: 0 0 20px rgba(229, 185, 78, 0.5);
}

.homepage-search input[type="text"] {
  height: 100%;
  font-size: 18px;
  padding: 0 20px;
}

.homepage-search button {
  height: 50px;
  padding: 0 30px;
  font-size: 16px;
  font-weight: 600;
  color: #111;
  background-color: #e5b94e;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.homepage-search button:hover {
  background-color: #f0c968;
  box-shadow: 0 0 15px rgba(229, 185, 78, 0.6);
}

/* Quick access icons */
.quick-access {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.quick-access-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #111;
  border: 1px solid #333;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quick-access-icon:hover {
  background-color: #1a1a1a;
  border-color: #e5b94e;
  box-shadow: 0 0 15px rgba(229, 185, 78, 0.5);
}

.quick-access-icon i {
  font-size: 24px;
  color: #e5b94e;
}

/* Star button for bookmarking */
.star-btn {
  margin-left: 10px;
}

.star-btn.bookmarked {
  color: #e5b94e !important;
  background-color: rgba(229, 185, 78, 0.2) !important;
}

.star-btn.bookmarked i {
  fill: currentColor;
}

/* Three dots container */
.three-dots-container {
  position: relative;
  margin-left: 10px;
}

/* Context menu */
.context-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background-color: #111;
  border: 1px solid #333;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  min-width: 180px;
  overflow: hidden;
}

.context-menu.hidden {
  display: none;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  background-color: transparent;
  border: none;
  color: #e5b94e;
  font-family: 'Rubik', sans-serif;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.menu-item:hover {
  background-color: #1a1a1a;
}

.menu-item i {
  width: 16px;
  height: 16px;
}

/* Bookmarks modal */
.bookmarks-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bookmarks-modal.hidden {
  display: none;
}

.bookmarks-content {
  background-color: #111;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 20px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}

.bookmarks-content h2 {
  color: #e5b94e;
  margin-bottom: 20px;
  font-size: 20px;
  border-bottom: 1px solid #333;
  padding-bottom: 10px;
}

.bookmark-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  border-bottom: 1px solid #222;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.bookmark-item:hover {
  background-color: #1a1a1a;
}

.bookmark-info {
  flex: 1;
}

.bookmark-title {
  color: #e5b94e;
  font-weight: 500;
  margin-bottom: 4px;
}

.bookmark-url {
  color: #777;
  font-size: 12px;
}

.bookmark-delete {
  background: none;
  border: none;
  color: #777;
  cursor: pointer;
  padding: 5px;
  transition: color 0.2s ease;
}

.bookmark-delete:hover {
  color: #e5b94e;
}

/* Cloak modal */
.cloak-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cloak-modal.hidden {
  display: none;
}

.cloak-content {
  background-color: #111;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 20px;
  max-width: 400px;
  width: 90%;
}

.cloak-content h2 {
  color: #e5b94e;
  margin-bottom: 20px;
  font-size: 20px;
  text-align: center;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  color: #e5b94e;
  margin-bottom: 5px;
  font-size: 14px;
}

.form-group input {
  width: 100%;
  padding: 10px;
  background-color: #0a0a0a;
  border: 1px solid #333;
  border-radius: 6px;
  color: #e5b94e;
  font-family: 'Rubik', sans-serif;
  font-size: 14px;
  box-sizing: border-box;
}

.form-group input:focus {
  outline: none;
  border-color: #e5b94e;
  box-shadow: 0 0 10px rgba(229, 185, 78, 0.3);
}

.cloak-buttons {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.cloak-btn {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 6px;
  font-family: 'Rubik', sans-serif;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cloak-btn.primary {
  background-color: #e5b94e;
  color: #000;
}

.cloak-btn.primary:hover {
  background-color: #f0c968;
}

.cloak-btn.secondary {
  background-color: #333;
  color: #e5b94e;
}

.cloak-btn.secondary:hover {
  background-color: #444;
}

/* Close button for modals */
.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: #777;
  font-size: 20px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: #e5b94e;
}
