:root {
  --bg: #0f0f0f;
  --panel: #1a1a1a;
  --border: #2a2a2a;
  --text: #ffffff;
  --muted: #717171;
  --accent: #333333;
  --pill-radius: 20px;
  --sidebar-width: 70px;
}

* {
  box-sizing: border-box;
  transition: all 0.15s ease-out;
}

html, body {
  height: 100%;
  width: 100%;
  overflow: hidden;
  background: var(--bg);
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  display: flex;
}

.sidebar {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px 0;
  align-items: center;
  background: #111;
  border-right: 1px solid var(--border);
}

.sidebar-top, .sidebar-bottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  width: 100%;
}

.brand {
  font-size: 22px;
  color: #fff;
  padding: 12px 0;
  display: flex;
  justify-content: center;
  width: 100%;
}

.side-item {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 18px;
  cursor: pointer;
  padding: 0;
  border-radius: var(--pill-radius);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.side-item:hover {
  color: #fff;
  background: var(--accent);
}

.side-link {
  text-decoration: none;
  outline: none;
  display: block;
}

.content-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
}

header {
  padding: 12px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tabs-container {
  display: flex;
  align-items: center;
  padding-bottom: 5px;
}

.tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar { display: none; }

.tab {
  padding: 8px 16px;
  background: #1a1a1a;
  border: 1px solid var(--border);
  border-radius: var(--pill-radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  white-space: nowrap;
  color: var(--muted);
}

.tab.active {
  background: var(--accent);
  color: #fff;
  border-color: #444;
}

.tab-close {
  font-size: 16px;
  opacity: 0.5;
}

.tab-close:hover { opacity: 1; color: #ff4444; }

.top {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.navs {
  display: flex;
  background: #111;
  border: 1px solid var(--border);
  border-radius: var(--pill-radius);
  padding: 4px;
  gap: 4px;
  flex-shrink: 0; /* Prevents controls from squishing */
}

.bar {
  flex: 1;
  display: flex;
  background: #111;
  border: 1px solid var(--border);
  border-radius: var(--pill-radius);
  padding: 0 16px;
  height: 40px;
  align-items: center;
  min-width: 0;
}

.bar input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text);
  outline: none;
  font-size: 14px;
  width: 100%;
}

main {
  flex: 1;
  background: #fff;
  margin: 0 20px 20px 20px;
  border-radius: var(--pill-radius);
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}

iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #fff;
}

button {
  background: transparent;
  border: none;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--pill-radius);
  width: 34px;
  height: 34px;
}

button:hover:not(:disabled) { background: var(--accent); }
button:disabled { opacity: 0.2; }