/* frontend/css/ — shared layout, theme variables, and responsive rules. */
/* Layout and theme variables – Agentic Node brand (dusty rose + black) */
:root {
  --sidebar-width: 272px;
  --content-padding-x: 1.5rem;
  --content-padding-y: 1.25rem;
  --header-padding-x: 1.5rem;
  --header-padding-y: 1.25rem;
  --input-padding-x: 1.5rem;
  --input-padding-y: 1rem;
  --layout-transition: 0.25s ease;
  --layout-transition-fast: 0.15s ease;
  /* Design tokens – Agentic Node */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.14);
  --color-brand-bg: #c9a9a6;
  --color-brand-bg-alt: #d4b8b5;
  --color-brand-black: #1a1a1a;
  --color-surface: rgba(255, 255, 255, 0.92);
  --color-surface-alt: rgba(255, 255, 255, 0.75);
  --color-border: rgba(26, 26, 26, 0.12);
  --color-border-light: rgba(26, 26, 26, 0.08);
  --color-text: #1a1a1a;
  --color-text-muted: #4a4040;
  --color-primary: #1a1a1a;
  --color-primary-hover: #333333;
  --color-header: #1a1a1a;
  --font-sans: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100%;
  min-height: 100dvh;
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-text);
  background: var(--color-brand-bg);
  background-image: url("../assets/agentic_node.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

.chat-layout {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  width: 100%;
  height: 100%;
  max-height: 100%;
  background: transparent;
  overflow: hidden;
}

.chat-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: var(--header-padding-y) var(--header-padding-x);
  background: var(--color-header);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-sm);
}

.sidebar-toggle {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

.sidebar-toggle:hover {
  background: rgba(255, 255, 255, 0.22);
}

.sidebar-toggle:active {
  transform: scale(0.97);
}

.sidebar-toggle .sidebar-toggle-icon {
  display: block;
}
.sidebar-toggle .icon-close {
  display: none;
}
.app-shell.sidebar-open .sidebar-toggle .icon-open {
  display: none;
}
.app-shell.sidebar-open .sidebar-toggle .icon-close {
  display: block;
}

.chat-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex: 1;
  min-width: 0;
}

.chat-header-inner > div {
  flex: 1;
  min-width: 0;
}

.chat-header h1 {
  margin: 0 0 0.25rem 0;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.3;
}

.chat-subtitle {
  margin: 0;
  font-size: 0.8125rem;
  opacity: 0.9;
  color: rgba(255, 255, 255, 0.9);
}
