/* My Freight Link - Premium SaaS Design System */
@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap");

:root {
  --bg-app: #ECEFF4;
  --card-bg: #FFFFFF;
  --card-border: rgba(226, 232, 240, 0.85);
  --card-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.04), 0 4px 12px -2px rgba(15, 23, 42, 0.02);
  --card-shadow-hover: 0 20px 40px -10px rgba(15, 23, 42, 0.08), 0 8px 16px -4px rgba(15, 23, 42, 0.03);
  --brand-primary: #1E293B;
  --brand-accent: #3B82F6;
  --brand-accent-light: #EFF6FF;
  --brand-success: #10B981;
  --brand-warning: #F59E0B;
}

body {
  background-color: var(--bg-app);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1E293B;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: "Plus Jakarta Sans", sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

/* Custom Card Classes */
.saas-card {
  background: #FFFFFF;
  border-radius: 20px;
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.saas-card-hover:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-2px);
}

.saas-card-sm {
  border-radius: 16px;
}

.saas-card-lg {
  border-radius: 24px;
}

/* Service Selector Cards */
.service-pill-card {
  transition: all 0.25s ease;
  border: 2px solid transparent;
}

.service-pill-card.active {
  border-color: #3B82F6;
  background: #FFFFFF;
  box-shadow: 0 12px 28px -6px rgba(59, 130, 246, 0.18);
  transform: translateY(-2px);
}

.service-pill-card:not(.active):hover {
  border-color: #E2E8F0;
  background: rgba(255, 255, 255, 0.9);
}

/* Status Badges */
.badge-active {
  background-color: #ECFDF5;
  color: #059669;
  border: 1px solid #A7F3D0;
}

.badge-processing {
  background-color: #EFF6FF;
  color: #2563EB;
  border: 1px solid #BFDBFE;
}

.badge-warning {
  background-color: #FFFBEB;
  color: #D97706;
  border: 1px solid #FDE68A;
}

.badge-pending {
  background-color: #F8FAFC;
  color: #64748B;
  border: 1px solid #E2E8F0;
}

.badge-completed {
  background-color: #F0FDF4;
  color: #16A34A;
  border: 1px solid #BBF7D0;
}

.badge-danger {
  background-color: #FEF2F2;
  color: #DC2626;
  border: 1px solid #FECACA;
}

/* Pill Navigation Buttons */
.nav-pill {
  transition: all 0.2s ease;
}

.nav-pill.active {
  background-color: #FFFFFF;
  color: #0F172A;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  font-weight: 600;
}

.nav-pill:not(.active) {
  color: #64748B;
}

.nav-pill:not(.active):hover {
  color: #0F172A;
  background-color: rgba(255, 255, 255, 0.6);
}

/* Left Dock Icons */
.dock-icon {
  transition: all 0.2s ease;
  position: relative;
}

.dock-icon.active {
  background-color: #0F172A;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);
}

.dock-icon:not(.active) {
  background-color: #FFFFFF;
  color: #64748B;
  border: 1px solid #E2E8F0;
}

.dock-icon:not(.active):hover {
  background-color: #F8FAFC;
  color: #0F172A;
  border-color: #CBD5E1;
}

/* Pulse indicator */
.pulse-dot {
  position: relative;
}
.pulse-dot::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 9999px;
  animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
  background-color: inherit;
  opacity: 0.6;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* Shimmer Progress */
.shimmer-progress {
  background-size: 200% 100%;
  animation: shimmer 2.5s infinite linear;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Interactive Kanban Column */
.kanban-col {
  background: #F8FAFC;
  border-radius: 18px;
  border: 1px solid #E2E8F0;
  min-height: 540px;
}

/* Custom range slider */
input[type="range"] {
  accent-color: #2563EB;
}

/* Toast container */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  animation: slide-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slide-in {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Lead dossier modal */
.modal-backdrop {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
}

/* ========================================================================= */
/* My Freight Link - Freight & Logistics Doodle Background & Logo Branding   */
/* ========================================================================= */
.mfl-doodle-bg,
.white-doodle-section,
body.has-mfl-doodles {
  background-color: #FFFFFF;
  background-image: url("data:image/svg+xml,%3Csvg width='220' height='220' viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%230284c7' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round' opacity='0.09'%3E%3C!-- Semi Truck Trailer --%3E%3Crect x='18' y='40' width='38' height='26' rx='2'/%3E%3Cpath d='M56 48h18l10 10v8H56z'/%3E%3Ccircle cx='30' cy='69' r='4.5' fill='%230f172a' fill-opacity='0.1'/%3E%3Ccircle cx='46' cy='69' r='4.5' fill='%230f172a' fill-opacity='0.1'/%3E%3Ccircle cx='74' cy='69' r='4.5' fill='%230f172a' fill-opacity='0.1'/%3E%3C!-- Shipping Container with Ribbed Lines --%3E%3Crect x='130' y='32' width='56' height='30' rx='2'/%3E%3Cline x1='140' y1='32' x2='140' y2='62'/%3E%3Cline x1='150' y1='32' x2='150' y2='62'/%3E%3Cline x1='160' y1='32' x2='160' y2='62'/%3E%3Cline x1='170' y1='32' x2='170' y2='62'/%3E%3Cline x1='176' y1='32' x2='176' y2='62'/%3E%3C!-- Cargo Vessel / Freight Ship --%3E%3Cpath d='M25 155l14 26h75l20-26z'/%3E%3Crect x='45' y='141' width='32' height='14' rx='1'/%3E%3Crect x='58' y='132' width='14' height='9' rx='1'/%3E%3Cpath d='M20 188c12 3 24-3 36 0s24 3 36 0 24-3 36 0 24 3 36 0'/%3E%3C!-- Forklift & Stacked Pallet --%3E%3Cpath d='M145 142v30h22v-14h12l8 14'/%3E%3Ccircle cx='154' cy='175' r='4'/%3E%3Ccircle cx='178' cy='175' r='4'/%3E%3Cpath d='M187 152h14v22'/%3E%3Crect x='192' y='142' width='16' height='10' rx='1'/%3E%3C!-- Air Cargo Plane --%3E%3Cpath d='M92 94l18-6 32 18-6 4-23-10-6 22 10 6-3 3-12-4-5 8-4-1 3-10z'/%3E%3C!-- Logistics Route Line & Pin --%3E%3Ccircle cx='115' cy='52' r='2.5' fill='%232563eb' fill-opacity='0.3'/%3E%3Cpath d='M115 52q20-15 32 6' stroke-dasharray='3 3' stroke='%2338bdf8'/%3E%3Ccircle cx='147' cy='58' r='2' fill='%230284c7' fill-opacity='0.4'/%3E%3C!-- Parcel Box with Ribbon --%3E%3Crect x='45' y='98' width='22' height='22' rx='2'/%3E%3Cline x1='45' y1='109' x2='67' y2='109'/%3E%3Cline x1='56' y1='98' x2='56' y2='120'/%3E%3C/g%3E%3C/svg%3E");
}

/* MFL Brand Accent Color Classes */
.mfl-blue-gradient {
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
}
.mfl-navy-gradient {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}
.mfl-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #f0f9ff;
  color: #0284c7;
  border: 1px solid #bae6fd;
}
