/* Animated Unique Pipeline Theme - SP TRANSACTION HUB TECHNOLOGY PRIVATE LIMITED */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;700&display=swap');

:root {
    --brand-primary: #0f62fe;
    --brand-dark: #0f172a;
    --brand-success: #10b981;
    --brand-purple: #7c3aed;
    --brand-warning: #f59e0b;

    --bg-page: #f8fafc;
    --bg-white: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-light: #cbd5e1;

    --card-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.06), 0 4px 6px -4px rgba(15, 23, 42, 0.03);
}

* { box-sizing: border-box; }

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #f8fafc;
    color: var(--text-main);
    margin: 0; padding: 0;
    line-height: 1.35;
    font-size: 0.80rem;
    -webkit-font-smoothing: antialiased;
}

/* Pure White Navbar with Logo ONLY on Left */
.navbar-white {
    background-color: #ffffff !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    border-bottom: 1px solid var(--border-light);
    padding: 8px 24px;
}

.brand-logo-nav {
    height: 40px;
    width: auto;
    object-fit: contain;
}

/* Live Telemetry Ticker Bar */
.telemetry-ticker-bar {
    background: #0f172a;
    color: #e2e8f0;
    padding: 4px 20px;
    font-size: 0.70rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #1e293b;
}

/* Compact Wrapper */
.compact-wrapper {
    max-width: 1460px;
    margin: 0 auto;
    padding: 10px 18px;
}

/* Unique Card Panels */
.card-matrix {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid var(--border-light);
    padding: 16px;
    box-shadow: var(--card-shadow);
}

/* Pay Method Selector Tiles */
.pay-btn-tile {
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    padding: 8px 6px;
    background: #f8fafc;
    cursor: pointer;
    text-align: center;
    font-weight: 700;
    font-size: 0.75rem;
    color: #334155;
    transition: all 0.2s ease;
}

.pay-btn-tile:hover {
    background: #ffffff;
    border-color: var(--brand-primary);
}

.pay-btn-tile.active {
    background: #eff6ff;
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(15, 98, 254, 0.14);
}

/* Stage Section Container */
.stage-section {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 8px;
}

.stage-title {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-uppercase: uppercase;
    color: #64748b;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Flow Architecture Visualizer */
.flow-node-item {
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: none;
}

.flow-node-item.visible {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.flow-block-compact {
    border-radius: 8px;
    border: 1.5px solid #cbd5e1;
    background: #ffffff;
    padding: 5px 10px;
    transition: all 0.3s ease;
}

.flow-block-compact strong {
    font-size: 0.75rem !important;
    white-space: nowrap;
}

.flow-block-compact .text-muted {
    font-size: 0.68rem !important;
    white-space: nowrap;
}

.flow-block-compact.active-step {
    border-color: #10b981 !important;
    background: #f0fdf4 !important;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.3) !important;
    transform: scale(1.015);
    animation: activeStepPulse 1.8s infinite alternate;
}

@keyframes activeStepPulse {
    0% { box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25), 0 2px 8px rgba(16, 185, 129, 0.1); }
    100% { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0.45), 0 6px 16px rgba(16, 185, 129, 0.2); }
}

/* Node Block Accent Colors */
.block-customer { background: #e6f4ea; border-color: #137333; }
.block-merchant { background: #e8f0fe; border-color: #1a73e8; }
.block-gateway { background: #f3e8ff; border-color: #6a1b9a; }
.block-processor { background: #fff3e0; border-color: #e65100; }
.block-card { background: #e8f0fe; border-color: #1565c0; }
.block-netbank { background: #fff7ed; border-color: #c2410c; }
.block-auth { background: #f3e8ff; border-color: #7b1fa2; }

/* Animated Laser Connectors */
.connector-v {
    width: 3px;
    height: 10px;
    background: #10b981;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}
.connector-v::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: -2.5px;
    border-width: 4px 3.5px 0 3.5px;
    border-style: solid;
    border-color: #10b981 transparent transparent transparent;
}

.sub-chip {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: #ffffff;
    border: 1px solid rgba(106, 27, 154, 0.18);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 600;
    color: #4a148c;
    margin: 1px;
}

/* Flow Summary Sidebar */
.summary-item-static {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 5px;
    padding: 5px 8px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    user-select: none;
    transition: all 0.25s ease;
}

.summary-item-static.active {
    background: #e6f4ea;
    border-color: #0f9d58;
}

.summary-num-circle {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #cbd5e1;
    color: #334155;
    font-weight: 700;
    font-size: 0.68rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.summary-item-static.active .summary-num-circle {
    background: #0f9d58;
    color: white;
}

/* Settlement Pipeline */
.settlement-pill {
    padding: 4px 8px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 6px;
    font-size: 0.72rem;
    color: #0369a1;
    text-align: center;
    font-weight: 600;
}

/* Key Features Footer Banner */
.bottom-banner-compact {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    padding: 8px 14px;
    box-shadow: var(--card-shadow);
    margin-top: 10px;
}
