/* FruitLineageModal — flow-diagram nodes/connectors. The .flow-* namespace is component-unique.
   :global(.dark) (dead in a global stylesheet) converted to plain .dark — this ACTIVATES the
   author's dark-mode rules (they were silently dead before). @keyframes de-escaped from @@keyframes
   (fadeIn confirmed not defined elsewhere globally). */
.flow-node {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.2s;
}

.dark .flow-node {
    background: #262626;
    border-color: #404040;
}

.flow-node:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.flow-node-intake { border-left: 4px solid #22c55e; }
.flow-node-winelot { border-left: 4px solid #a855f7; }
.flow-node-vessel { border-left: 4px solid #3b82f6; }
.flow-node-operation { border-left: 4px solid #6366f1; }

.flow-node-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.flow-node-content {
    flex: 1;
    min-width: 0;
}

.flow-node-title {
    font-weight: 600;
    color: #111827;
}

.dark .flow-node-title {
    color: #f3f4f6;
}

.flow-node-subtitle {
    font-size: 0.875rem;
    color: #6b7280;
}

.dark .flow-node-subtitle {
    color: #9ca3af;
}

.flow-node-expand {
    padding: 0.5rem;
    border-radius: 0.375rem;
    color: #9ca3af;
    transition: all 0.2s;
}

.flow-node-expand:hover {
    background: #f3f4f6;
    color: #374151;
}

.dark .flow-node-expand:hover {
    background: #374151;
    color: #e5e7eb;
}

/* Connecting lines */
.flow-connector {
    width: 2px;
    height: 2rem;
    background: linear-gradient(to bottom, #22c55e, #a855f7);
    margin: 0.5rem 0;
}

.flow-connector-horizontal {
    position: absolute;
    left: 0;
    top: 50%;
    width: 1rem;
    height: 2px;
    background: #a855f7;
}

.flow-branch {
    position: relative;
}

.flow-branch::before {
    content: '';
    position: absolute;
    left: 1.25rem;
    top: -0.5rem;
    width: 2px;
    height: 1rem;
    background: #a855f7;
}

/* Animation */
.animate-fadeIn {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-0.5rem); }
    to { opacity: 1; transform: translateY(0); }
}
