/* ==========================================================================
   Syndrio LeadFlow CRM — Dark Theme & Impeccable Micro-Interactions
   Anti-slop, razor-sharp visual hierarchy, obsidian & dark slate palette
   ========================================================================== */

:root {
  --bg-app: #090b10;
  --bg-sidebar: #0d1017;
  --bg-column: #121622;
  --bg-column-header: #161b2a;
  --bg-card: #181d2d;
  --bg-card-hover: #1f253a;
  --bg-modal: #131722;
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-active: rgba(255, 255, 255, 0.16);
  --border-focus: #6366f1;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --accent-primary: #6366f1;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  --accent-cyan: #06b6d4;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

body {
  background-color: var(--bg-app);
  color: var(--text-main);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow-x: hidden;
  letter-spacing: -0.01em;
}

/* Background atmospheric lighting */
.bg-mesh {
  background-image: 
    radial-gradient(at 15% 15%, rgba(99, 102, 241, 0.08) 0px, transparent 55%),
    radial-gradient(at 85% 20%, rgba(16, 185, 129, 0.05) 0px, transparent 50%),
    radial-gradient(at 50% 90%, rgba(245, 158, 11, 0.04) 0px, transparent 55%);
  background-attachment: fixed;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Glass Panels */
.glass-panel {
  background: rgba(18, 22, 34, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
}

.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-active);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 0 15px 1px rgba(99, 102, 241, 0.08);
}

/* Drag and Drop SortableJS Styles */
.sortable-ghost {
  opacity: 0.35 !important;
  background: #252e47 !important;
  border: 2px dashed #6366f1 !important;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.3) !important;
  transform: scale(0.98);
}

.sortable-chosen {
  cursor: grabbing !important;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6) !important;
  border-color: rgba(99, 102, 241, 0.5) !important;
}

.sortable-drag {
  opacity: 0.95 !important;
  transform: rotate(2deg) scale(1.02);
}

/* Card Text Clamp with graceful bottom fade */
.notepad-preview-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  position: relative;
}

/* Mono badge and timestamps */
.font-mono-data {
  font-family: var(--font-mono);
}

/* Dynamic Interest Slider */
input[type=range].interest-slider {
  -webkit-appearance: none;
  background: #23293d;
  height: 8px;
  border-radius: 4px;
  outline: none;
}
input[type=range].interest-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #10b981;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.6);
  border: 2px solid #ffffff;
  transition: transform 0.1s ease;
}
input[type=range].interest-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

/* Animation utilities */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Timeline vertical connector */
.timeline-track::before {
  content: '';
  position: absolute;
  top: 14px;
  bottom: 0;
  left: 17px;
  width: 2px;
  background: rgba(255, 255, 255, 0.1);
}
