@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500&display=swap");

:root {
  --bg-color: #202124;
  --tab-bg: #292a2d;
  --tab-active: #323639;
  --toolbar-bg: #35363a;
  --text-color: #e8eaed;
}

body {
  font-family: "Roboto", sans-serif;
  margin: 0;
  background: var(--bg-color);
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

#browser-ui {
  display: flex;
  flex-direction: column;
  background: var(--bg-color);
  flex-shrink: 0;
}

#tabs-strip {
  display: flex;
  align-items: flex-end;
  padding: 8px 8px 0 8px;
  background: #000;
  gap: 2px;
  overflow-x: auto;
}

.tab {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  background: var(--tab-bg);
  border-radius: 8px 8px 0 0;
  max-width: 200px;
  min-width: 120px;
  font-size: 12px;
  cursor: pointer;
  user-select: none;
  position: relative;
  color: #9aa0a6;
}

.tab.active {
  background: var(--toolbar-bg);
  color: #fff;
  z-index: 2;
}

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

.tab-close {
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 10px;
}

#add-tab-btn {
  background: transparent;
  border: none;
  color: #9aa0a6;
  width: 28px;
  height: 28px;
  cursor: pointer;
  margin-bottom: 4px;
}

#nav-bar {
  background: var(--toolbar-bg);
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-controls button, #nav-bookmark {
  background: transparent;
  border: none;
  color: #9aa0a6;
  padding: 6px;
  border-radius: 50%;
  cursor: pointer;
}

#nav-bookmark.active {
    color: #8ab4f8; /* Chrome blue star */
}

#sj-form {
  flex: 1;
  display: flex;
  background-color: #202124;
  border-radius: 14px;
  padding: 0 14px;
  align-items: center;
  height: 28px;
  border: 1px solid #5f6368;
}

#sj-address {
  width: 100%;
  background: none;
  border: none;
  color: #fff;
  font-size: 14px;
  outline: none;
}

/* NEW: Bookmark Bar Styles */
#bookmark-bar {
    display: flex;
    background: var(--toolbar-bg);
    padding: 2px 10px 5px 10px;
    gap: 10px;
    border-bottom: 1px solid #000;
    min-height: 20px;
}

.bookmark-item {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 12px;
    color: var(--text-color);
    text-decoration: none;
    background: transparent;
}

.bookmark-item:hover {
    background: rgba(255,255,255,0.1);
}

.bookmark-icon {
    width: 14px;
    height: 14px;
}

#webview-container {
  flex: 1;
  position: relative;
  background: #fff;
  overflow: hidden;
  width: 100%;
}

iframe.sj-frame {
  border: none;
  width: 100%; 
  height: 100%;
  display: block;
}

.home-view {
  width: 100%;
  height: 100%;
  background: #111;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
}
