/* ============================================================================
   MAMA Viewer - Brand-Aligned CSS
   Color Palette: Yellow #FFCE00, Lavender #EDDBF7, Black #131313, Blush #FF9999
   Typography: Inter (UI) + Fredoka (markdown headings) + Nunito (chat)
   CJK Fallback: Noto Sans KR, Noto Sans JP
   ============================================================================ */

/* ============================================================================
   CRITICAL CSS - Prevent CLS before Tailwind loads
   ============================================================================ */

header {
  min-height: 56px;
  display: flex;
  align-items: center;
}

main {
  min-height: calc(100dvh - 56px);
}

[data-tab] {
  min-width: 80px;
  min-height: 36px;
}

/* ============================================================================
   ANIMATIONS
   ============================================================================ */

@keyframes pulse-recording {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-8px); }
}

@keyframes message-appear {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slide-up {
  from { opacity: 0; transform: translateY(16px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ============================================================================
   TYPOGRAPHY HIERARCHY — fix the flat 14px-everywhere problem
   ============================================================================ */

h1 { font-size: 1.5rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
h2 { font-size: 1.125rem; font-weight: 600; line-height: 1.3; }
h3 { font-size: 0.9375rem; font-weight: 600; line-height: 1.4; }
h4 { font-size: 0.8125rem; font-weight: 500; line-height: 1.4; }

/* Card system — subtle borders, not heavy shadows */
.card, .bg-white.rounded {
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-card, 12px);
}

/* Button touch targets — 44px minimum on mobile per WCAG 2.5.8 */
button { min-height: 32px; }
button:not([class*="p-"]):not([class*="px-"]):not([class*="py-"]) { padding: 6px 12px; }
@media (max-width: 768px) {
  button { min-height: 44px; }
  [data-tab] { min-height: 44px; }
}

/* Floating Chat */
.animate-slide-up {
  animation: slide-up 0.2s ease-out;
}

#chat-bubble {
  transition: transform 0.2s ease, opacity 0.2s ease;
}

#chat-bubble.scale-0 {
  transform: scale(0);
  opacity: 0;
  pointer-events: none;
}

#chat-panel .chat-message {
  font-size: 0.875rem;
}

#chat-panel .chat-message .message-content {
  font-size: 0.875rem;
  line-height: 1.4;
}

/* Chat panel sizing + scroll behavior fixes */
#chat-panel {
  width: min(92vw, 420px);
  height: min(75vh, 560px);
  resize: both;
  overflow: auto;
  box-sizing: border-box;
  min-width: 280px;
  min-height: 320px;
  max-width: 96vw;
  max-height: 85vh;
  /* GPU compositing for smooth toggle */
  transform: translateZ(0);
  will-change: opacity;
}

/* Right panel mode (SmartStore pattern) — override floating panel sizing */
#chat-panel-wrapper {
  transition: width 0.15s ease;
  height: 100%;
  overflow: hidden;
  min-width: 280px;
}
#chat-panel-wrapper #chat-panel {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-width: none;
  max-height: none;
  resize: none;
  overflow: hidden;
  transform: none;
  will-change: auto;
}
#chat-resize-handle-bar {
  display: none;
}
#chat-resize-handle-bar.chat-resize-visible {
  display: block;
}

/* Legacy bubble styles (kept for backward compat) */
#chat-panel.chat-panel-closed {
  opacity: 0;
  pointer-events: none;
}
#chat-panel.chat-panel-open {
  opacity: 1;
  pointer-events: auto;
}
.chat-panel-draggable {
  position: fixed !important;
  right: auto !important;
  bottom: auto !important;
}
.no-scroll {
  overflow: hidden !important;
  touch-action: none !important;
}

/* Custom resize handle (works on mobile) */
.chat-resize-handle {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 18px;
  height: 18px;
  background:
    linear-gradient(135deg, transparent 50%, #D4C4E0 50%) 0 0/100% 100% no-repeat;
  border-radius: 3px;
  cursor: nwse-resize;
  touch-action: none;
  opacity: 0.8;
}

/* Sidebar resize handle (mobile row-resize) */
#sidebar-resize-handle.sidebar-resize-handle--row {
  width: 100%;
  height: 6px;
  cursor: row-resize;
  background: transparent;
}
#sidebar-resize-handle.sidebar-resize-handle--row::after {
  content: '';
  display: block;
  width: 36px;
  height: 3px;
  margin: 1px auto;
  border-radius: 9999px;
  background: #D4C4E0;
}

/* Mobile chat panel overrides — fix height:100% and overflow:hidden from desktop */
@media (max-width: 767px) {
  #chat-panel-wrapper {
    height: auto;
  }
  #chat-panel-wrapper #chat-panel {
    overflow: visible;
  }
  /* Mobile chat header — compact + brand aligned */
  #chat-panel-wrapper.mobile-chat-active #chat-header {
    padding: 12px 16px;
    background: linear-gradient(180deg, #fff 0%, #FAFAF8 100%);
    border-bottom: 1px solid #EDE9E1;
  }
  /* Mobile chat input — larger targets, brand colors */
  #chat-panel-wrapper.mobile-chat-active .p-3 {
    padding: 12px 16px;
    background: #FAFAF8;
    border-top: 1px solid #EDE9E1;
  }
  #chat-panel-wrapper.mobile-chat-active #chat-input {
    background: #fff;
    border: 1.5px solid #D4C4E0;
    border-radius: 20px;
    padding: 10px 16px;
    font-size: 15px;
    min-height: 44px;
  }
  #chat-panel-wrapper.mobile-chat-active #chat-input:focus {
    border-color: #FFCE00;
    box-shadow: 0 0 0 3px rgba(255, 206, 0, 0.15);
  }
  /* Mobile action buttons — 44px touch targets */
  #chat-panel-wrapper.mobile-chat-active #chat-attach,
  #chat-panel-wrapper.mobile-chat-active #chat-mic,
  #chat-panel-wrapper.mobile-chat-active #chat-send {
    width: 44px;
    height: 44px;
    border-radius: 50%;
  }
  #chat-panel-wrapper.mobile-chat-active #chat-send {
    background: #FFCE00;
    box-shadow: 0 2px 8px rgba(255, 206, 0, 0.3);
  }
  /* Mobile message bubbles — slightly larger text */
  #chat-panel-wrapper.mobile-chat-active .chat-message .message-content {
    font-size: 15px;
    line-height: 1.5;
  }
}

/* Memory viewer mobile layout */
@media (max-width: 768px) {
  #tab-memory .flex-1.flex.min-h-0.relative {
    flex-direction: column;
  }
  #checkpoint-sidebar {
    width: 100% !important;
    max-width: 100% !important;
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
    max-height: 35vh;
  }
  #sidebar-resize-handle {
    display: none;
  }
  #graph-container {
    min-height: 45vh;
  }
  #graph-canvas {
    min-height: 45vh;
  }
}
#chat-messages {
  overflow-x: hidden;
  overscroll-behavior: contain;
  touch-action: pan-y;
}
.chat-message,
.chat-message .message-content {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ============================================================================
   STATE CLASSES (Used by JavaScript)
   ============================================================================ */

/* Chat status indicator */
.status-indicator {
  transition: background-color 200ms ease;
}
.status-indicator.connected {
  background-color: #22c55e !important; /* green-500 */
}
.status-indicator.disconnected {
  background-color: #ef4444 !important; /* red-500 */
}
.status-indicator.connecting {
  background-color: #FFCE00 !important; /* mama-yellow */
  animation: pulse-recording 1s ease-in-out infinite;
}

/* ============================================================================
   MAMA BRAND UTILITIES (Custom Tailwind-style classes)
   ============================================================================ */

/* Background colors */
.bg-mama-yellow { background-color: #FFCE00; }
.bg-mama-yellow-hover { background-color: #E6B800; }
.bg-mama-lavender { background-color: #EDDBF7; }
.bg-mama-lavender-light { background-color: #F5EBF9; }
.bg-mama-lavender-dark { background-color: #D4C4E0; }
.bg-mama-black { background-color: #131313; }
.bg-mama-blush { background-color: #FF9999; }

/* Text colors */
.text-mama-yellow { color: #FFCE00; }
.text-mama-black { color: #131313; }
.text-mama-blush { color: #FF9999; }

/* Border colors */
.border-mama-yellow { border-color: #FFCE00; }
.border-mama-lavender { border-color: #EDDBF7; }
.border-mama-lavender-dark { border-color: #D4C4E0; }
.border-mama-blush { border-color: #FF9999; }

/* Graph-specific background - light for edge visibility */
.bg-mama-graph {
  background: #FAFAFA;
}

/* ============================================================================
   COLLAPSIBLE CHECKPOINT SECTION
   ============================================================================ */

.checkpoint-collapse {
  background: #F8F4FB;
  border: 1px solid #D4C4E0;
  border-radius: 12px;
  margin: 8px 0;
  overflow: hidden;
}

.checkpoint-summary {
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  color: #131313;
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
  list-style: none;
}

.checkpoint-summary::-webkit-details-marker {
  display: none;
}

.checkpoint-summary::before {
  content: '▶';
  font-size: 10px;
  transition: transform 0.2s ease;
}

.checkpoint-collapse[open] .checkpoint-summary::before {
  transform: rotate(90deg);
}

.collapse-hint {
  font-size: 11px;
  color: #888;
  font-weight: 400;
}

.checkpoint-collapse[open] .collapse-hint {
  display: none;
}

.checkpoint-content {
  padding: 0 14px 12px;
  font-size: 12px;
  line-height: 1.5;
  color: #333;
  border-top: 1px solid #E8DFF0;
}

/* ============================================================================
   CHECKPOINT SIDEBAR - Collapsible & Resizable
   ============================================================================ */

.checkpoint-sidebar.collapsed {
  width: 0 !important;
  min-width: 0 !important;
  padding: 0;
  border: none;
  overflow: hidden;
}

.checkpoint-sidebar.collapsed > * {
  opacity: 0;
  visibility: hidden;
}

.checkpoint-sidebar.collapsed + #sidebar-resize-handle {
  display: none;
}

#sidebar-resize-handle {
  width: 4px;
  background: transparent;
  cursor: col-resize;
  transition: background 0.15s ease;
  position: relative;
}

#sidebar-resize-handle:hover {
  background: #FFCE00;
}

#sidebar-resize-handle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 2px;
  height: 24px;
  background: #ccc;
  border-radius: 1px;
  opacity: 0;
  transition: opacity 0.15s ease;
}

#sidebar-resize-handle:hover::after {
  opacity: 1;
  background: #888;
}

/* ============================================================================
   MESSENGER-STYLE CHAT - Brand Colors
   ============================================================================ */

/* Chat message base */
.chat-message {
  display: flex;
  flex-direction: column;
  max-width: 100%;
  animation: message-appear 0.2s ease-out;
}

/* User messages - right aligned, yellow bubble */
.chat-message.user {
  align-self: flex-end;
  align-items: flex-end;
}

.chat-message.user .message-content {
  background: linear-gradient(135deg, #FFCE00 0%, #E6B800 100%);
  color: #131313;
  padding: 12px 16px;
  border-radius: 20px 20px 4px 20px;
  font-size: 15px;
  line-height: 1.5;
  word-break: break-word;
  box-shadow: 0 4px 12px rgba(255, 206, 0, 0.3);
}

/* Assistant messages - left aligned, white bubble */
.chat-message.assistant {
  align-self: flex-start;
  align-items: flex-start;
}

.chat-message.assistant .message-content {
  background: #FFFFFF;
  color: #131313;
  padding: 12px 16px;
  border-radius: 20px 20px 20px 4px;
  font-size: 15px;
  line-height: 1.5;
  word-break: break-word;
  box-shadow: 0 1px 4px rgba(19, 19, 19, 0.06);
  border: 1px solid #EDE9E1;
}

/* System messages - centered, subtle */
.chat-message.system {
  align-self: center;
  max-width: 90%;
}

.chat-message.system .message-content {
  background: transparent;
  color: #888888;
  font-size: 13px;
  text-align: center;
  padding: 8px 16px;
}

.chat-message.system.error .message-content {
  color: #ef4444;
}

.chat-message.system.warning .message-content {
  color: #f59e0b;
}

/* Message timestamp */
.message-time {
  font-size: 11px;
  color: #888888;
  margin-top: 4px;
  padding: 0 4px;
}

/* Streaming indicator */
.chat-message.streaming .message-content::after {
  content: '▋';
  animation: cursor-blink 1s step-end infinite;
  margin-left: 2px;
}

/* Markdown in messages */
.chat-message .message-content p {
  margin: 0 0 8px 0;
}

.chat-message .message-content p:last-child {
  margin-bottom: 0;
}

.chat-message .message-content code {
  background: rgba(19, 19, 19, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 13px;
}

.chat-message.user .message-content code {
  background: rgba(19, 19, 19, 0.15);
}

.chat-message .message-content pre {
  background: #131313;
  color: #f3f4f6;
  padding: 12px;
  border-radius: 12px;
  overflow-x: auto;
  margin: 8px 0;
}

.chat-message .message-content pre code {
  background: transparent;
  padding: 0;
}

/* Quiz choice buttons - Brand style */
.quiz-choice-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 16px;
  margin: 6px 0;
  background: white;
  border: 2px solid #D4C4E0;
  border-radius: 16px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quiz-choice-btn:hover {
  background: #F5EBF9;
  border-color: #FFCE00;
  transform: translateX(4px);
}

.quiz-choice-btn:active {
  background: #EDDBF7;
  transform: translateX(2px);
}

/* Tab visibility */
.tab-content {
  display: none;
  content-visibility: hidden;
}
.tab-content.active {
  display: flex;
  flex-direction: column;
  flex: 1;
  height: 100%;
  min-height: 0;
  content-visibility: visible;
}
/* Memory tab needs visible content-visibility for checkpoint details elements */
#tab-memory,
#tab-memory.active {
  content-visibility: visible;
}

/* Modal visibility */
.modal-overlay {
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms ease, visibility 200ms ease;
}
.modal-overlay.visible {
  opacity: 1;
  visibility: visible;
}

/* Floating panel visibility */
.floating-panel {
  display: none;
}
.floating-panel.visible {
  display: flex;
}

/* Decision detail modal - resizable */
#decision-detail-modal {
  resize: both;
  overflow: auto;
}
#decision-detail-modal::-webkit-resizer {
  background: linear-gradient(135deg, transparent 50%, #ccc 50%);
  border-radius: 0 0 8px 0;
}
#detail-modal-header {
  cursor: move;
}
#detail-modal-header:active {
  cursor: grabbing;
}
.decision-resize-handle,
#detail-modal-header {
  touch-action: none;
}
.decision-resize-handle {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 22px;
  height: 22px;
  background:
    linear-gradient(135deg, transparent 50%, #D4C4E0 50%) 0 0/100% 100% no-repeat;
  border-radius: 3px;
  cursor: nwse-resize;
  touch-action: none;
  opacity: 0.8;
  pointer-events: auto;
}

/* Legend panel collapse */
.legend-panel {
  display: none;
}
.legend-panel.visible {
  display: block;
}
.legend-toggle {
  display: flex;
}
.legend-panel.visible + .legend-toggle {
  display: none;
}

/* Toast - Brand style */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 12px 24px;
  background: #131313;
  color: white;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  transition: transform 200ms ease, opacity 200ms ease;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(19, 19, 19, 0.2);
}
.toast.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Recording state */
.recording-dot {
  animation: pulse-recording 1.5s ease-in-out infinite;
}

/* Streaming cursor */
.message.streaming .message-bubble::after {
  content: '\u2588';
  animation: cursor-blink 1s step-end infinite;
  margin-left: 2px;
}

/* Typing indicator */
.typing-indicator {
  display: none;
}
.typing-indicator.active {
  display: flex;
}
.typing-dot {
  animation: typing-bounce 1.4s ease-in-out infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

/* Chat typing indicator */
.chat-typing-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  color: var(--text-secondary, #888);
  font-size: 13px;
}
.chat-typing-indicator .typing-dots {
  display: flex;
  gap: 4px;
}
.chat-typing-indicator .typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-secondary, #888);
  animation: typing-bounce 1.4s ease-in-out infinite;
}
.chat-typing-indicator .typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing-indicator .typing-dots span:nth-child(3) { animation-delay: 0.4s; }

/* ============================================================================
   VIS-NETWORK OVERRIDES
   ============================================================================ */

.vis-network {
  background: transparent !important;
}

/* ============================================================================
   SCROLLBAR STYLING - Brand aligned
   ============================================================================ */

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #D4C4E0;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #FFCE00;
}

/* Firefox scrollbar - scoped to scrollable containers */
body,
.tab-content,
#chat-messages,
.overflow-y-auto,
.overflow-auto {
  scrollbar-width: thin;
  scrollbar-color: #D4C4E0 transparent;
}

/* ============================================================================
   MARKDOWN CONTENT - Brand aligned
   ============================================================================ */

.markdown-content h1,
.markdown-content h2,
.markdown-content h3,
.markdown-content h4 {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  margin-top: 1em;
  margin-bottom: 0.5em;
  line-height: 1.3;
  color: #131313;
}
.markdown-content h1 { font-size: 1.5em; }
.markdown-content h2 { font-size: 1.3em; }
.markdown-content h3 { font-size: 1.1em; }
.markdown-content h4 { font-size: 1em; }

.markdown-content p {
  margin-bottom: 0.75em;
  line-height: 1.6;
}

.markdown-content code {
  background: #F5EBF9;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.9em;
}

.markdown-content pre {
  background: #131313;
  color: #f3f4f6;
  padding: 12px;
  border-radius: 12px;
  overflow-x: auto;
  margin: 0.75em 0;
}
.markdown-content pre code {
  background: none;
  padding: 0;
}

.markdown-content ul,
.markdown-content ol {
  margin-left: 1.5em;
  margin-bottom: 0.75em;
}
.markdown-content li {
  margin-bottom: 0.25em;
}

.markdown-content blockquote {
  border-left: 3px solid #FFCE00;
  padding-left: 1em;
  margin: 0.75em 0;
  font-style: italic;
  color: #888888;
}

.markdown-content a {
  color: #E6B800;
  text-decoration: underline;
}

.markdown-content table {
  border-collapse: collapse;
  width: 100%;
  margin: 0.75em 0;
}
.markdown-content th,
.markdown-content td {
  border: 1px solid #D4C4E0;
  padding: 6px 12px;
  text-align: left;
}
.markdown-content th {
  background: #F5EBF9;
  font-weight: 600;
}

/* ============================================================================
   BRAND BUTTON STYLES
   ============================================================================ */

.btn-mama-primary {
  background: #FFCE00;
  color: #131313;
  font-weight: 700;
  border-radius: 9999px;
  box-shadow: 0 4px 20px rgba(255, 206, 0, 0.4);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-mama-primary:hover {
  background: #E6B800;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 206, 0, 0.5);
}

.btn-mama-primary:active {
  transform: translateY(0);
}

/* ============================================================================
   CARD STYLES
   ============================================================================ */

.card-mama {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(19, 19, 19, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card-mama:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(19, 19, 19, 0.12);
}

/* Agent card hover (replaces inline JS handlers) */
.agent-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

/* Agent form inputs — focus matches chat input style */
.agent-input:focus {
  outline: none;
  border-color: #FFCE00;
  box-shadow: 0 0 0 3px rgba(255, 206, 0, 0.2);
}

/* ============================================================================
   INPUT STYLES - Brand aligned
   ============================================================================ */

.chat-input-area {
  padding: 16px;
  border-top: 1px solid #D4C4E0;
  background: white;
}
.input-row {
  display: flex;
  gap: 8px;
}
.input-wrapper {
  flex: 1;
}
.chat-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #D4C4E0;
  border-radius: 20px;
  background: white;
  color: #131313;
  font-size: 14px;
  font-family: 'Nunito', sans-serif;
  resize: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.chat-input:focus {
  outline: none;
  border-color: #FFCE00;
  box-shadow: 0 0 0 3px rgba(255, 206, 0, 0.2);
}
.chat-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn-send {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 20px;
  background: #FFCE00;
  color: #131313;
  border: none;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Nunito', sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(255, 206, 0, 0.3);
}
.btn-send:hover:not(:disabled) {
  background: #E6B800;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 206, 0, 0.4);
}
.btn-send:disabled {
  background: #D4C4E0;
  color: #888888;
  cursor: not-allowed;
  box-shadow: none;
}

/* ============================================================================
   FLOATING BLOB DECORATIONS (Optional - for special sections)
   ============================================================================ */

.bg-blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  pointer-events: none;
  z-index: -1;
}

.bg-blob-yellow {
  width: 300px;
  height: 300px;
  background: #FFCE00;
  top: -50px;
  right: -50px;
  animation: float 20s ease-in-out infinite;
}

.bg-blob-blush {
  width: 200px;
  height: 200px;
  background: #FF9999;
  bottom: 10%;
  left: -30px;
  animation: float 20s ease-in-out infinite -7s;
}

/* ============================================================================
   Graph Tooltip (vis-network hover tooltip)
   ============================================================================ */
div.vis-tooltip {
  font-family: Inter, 'Noto Sans KR', sans-serif;
  font-size: 12px;
  line-height: 1.5;
  color: #131313;
  background: #fff;
  border: 1px solid #EDE9E1;
  border-radius: 8px;
  padding: 10px 14px;
  box-shadow: 0 4px 20px rgba(19, 19, 19, 0.12);
  max-width: 320px;
  pointer-events: none;
}
