@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --bg: #0a0a0a;
  --sidebar-bg: #111111;
  --topbar-bg: #0f0f0f;
  --panel: #151515;
  --accent: #4a9eff;
  --text: #e0e0e0;
  --text-dim: #808080;
  --border: #1f1f1f;
  --radius: 8px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
}

html, body {
  height: 100%;
  width: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Top Navigation Bar */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 50px;
  background: var(--topbar-bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 12px;
  z-index: 100;
}

.nav-controls {
  display: flex;
  gap: 4px;
  margin-left: 8px;
}

.nav-btn {
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  color: var(--text-dim);
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.2s;
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.address-bar-wrapper {
  flex: 1;
  max-width: 800px;
  margin: 0 auto;
}

.address-bar {
  width: 100%;
  height: 32px;
  background: var(--sidebar-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 16px;
  color: var(--text);
  font-size: 13px;
  font-family: var(--font);
  outline: none;
  transition: all 0.2s;
}

.address-bar:focus {
  background: var(--panel);
  border-color: var(--accent);
}

.address-bar::placeholder {
  color: var(--text-dim);
}

.top-actions {
  display: flex;
  gap: 4px;
  margin-right: 8px;
}

/* Tab Bar */
.tab-bar {
  position: fixed;
  top: 50px;
  left: 0;
  right: 0;
  height: 40px;
  background: var(--topbar-bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  z-index: 90;
  overflow: hidden;
}

.tabs-container {
  display: flex;
  flex: 1;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.tabs-container::-webkit-scrollbar {
  display: none;
}

.tab {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 180px;
  max-width: 240px;
  height: 36px;
  padding: 0 12px;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.tab:hover {
  background: rgba(255, 255, 255, 0.03);
}

.tab.active {
  background: var(--bg);
  border-bottom: 2px solid var(--accent);
}

.tab-icon {
  font-size: 12px;
  color: var(--text-dim);
  flex-shrink: 0;
}

.tab.active .tab-icon {
  color: var(--accent);
}

.tab-title {
  flex: 1;
  font-size: 13px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tab-close {
  width: 18px;
  height: 18px;
  background: transparent;
  border: none;
  color: var(--text-dim);
  border-radius: 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  opacity: 0;
  transition: all 0.2s;
  flex-shrink: 0;
}

.tab:hover .tab-close {
  opacity: 1;
}

.tab-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.new-tab-btn {
  width: 40px;
  height: 36px;
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.2s;
  flex-shrink: 0;
}

.new-tab-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

/* Left Sidebar */
.sidebar {
  position: fixed;
  left: 0;
  top: 90px;
  bottom: 0;
  width: 56px;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 0;
  z-index: 50;
}

.sidebar-top {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.sidebar-bottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.sidebar a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--text-dim);
  font-size: 18px;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s;
}

.sidebar a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.sidebar a:active {
  transform: scale(0.95);
}

/* Tooltip */
.sidebar a::after {
  content: attr(title);
  position: absolute;
  left: 60px;
  background: var(--panel);
  color: var(--text);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border);
}

.sidebar a:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0.5rem);
}

/* Main Content Area */
.content {
  position: fixed;
  top: 90px;
  left: 56px;
  right: 0;
  bottom: 0;
  background: var(--bg);
  overflow-y: auto;
  padding: 24px;
}

.tab-content {
  display: none;
  width: 100%;
  height: 100%;
}

.tab-content.active {
  display: block;
}

/* Welcome page buttons */
.content a {
  display: inline-block;
  font-family: var(--font);
  line-height: 1.5;
}

.content a:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(74, 158, 255, 0.3);
}

.container {
  text-align: left;
  width: auto;
  padding: 0 1rem;
  margin-left: 8rem;
  margin-top: 2.5rem;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.05rem;
  text-align: center;
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
  -webkit-background-clip: text; 
  -webkit-text-fill-color: transparent;
}

.active {
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.container h1 {
  font-size: 10em;
}

p {
  color: var(--muted);
  margin-top: 0.75rem;
}

footer {
  position: fixed;
  bottom: 1.25rem;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.05rem;
}

.content {
padding-left: 3em;
padding-right: 3em;
}

.content h2, h3, p, span {
line-height: 1.5em;
margin-top: 1em;
}

@media (max-width: 44rem) { /* ~700px */
  .sidebar {
    flex-direction: row;
    bottom: 1.5rem; 
    left: 50%; 
    transform: translateX(-50%);
    top: auto;
    width: auto;
    height: 4rem;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius);
  }
  .sidebar a::after { display: none; }
  .container { margin-left: 0.5rem; padding: 0 0.5rem; }
  h1 { font-size: 2rem; }
}

a {
color: inherit;
text-decoration: underline;
}

.joinbtn {
  display: inline-block;
  color: inherit;
  text-decoration: none;
  padding: 1em;
  border: solid 2px var(--accent1);
  background: none;
  transform: scale(1);
  transition: transform 0.3s ease, background 0.3s ease;
}

.joinbtn:hover {
  background: var(--accent2);
  transform: scale(1.1);
}

