/* ============================================
   ACCIO LOGIX — Light Crisp Blue Design System
   Matches Figma / Acciologix Design Reference
   ============================================ */

:root {
    --accio-primary: #0284c7;       /* Bright Sky/Royal Blue */
    --accio-primary-hover: #0369a1; /* Deep Sky Blue */
    --accio-secondary: #0f172a;     /* Deep Slate Text */
    --accio-accent: #0ea5e9;        /* Electric Light Blue */
    --accio-accent-light: #e0f2fe;  /* Soft Blue Tint */
    --accio-bg: #f8fafc;            /* Clean light grey-blue background */
    --accio-surface: #ffffff;       /* Pure white card surface */
    --accio-border: #e2e8f0;        /* Subtle crisp border */
    --accio-text: #0f172a;          /* Charcoal / slate 900 */
    --accio-text-muted: #64748b;    /* Slate 500 */
    --accio-font: 'Outfit', sans-serif;
    
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.05), 0 1px 2px -1px rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.04);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.08), 0 8px 10px -6px rgb(0 0 0 / 0.04);
    
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
}

body {
    font-family: var(--accio-font);
    background-color: var(--accio-bg);
    color: var(--accio-text);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--accio-secondary);
}

/* WhatsApp Floating Button */
.accio-whatsapp-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #25D366;
    color: white;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 10px 20px -3px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.accio-whatsapp-btn:hover {
    transform: scale(1.1) translateY(-4px);
    color: white;
}

/* Crisp Clean Navbar */
.accio-navbar {
    background: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important;
    transition: all 0.3s ease;
    z-index: 1040;
}

.accio-navbar.scrolled {
    background: #ffffff !important;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08) !important;
}

.active-nav-link {
    color: #0284c7 !important;
    font-weight: 700 !important;
}

/* Primary Blue Buttons */
.btn-accio-primary {
    background: var(--accio-primary);
    color: #ffffff !important;
    font-weight: 600;
    border-radius: 9999px;
    padding: 0.625rem 1.4rem;
    border: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25);
}

.btn-accio-primary:hover {
    background: var(--accio-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.35);
    color: #ffffff;
}

.btn-accio-outline {
    background: transparent;
    color: var(--accio-secondary) !important;
    font-weight: 600;
    border-radius: 9999px;
    padding: 0.625rem 1.4rem;
    border: 1px solid var(--accio-border);
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-accio-outline:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: var(--accio-secondary);
}

/* Demo Environment Pill */
.demo-environment-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e0f2fe;
    color: #0284c7;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 9999px;
}

.demo-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #0284c7;
}

/* Central Tracking Search Box */
.accio-search-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    padding: 6px 8px 6px 20px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
    display: flex;
    align-items: center;
    transition: all 0.25s ease;
}

.accio-search-card:focus-within {
    border-color: var(--accio-primary);
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.15);
}

.accio-search-input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 1rem;
    font-weight: 500;
    color: var(--accio-secondary);
    width: 100%;
    font-family: var(--accio-font);
}

.accio-search-input::placeholder {
    color: #94a3b8;
}

.accio-search-btn {
    background: var(--accio-primary);
    color: #ffffff;
    border: none;
    border-radius: 9999px;
    padding: 10px 24px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.accio-search-btn:hover {
    background: var(--accio-primary-hover);
}

/* Demo Shipment Tracking Card Preview */
.shipment-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.shipment-card:hover {
    box-shadow: var(--shadow-md);
}

/* Route Line in Tracking */
.tracking-route-line {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
}

.tracking-route-line::before {
    content: '';
    position: absolute;
    left: 10px;
    right: 10px;
    height: 2px;
    background: #e2e8f0;
    z-index: 1;
}

.route-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #0284c7;
    position: relative;
    z-index: 2;
}

.route-truck-icon {
    position: relative;
    z-index: 2;
    background: #ffffff;
    padding: 0 10px;
    color: #0284c7;
    font-size: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 10px rgba(2, 132, 199, 0.45));
}

/* Vehicle Headlight Beam Glow */
.route-truck-icon::after {
    content: '';
    position: absolute;
    right: -16px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 14px;
    background: radial-gradient(ellipse at left, rgba(56, 189, 248, 0.85) 0%, rgba(14, 165, 233, 0.35) 45%, rgba(2, 132, 199, 0) 100%);
    clip-path: polygon(0% 35%, 100% 0%, 100% 100%, 0% 65%);
    pointer-events: none;
    animation: headlightBeamPulse 2.4s ease-in-out infinite;
}

/* Vehicle Headlight Light Halo */
.route-truck-icon::before {
    content: '';
    position: absolute;
    right: -2px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 8px 3px rgba(56, 189, 248, 0.95);
    pointer-events: none;
}

@keyframes headlightBeamPulse {
    0%, 100% {
        opacity: 0.6;
        filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.6));
    }
    50% {
        opacity: 1;
        filter: drop-shadow(0 0 14px rgba(14, 165, 233, 0.9));
    }
}

/* Status Badges */
.badge-in-transit {
    background: #e0f2fe;
    color: #0284c7;
    border-radius: 9999px;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.badge-in-transit::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #0284c7;
}

/* Feature & Metric Cards */
.accio-card-clean {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.accio-card-clean:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: #cbd5e1;
}

.accio-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #e0f2fe;
    color: #0284c7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
}

/* Utility Helpers */
.text-accio-blue {
    color: var(--accio-primary) !important;
}

.bg-accio-blue-subtle {
    background-color: #f0f9ff !important;
}

.border-accio-blue {
    border-color: var(--accio-primary) !important;
}

.font-size-12 { font-size: 0.75rem; }
.font-size-13 { font-size: 0.8125rem; }
.font-size-14 { font-size: 0.875rem; }
.font-size-15 { font-size: 0.9375rem; }
.font-size-16 { font-size: 1rem; }
.font-size-20 { font-size: 1.25rem; }
.font-size-24 { font-size: 1.5rem; }

/* ============================================
   FIGMA PROTOTYPE EXACT UI ELEMENTS
   ============================================ */

.btn-figma-primary {
    background: #0284c7;
    color: #ffffff !important;
    font-weight: 600;
    border-radius: 9999px;
    padding: 0.5rem 1.25rem;
    border: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.22);
    font-size: 0.875rem;
    line-height: 1.4;
    white-space: nowrap;
}

.btn-figma-primary:hover {
    background: #0369a1;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(2, 132, 199, 0.3);
    color: #ffffff !important;
}

.btn-figma-outline {
    background: #ffffff;
    color: #0f172a !important;
    font-weight: 600;
    border-radius: 9999px;
    padding: 0.5rem 1.25rem;
    border: 1px solid #cbd5e1;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    text-decoration: none;
    font-size: 0.875rem;
    line-height: 1.4;
    white-space: nowrap;
}

.btn-figma-outline:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #0f172a !important;
}

.btn-figma-circle-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #0284c7;
    color: #ffffff !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border: none;
}

.btn-figma-circle-arrow:hover {
    background: #0369a1;
    transform: scale(1.08);
}

.figma-card-active .btn-figma-circle-arrow {
    background: #0284c7;
    color: #ffffff !important;
}

/* Stepper and Badges */
.badge-delivered {
    background: #dcfce7;
    color: #16a34a;
    border-radius: 9999px;
    padding: 5px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.badge-delivered::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #16a34a;
}

.badge-warning-subtle {
    background: #fef3c7;
    color: #d97706;
    border-radius: 9999px;
    padding: 5px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.badge-warning-subtle::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d97706;
}

.badge-danger-subtle {
    background: #fee2e2;
    color: #dc2626;
    border-radius: 9999px;
    padding: 5px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.badge-danger-subtle::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #dc2626;
}

/* Stepper Styling */
.tracking-stepper-wrap {
    position: relative;
}
.tracking-stepper-wrap::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 8%;
    right: 8%;
    height: 3px;
    background: #e2e8f0;
    z-index: 1;
}
.step-item {
    position: relative;
    z-index: 2;
}
.step-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #cbd5e1;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    margin: 0 auto 0.75rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}
.step-item.active .step-circle {
    background: var(--accio-primary);
    border-color: var(--accio-primary);
    color: #ffffff;
    box-shadow: 0 0 0 5px rgba(2, 132, 199, 0.15), var(--shadow-md);
}
.step-item.active .step-title {
    color: #0f172a;
    font-weight: 700;
}
.step-item.failed .step-circle {
    background: #ef4444;
    border-color: #ef4444;
    color: #ffffff;
    box-shadow: 0 0 0 5px rgba(239, 68, 68, 0.15);
}

/* Checkpoint Timeline */
.accio-timeline {
    position: relative;
    padding: 1rem 0;
}
.accio-timeline::before {
    content: '';
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 20px;
    width: 2px;
    background: #e2e8f0;
}
.accio-timeline-item {
    position: relative;
    padding-left: 55px;
    margin-bottom: 1.5rem;
}
.accio-timeline-item:last-child {
    margin-bottom: 0;
}
.accio-timeline-badge {
    position: absolute;
    left: 8px;
    top: 2px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid var(--accio-primary);
    color: var(--accio-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    z-index: 2;
}
.accio-timeline-badge.active-badge {
    background: var(--accio-primary);
    color: #ffffff;
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.2);
}
.accio-timeline-badge.danger-badge {
    border-color: #ef4444;
    background: #ef4444;
    color: #ffffff;
}

/* Figma FAQ Accordion */
.figma-faq-accordion .accordion-button {
    background: transparent !important;
    box-shadow: none !important;
    color: #0f172a;
    font-size: 1.05rem;
    font-weight: 700;
}
.figma-faq-accordion .accordion-button:not(.collapsed) {
    color: #0284c7;
}
.figma-faq-accordion .accordion-item {
    border-color: #e2e8f0 !important;
}

