.fusion-editor-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.fusion-modal {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    width: 900px;
    max-width: 95vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.fusion-modal header {
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid #334155;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fusion-modal header h2 {
    font-size: 1.2rem;
    color: #f8fafc;
}

#close-fusion {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.8rem;
    cursor: pointer;
}

.fusion-content {
    flex: 1;
    display: flex;
    padding: 2rem;
    gap: 2rem;
    overflow-y: auto;
}

.cable-input, .cable-output {
    flex: 1;
}

.cable-input h3, .cable-output h3 {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.fiber-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.fiber-item {
    background: #0f172a;
    padding: 10px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #334155;
    cursor: grab;
    transition: all 0.2s;
}

.fiber-item:hover {
    border-color: #0145AC;
    background: #1e293b;
}

.color-box {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
}

.fiber-num {
    font-size: 0.85rem;
    font-weight: 600;
    color: #f8fafc;
}

.fusion-canvas {
    width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 8px;
    border: 1px dashed #334155;
}

@media (max-width: 768px) {
    .fusion-content {
        flex-direction: column;
        padding: 1rem;
    }
    
    .fusion-modal {
        width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .fusion-canvas {
        width: 100%;
        height: 100px;
    }
}
