:root {
    --color-primary: #DC2626;
    --color-bg: #F9FAFB;
    --color-line: #cbd5e1;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--color-bg);
    color: #1F2937;
}

.text-primary {
    color: var(--color-primary);
}

.bg-primary {
    background-color: var(--color-primary);
}

.nav-btn {
    transition: all 0.2s;
    cursor: pointer;
}

.nav-btn:hover,
.nav-btn.active {
    background-color: #FEF2F2;
    color: var(--color-primary);
    font-weight: 700;
}

.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.flow-container {
    display: flex;
    align-items: stretch;
    gap: 0;
    padding: 30px;
    margin-bottom: 20px;
    background: white;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.node-ingest-wrapper {
    width: 300px;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
}

.node-ingest {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 2px solid #e5e7eb;
    transition: all 0.3s;
}

.node-ingest.active {
    border-color: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.1);
}

.node-ingest.inactive {
    border-color: #ef4444;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 99px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.status-badge.green {
    background: #dcfce7;
    color: #166534;
}

.status-badge.red {
    background: #fee2e2;
    color: #991b1b;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
}

.status-dot.green {
    background: #22c55e;
    animation: pulse 1.5s infinite;
}

.status-dot.red {
    background: #ef4444;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }

    100% {
        opacity: 1;
    }
}

.connector-column {
    flex-grow: 1;
    position: relative;
    min-width: 60px;
}

.connector-lines {
    position: absolute;
    top: 50px;
    left: 0;
    width: 100%;
    height: calc(100% - 50px);
    border-top: 2px dashed var(--color-line);
    border-right: 2px dashed var(--color-line);
    border-radius: 0 20px 0 0;
    pointer-events: none;
}

.connector-arrow {
    position: absolute;
    top: -6px;
    right: -6px;
    font-size: 12px;
    color: var(--color-line);
}

.destinations-wrapper {
    width: 350px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 20px;
}

.node-dest {
    background: #f8fafc;
    border-radius: 10px;
    padding: 12px;
    border: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
    position: relative;
}

.node-dest::before {
    content: "";
    position: absolute;
    left: -20px;
    top: 50%;
    width: 20px;
    height: 2px;
    background: var(--color-line);
    z-index: 0;
}

.node-dest.running {
    background-color: #f0fdf4;
    border-color: #bbf7d0;
}

.magic-container {
    background: linear-gradient(135deg, #fdf4ff 0%, #fae8ff 100%);
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    border: 1px solid #f0abfc;
    box-shadow: 0 10px 30px -10px rgba(192, 38, 211, 0.2);
    position: relative;
    overflow: hidden;
}

.magic-container::before {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(232, 121, 249, 0.4) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.magic-btn {
    background: linear-gradient(90deg, #9333ea 0%, #c026d3 100%);
    color: white;
    padding: 16px 40px;
    border-radius: 99px;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(147, 51, 234, 0.4);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 10;
}

.magic-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(192, 38, 211, 0.6);
}

.magic-card {
    background: white;
    border: 2px solid #f5d0fe;
    border-radius: 20px;
    transition: all 0.3s;
}

.magic-card:hover {
    border-color: #d946ef;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(217, 70, 239, 0.15);
}

.magic-code {
    background: #fdf2f8;
    color: #db2777;
    font-family: monospace;
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 2px;
    padding: 10px;
    border-radius: 12px;
    border: 2px dashed #fbcfe8;
}

/* Custom Kick Icon - Green K */
.kick-icon {
    font-weight: 900;
    font-style: normal;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.kick-icon::before {
    content: "K";
    font-weight: 900;
    font-size: 1em;
}