/* ── Custom Font ── */
@font-face {
  font-family: 'AppFont';
  src: url('/fonts/font.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ── CSS Variables ── */
:root {
  --bg:           #000000;
  --bg-sidebar:   #020508;
  --bg-card:      #06090e;
  --bg-card-hover:#0a0d14;
  --bg-hover:     rgba(59, 130, 246, 0.08);
  --bg-input:     #040608;
  --accent:       #2563eb;
  --accent-dark:  #1d4ed8;
  --accent-dim:   #3b82f6;
  --accent-glow:  rgba(37, 99, 235, 0.3);
  --accent-glow2: rgba(37, 99, 235, 0.08);
  --border:       #0d1a2a;
  --border-light: #1a2a4a;
  --text:         #ffffff;
  --text-muted:   #6b7280;
  --text-dim:     #374151;
  --sidebar-w:    240px;
  --sidebar-w-sm: 64px;
  --transition:   250ms ease;
  --radius:       10px;
  --radius-sm:    6px;
}

/* ── Reset ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  font-family: 'AppFont', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

/* ── Layout Shell ── */
.layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

.content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--bg);
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-dark);
}

/* ── Utility ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  font-family: inherit;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-dim);
  box-shadow: 0 0 20px var(--accent-glow);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--border-light);
}
.btn-outline:hover {
  background: var(--bg-hover);
  border-color: var(--accent);
}

/* ── Empty State Image ── */
.empty-state-img {
  width: 380px;
  height: 380px;
  object-fit: contain;
  opacity: 0.55;
  flex-shrink: 0;
}

/* ── Social Image (sidebar) ── */
.social-img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  opacity: 0.55;
  transition: opacity var(--transition);
}
.social-link:hover .social-img {
  opacity: 0.9;
}

/* ── Page Header ── */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.page-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

/* ── Filter Pills ── */
.filter-pills {
  display: flex;
  gap: 6px;
}

.pill {
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  transition: all var(--transition);
  font-family: inherit;
}
.pill:hover {
  border-color: var(--accent);
  color: var(--text);
}
.pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ── Prompt Bar ── */
.prompt-bar {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 16px 28px;
  border-top: 1px solid var(--border);
  background: var(--bg);
  flex-shrink: 0;
}

.prompt-input {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  resize: none;
  min-height: 48px;
  max-height: 160px;
  overflow-y: auto;
  transition: border-color var(--transition);
  line-height: 1.5;
}
.prompt-input::placeholder {
  color: var(--text-dim);
}
.prompt-input:focus {
  outline: none;
  border-color: var(--accent);
}

.prompt-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  font-size: 18px;
}
.icon-btn:hover {
  background: var(--bg-hover);
  border-color: var(--accent);
  color: var(--accent);
}

.send-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--accent);
  border: none;
  color: #fff;
  cursor: pointer;
  transition: all var(--transition);
  font-size: 18px;
}
.send-btn:hover {
  background: var(--accent-dim);
  box-shadow: 0 0 16px var(--accent-glow);
}
.send-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}
