:root {
  --bg: #f8f9fa;
  --bg-offset: #ffffff;
  --bg-inset: #f1f3f5;

  --fg: #212529;
  --fg-muted: #6c757d;
  --fg-subtle: #adb5bd;

  --border-color: #dee2e6;
  --border-color-strong: #ced4da;

  --primary-bg: #0d6efd;
  --primary-fg: #ffffff;
  --primary-border: #0d6efd;

  --danger-bg: #dc3545;
  --danger-fg: #ffffff;
  --danger-border: #dc3545;
  --danger-bg-subtle: #fff5f5;
  --danger-fg-subtle: #c92a2a;
  --danger-border-subtle: #ffc9c9;

  --font-sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  
  --top-bar-height: 56px;
  --left-panel-width: 320px;

  /* Button theming variables */
  --button-fg: #212529;
  --button-bg: #ffffff;
  --button-border: #ced4da;
  --button-hover-bg: #f1f3f5;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 14px;
  overflow: hidden;
}

#app-container {
  position: fixed;
  top: var(--top-bar-height);
  left: var(--left-panel-width);
  width: calc(100% - var(--left-panel-width));
  bottom: 0;
  transition: all 0.2s ease-in-out;
}

body.panel-collapsed #app-container {
  left: 0;
  width: 100%;
}

#app {
  width: 100%;
  height: 100%;
}

.tool-icon {
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  color: var(--danger-fg-subtle);
  font-family: monospace;
}

/* Info Banner Styles */
#info-banner {
  position: fixed;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-offset);
  border: 1px solid var(--border-color);
  border-radius: 8px 8px 0 0;
  padding: 12px 16px;
  z-index: 1500;
  transition: bottom 0.3s ease;
  max-width: 90%;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
}

#info-banner.show {
  bottom: 0;
}

.info-banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: var(--fg-muted);
}

#info-banner-text {
  flex: 1;
  text-align: center;
}

#info-banner-text a {
  color: var(--primary-bg);
  text-decoration: none;
  font-weight: 500;
}

#info-banner-text a:hover {
  text-decoration: underline;
}

#info-banner-close {
  background: none;
  border: none;
  color: var(--fg-muted);
  font-size: 20px;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

#info-banner-close:hover {
  color: var(--fg);
  background: var(--bg-inset);
}

/* Mobile responsive */
@media (max-width: 768px) {
  #info-banner {
    max-width: 95%;
    padding: 10px 12px;
    font-size: 12px;
  }
  
  .info-banner-content {
    gap: 12px;
  }
}