/* ──────────────────────────────────────────────────────────────────────────
 * EverX Shared Generic Chat Styles (`everx-chat.css`)
 * Used across Marketing Portal, CFO Partner Portal, and Software Factory.
 * ────────────────────────────────────────────────────────────────────────── */

.everx-chat-sessions-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: rgba(15, 23, 42, 0.78);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  font-size: 11px;
  color: #cbd5e1;
}

.everx-chat-sessions-label {
  font-weight: 700;
  color: #94a3b8;
  white-space: nowrap;
  font-size: 10.5px;
  letter-spacing: 0.2px;
}

.everx-chat-sessions-select {
  flex: 1;
  min-width: 0;
  background: rgba(2, 6, 23, 0.75);
  color: #f8fafc;
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 11px;
  font-family: inherit;
  outline: none;
  cursor: pointer;
  text-overflow: ellipsis;
}
.everx-chat-sessions-select:focus {
  border-color: #6366f1;
}

.everx-chat-btn-new,
.everx-chat-btn-del {
  background: rgba(99, 102, 241, 0.16);
  color: #c7d2fe;
  border: 1px solid rgba(99, 102, 241, 0.38);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.everx-chat-btn-new:hover {
  background: rgba(99, 102, 241, 0.3);
  color: #ffffff;
}
.everx-chat-btn-del {
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.3);
  padding: 4px 6px;
}
.everx-chat-btn-del:hover {
  background: rgba(239, 68, 68, 0.28);
  color: #ffffff;
}

.everx-chat-memory-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.35);
  white-space: nowrap;
}

/* Draggable Left-Border Resize Handle */
.everx-chat-resize-handle {
  position: absolute;
  left: -5px;
  top: 0;
  bottom: 0;
  width: 10px;
  cursor: ew-resize;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.everx-chat-resize-handle:hover,
.everx-chat-resize-handle.dragging {
  background: rgba(99, 102, 241, 0.38);
}
.everx-chat-resize-grip {
  width: 3px;
  height: 44px;
  border-radius: 3px;
  background: rgba(148, 163, 184, 0.45);
  pointer-events: none;
}
.everx-chat-resize-handle:hover .everx-chat-resize-grip,
.everx-chat-resize-handle.dragging .everx-chat-resize-grip {
  background: #818cf8;
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.8);
}

/* Width Preset Buttons Bar */
.everx-chat-width-presets {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.everx-chat-width-btn {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #94a3b8;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.15s;
}
.everx-chat-width-btn:hover,
.everx-chat-width-btn.active {
  color: #f8fafc;
  border-color: #6366f1;
  background: rgba(99, 102, 241, 0.22);
}

/* Structured Bullet-Card Markdown Styles */
.everx-md-h3 {
  font-size: 13px;
  font-weight: 800;
  color: #f8fafc;
  margin: 10px 0 6px 0;
  padding: 5px 10px;
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.2), rgba(15, 23, 42, 0.4));
  border-left: 3px solid #6366f1;
  border-radius: 4px;
  letter-spacing: 0.2px;
}
.everx-md-h3:first-child {
  margin-top: 0;
}
.everx-md-p {
  margin: 5px 0;
  color: #e2e8f0;
  line-height: 1.55;
}
.everx-md-ul {
  list-style: none;
  padding-left: 0;
  margin: 6px 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.everx-md-li {
  position: relative;
  padding: 6px 10px 6px 22px;
  background: rgba(2, 6, 23, 0.42);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 7px;
  color: #f1f5f9;
  line-height: 1.5;
}
.everx-md-li::before {
  content: "▸";
  position: absolute;
  left: 8px;
  top: 6px;
  color: #818cf8;
  font-weight: 900;
}
.everx-md-sub-li {
  position: relative;
  margin-left: 16px;
  padding: 3px 8px 3px 18px;
  border-left: 2px solid rgba(99, 102, 241, 0.35);
  color: #cbd5e1;
  font-size: 12px;
  line-height: 1.45;
}
.everx-md-sub-li::before {
  content: "•";
  position: absolute;
  left: 6px;
  top: 3px;
  color: #38bdf8;
  font-weight: 700;
}
.everx-md-code {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #a5b4fc;
  padding: 1px 5px;
  border-radius: 4px;
}
.everx-md-draft-card {
  margin: 8px 0;
  background: rgba(2, 6, 23, 0.78);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 8px;
  overflow: hidden;
}
.everx-md-draft-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 10px;
  background: rgba(56, 189, 248, 0.12);
  border-bottom: 1px solid rgba(56, 189, 248, 0.22);
  font-size: 10.5px;
  font-weight: 700;
  color: #7dd3fc;
}
.everx-md-draft-body {
  padding: 9px 11px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11.5px;
  color: #f8fafc;
  white-space: pre-wrap;
  line-height: 1.5;
}
